From d30a239d4150b56e6e23a0303658438846fa7aab Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 16 Apr 2018 14:37:49 +0200 Subject: [PATCH] common/hooks: support application/x-pie-executable (from file 5.33). --- common/hooks/post-install/06-strip-and-debug-pkgs.sh | 2 +- common/hooks/pre-pkg/04-generate-runtime-deps.sh | 2 +- common/hooks/pre-pkg/06-shlib-provides.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/common/hooks/post-install/06-strip-and-debug-pkgs.sh b/common/hooks/post-install/06-strip-and-debug-pkgs.sh index 0972f7e344..bd4cdbd612 100644 --- a/common/hooks/post-install/06-strip-and-debug-pkgs.sh +++ b/common/hooks/post-install/06-strip-and-debug-pkgs.sh @@ -114,7 +114,7 @@ hook() { attach_debug "$f" fi ;; - application/x-sharedlib*) + application/x-sharedlib*|application/x-pie-executable*) chmod +w "$f" # shared library make_debug "$f" diff --git a/common/hooks/pre-pkg/04-generate-runtime-deps.sh b/common/hooks/pre-pkg/04-generate-runtime-deps.sh index 66a67bb7cb..556fbc87ef 100644 --- a/common/hooks/pre-pkg/04-generate-runtime-deps.sh +++ b/common/hooks/pre-pkg/04-generate-runtime-deps.sh @@ -74,7 +74,7 @@ hook() { continue fi case "$(file -bi "$f")" in - application/x-executable*|application/x-sharedlib*) + application/x-*executable*|application/x-sharedlib*) for nlib in $($OBJDUMP -p "$f"|grep NEEDED|awk '{print $2}'); do if [ -z "$verify_deps" ]; then verify_deps="$nlib" diff --git a/common/hooks/pre-pkg/06-shlib-provides.sh b/common/hooks/pre-pkg/06-shlib-provides.sh index 785a7f3905..e4a2006333 100644 --- a/common/hooks/pre-pkg/06-shlib-provides.sh +++ b/common/hooks/pre-pkg/06-shlib-provides.sh @@ -16,7 +16,7 @@ collect_sonames() { find ${_destdir} -type f -name "*.so*" | while read f; do _fname="${f##*/}" case "$(file -bi "$f")" in - application/x-sharedlib*) + application/x-sharedlib*|application/x-pie-executable) # shared library _soname=$(${OBJDUMP} -p "$f"|grep SONAME|awk '{print $2}') # Register all versioned sonames, and