diff options
author | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-08-13 17:09:01 +0200 |
---|---|---|
committer | Marc Kleine-Budde <mkl@pengutronix.de> | 2010-08-21 09:49:34 +0200 |
commit | 3ded15337271cfaa3e4d122dd7f032937d2c6b14 (patch) | |
tree | 93abe0e9aebfc9145b49777293285626eab70ca2 /scripts/lib | |
parent | 80e8604f09ecac1ba3694ccc625fdaac1a1733aa (diff) | |
download | ptxdist-3ded15337271cfaa3e4d122dd7f032937d2c6b14.tar.gz ptxdist-3ded15337271cfaa3e4d122dd7f032937d2c6b14.tar.xz |
[generic] don't use "find -executable"
...which is not supported by older versions of "find",
use "-perm /111" instead.
Reported-by: Erwin Rol <erwin@erwinrol.com>
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
Diffstat (limited to 'scripts/lib')
-rw-r--r-- | scripts/lib/ptxd_make_world_install.sh | 2 | ||||
-rw-r--r-- | scripts/lib/ptxd_make_xpkg_pkg.sh | 2 |
2 files changed, 2 insertions, 2 deletions
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 |