From d30a239d4150b56e6e23a0303658438846fa7aab Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Mon, 16 Apr 2018 14:37:49 +0200 Subject: common/hooks: support application/x-pie-executable (from file 5.33). --- common/hooks/pre-pkg/04-generate-runtime-deps.sh | 2 +- common/hooks/pre-pkg/06-shlib-provides.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'common/hooks/pre-pkg') diff --git a/common/hooks/pre-pkg/04-generate-runtime-deps.sh b/common/hooks/pre-pkg/04-generate-runtime-deps.sh index 66a67bb7cb7..556fbc87ef6 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 785a7f39059..e4a20063331 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 -- cgit v1.2.3