makepkg-fix-one-more-file-seccomp-issue.patch 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. From 00cfc6c5c9700b597c384743c2f057a2ba7125e2 Mon Sep 17 00:00:00 2001
  2. From: Eli Schwartz <eschwartz@archlinux.org>
  3. Date: Thu, 9 Jan 2020 20:49:17 -0500
  4. Subject: [pacman-dev] [PATCH] makepkg: fix one more file-seccomp issue
  5. When file is called via fakeroot, it doesn't matter whether you use -z
  6. or not, it is still incompatible with seccomp. Fix by configuring it
  7. with FILECMD when used in the fakeroot 'tidy' run.
  8. Signed-off-by: Eli Schwartz <eschwartz@archlinux.org>
  9. ---
  10. scripts/libmakepkg/tidy/strip.sh.in | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/scripts/libmakepkg/tidy/strip.sh.in b/scripts/libmakepkg/tidy/strip.sh.in
  13. index 1bd810f0..876f00f0 100644
  14. --- a/scripts/libmakepkg/tidy/strip.sh.in
  15. +++ b/scripts/libmakepkg/tidy/strip.sh.in
  16. @@ -111,7 +111,7 @@ tidy_strip() {
  17. local binary strip_flags
  18. find . -type f -perm -u+w -print0 2>/dev/null | while IFS= read -rd '' binary ; do
  19. - case "$(file -bi "$binary")" in
  20. + case "$(@FILECMD@ -bi "$binary")" in
  21. *application/x-sharedlib*) # Libraries (.so)
  22. strip_flags="$STRIP_SHARED";;
  23. *application/x-archive*) # Libraries (.a)
  24. --
  25. 2.24.1