aboutsummaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
authorLeah Neukirchen <leah@vuxu.org>2018-04-16 12:37:49 +0000
committerLeah Neukirchen <leah@vuxu.org>2018-04-16 12:37:49 +0000
commitd30a239d4150b56e6e23a0303658438846fa7aab (patch)
tree1bdc4d7a91ff01a0a9fe6946a3c6a9795dd4bdc1 /common
parent9f9ab51f9a4969831251ca6a7290d04b2da20752 (diff)
downloadvoid-packages-d30a239d4150b56e6e23a0303658438846fa7aab.tar
void-packages-d30a239d4150b56e6e23a0303658438846fa7aab.tar.gz
void-packages-d30a239d4150b56e6e23a0303658438846fa7aab.tar.bz2
void-packages-d30a239d4150b56e6e23a0303658438846fa7aab.tar.lz
void-packages-d30a239d4150b56e6e23a0303658438846fa7aab.tar.xz
void-packages-d30a239d4150b56e6e23a0303658438846fa7aab.tar.zst
void-packages-d30a239d4150b56e6e23a0303658438846fa7aab.zip
common/hooks: support application/x-pie-executable (from file 5.33).
Diffstat (limited to 'common')
-rw-r--r--common/hooks/post-install/06-strip-and-debug-pkgs.sh2
-rw-r--r--common/hooks/pre-pkg/04-generate-runtime-deps.sh2
-rw-r--r--common/hooks/pre-pkg/06-shlib-provides.sh2
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 0972f7e3441..bd4cdbd6122 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 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