diff options
author | Eli Schwartz <eschwartz@archlinux.org> | 2020-01-10 02:59:35 +0100 |
---|---|---|
committer | Andrew Gregory <andrew@archlinux.org> | 2020-01-10 08:29:14 +0100 |
commit | d6dcc936457815cdda87a8507cf82169b437e4d2 (patch) | |
tree | 4be5ec78016542a21c3711a9751aee873befd945 /scripts/libmakepkg/tidy | |
parent | 019f9386ef2c85b4c3c9f9293f462cfb5ddcaa32 (diff) | |
download | pacman-d6dcc936457815cdda87a8507cf82169b437e4d2.tar.gz pacman-d6dcc936457815cdda87a8507cf82169b437e4d2.tar.xz |
makepkg: fix one more file-seccomp issue
When file is called via fakeroot, it doesn't matter whether you use -z
or not, it is still incompatible with seccomp. Fix by configuring it
with FILECMD when used in the fakeroot 'tidy' run.
Fixes FS#65100
Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
Diffstat (limited to 'scripts/libmakepkg/tidy')
-rw-r--r-- | scripts/libmakepkg/tidy/strip.sh.in | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in index 1bd810f0..876f00f0 100644 --- a/scripts/libmakepkg/tidy/strip.sh.in +++ b/scripts/libmakepkg/tidy/strip.sh.in @@ -111,7 +111,7 @@ tidy_strip() { local binary strip_flags find . -type f -perm -u+w -print0 2>/dev/null | while IFS= read -rd '' binary ; do - case "$(file -bi "$binary")" in + case "$(@FILECMD@ -bi "$binary")" in *application/x-sharedlib*) # Libraries (.so) strip_flags="$STRIP_SHARED";; *application/x-archive*) # Libraries (.a) |