From 3ded15337271cfaa3e4d122dd7f032937d2c6b14 Mon Sep 17 00:00:00 2001 From: Marc Kleine-Budde Date: Fri, 13 Aug 2010 17:09:01 +0200 Subject: [generic] don't use "find -executable" ...which is not supported by older versions of "find", use "-perm /111" instead. Reported-by: Erwin Rol Signed-off-by: Marc Kleine-Budde --- scripts/lib/ptxd_make_world_install.sh | 2 +- scripts/lib/ptxd_make_xpkg_pkg.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/lib') 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 -- cgit v1.2.3