summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--rules/mesalib.make2
-rw-r--r--scripts/lib/ptxd_make_world_install.sh2
-rw-r--r--scripts/lib/ptxd_make_xpkg_pkg.sh2
3 files changed, 3 insertions, 3 deletions
diff --git a/rules/mesalib.make b/rules/mesalib.make
index 41b67a9e5..54cac0d07 100644
--- a/rules/mesalib.make
+++ b/rules/mesalib.make
@@ -176,7 +176,7 @@ $(STATEDIR)/mesalib.install:
@$(call install, MESALIB)
@mkdir -p $(MESALIB_PKGDIR)/usr/bin/
ifdef PTXCONF_MESALIB_TOOLS
- @cd $(MESALIB_DIR)/progs/xdemos/ && find -type f -executable | \
+ @cd $(MESALIB_DIR)/progs/xdemos/ && find -type f -perm /111 | \
xargs install -m 755 -D -t $(MESALIB_PKGDIR)/usr/bin/
endif
@$(call touch)
diff --git a/scripts/lib/ptxd_make_world_install.sh b/scripts/lib/ptxd_make_world_install.sh
index 38e0716b3..e1158f24c 100644
--- a/scripts/lib/ptxd_make_world_install.sh
+++ b/scripts/lib/ptxd_make_world_install.sh
@@ -81,7 +81,7 @@ ptxd_make_world_install_unpack() {
# fix rpaths in host/cross tools
if [ "${pkg_type}" != "target" ]; then
- find "${pkg_pkg_dir}" ! -type d -executable -print | while read file; do
+ find "${pkg_pkg_dir}" ! -type d -perm /111 -print | while read file; do
if chrpath "${file}" > /dev/null 2>&1; then
chrpath --replace "${PTXDIST_SYSROOT_HOST}/lib" "${file}" || return
fi
diff --git a/scripts/lib/ptxd_make_xpkg_pkg.sh b/scripts/lib/ptxd_make_xpkg_pkg.sh
index 84b099246..d57041aff 100644
--- a/scripts/lib/ptxd_make_xpkg_pkg.sh
+++ b/scripts/lib/ptxd_make_xpkg_pkg.sh
@@ -490,7 +490,7 @@ export -f ptxd_install_spec
ptxd_install_package() {
for dir in "${pkg_pkg_dir}/"{,usr/}{bin,sbin,libexec}; do
find "${dir}" \( -type f -o -type l \) \
- -executable 2>/dev/null | while read file; do
+ -perm /111 2>/dev/null | while read file; do
ptxd_install_generic - "${file#${pkg_pkg_dir}}" ||
ptxd_install_error "install_package failed!"
done