From 48729f8eccc99a09ebd2f1a6f7c40ddc133f2d9b Mon Sep 17 00:00:00 2001 From: Allan McRae Date: Sat, 10 Feb 2024 11:51:46 +1000 Subject: [PATCH] libmakepkg: skip stripping guile-2.2 files Guile 2.2 uses ELF format for its byte-compiled files. These are not normal executables, and are not strippable in the normal sense. Given these are ELF files and detected by "file" as non-stripped binaries, it is only possible to skip these using the file path. Fixes #73 Signed-off-by: Allan McRae --- scripts/libmakepkg/tidy/strip.sh.in | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in index e0a30353..21d3d6e1 100644 --- a/scripts/libmakepkg/tidy/strip.sh.in +++ b/scripts/libmakepkg/tidy/strip.sh.in @@ -156,6 +156,10 @@ tidy_strip() { local binary strip_flags find . -type f -perm -u+w -print0 2>/dev/null | LC_ALL=C sort -z | while IFS= read -rd '' binary ; do + # skip filepaths that cause stripping issues - ideally these should be temporary + # guile-2.2 + [[ "$binary" =~ .*/guile/.*\.go$ ]] && continue + local STATICLIB=0 case "$(LC_ALL=C readelf -h "$binary" 2>/dev/null)" in *Type:*'DYN (Shared object file)'*) # Libraries (.so) or Relocatable binaries