Skip to contentSkip to conversation

populate_sdk_base.bbclass: use new perm option for find

PATCH New Stefan Stanacar 1 participant 1 message Jul 16, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 populate_sdk_base.bbclass: use new perm option for find

Old way find -perm +mode is no longer supported in newer versions of find (Fedora 19). Man page says:
-perm +mode
This is no longer supported (and has been deprecated since 2005). Use -perm /mode instead.

[YOCTO #4853]

---
 meta/classes/populate_sdk_base.bbclass                                  | 2 +-
 .../installer/adt-installer/scripts/adt_installer_internal              | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
meta/classes/populate_sdk_base.bbclass +1 -1
index 30c1d29..aa3c2fa 100644
@@ -254,7 +254,7 @@ if [ "$dl_path" = "" ] ; then
 	echo "SDK could not be set up. Relocate script unable to find ld-linux.so. Abort!"
 	exit 1
 fi
-executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm +111)
+executable_files=$($SUDO_EXEC find $native_sysroot -type f -perm /111)
 
 tdir=`mktemp -d`
 if [ x$tdir = x ] ; then
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal +1 -1
index 175d285..065bcc7 100755
@@ -203,7 +203,7 @@ $SUDO sh -c "sed -e '"s:##DEFAULT_INSTALL_DIR##:$escaped_sdkpath:"' scripts/relo
 $SUDO chmod +x scripts/relocate_sdk_tmp.py
 
 dl_path=$(find $OECORE_NATIVE_SYSROOT/lib -name "ld-linux*")
-executable_files=$(find $OECORE_NATIVE_SYSROOT -type f -perm +111)
+executable_files=$(find $OECORE_NATIVE_SYSROOT -type f -perm /111)
 
 $SUDO scripts/relocate_sdk_tmp.py $INSTALL_FOLDER $dl_path $executable_files
 check_result
Signature · 1 line
1.8.3.1