]> code.ossystems Code Review - openembedded-core.git/commitdiff
populate_sdk_base.bbclass: use new perm option for find
authorStefan Stanacar <stefanx.stanacar@intel.com>
Tue, 16 Jul 2013 11:42:35 +0000 (14:42 +0300)
committerSaul Wold <sgw@linux.intel.com>
Thu, 18 Jul 2013 14:14:41 +0000 (07:14 -0700)
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]

Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/classes/populate_sdk_base.bbclass
meta/recipes-devtools/installer/adt-installer/scripts/adt_installer_internal

index 30c1d29a28d68b426c252364c351d56a23710572..aa3c2fa9fdd7995d15fa805ee67c92e96e22dd5e 100644 (file)
@@ -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
index 175d285f4a4fa4e688140d97500d8b6d4d386edb..065bcc7dad1a98d7d45bc21115e4744fe140c5f6 100755 (executable)
@@ -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