* [PATCH] populate_sdk: verify executable or dynamically linked library
@ 2013-11-26 8:24 yzhu1
2013-11-26 8:39 ` yzhu1
2013-11-26 8:39 ` jhuang0
0 siblings, 2 replies; 4+ messages in thread
From: yzhu1 @ 2013-11-26 8:24 UTC (permalink / raw)
To: openembedded-core
When toolchain directory is changed to execute mode, some non-executable
files or empty files are sorted. This will result in some errors. Thus when
sorting executable files or dynamically linked library, additional conditions
are to exclude non-executable files or empty files.
---
meta/classes/populate_sdk_base.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index b7ea851..6b3535d 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -253,7 +253,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 -exec file '{}' \;| grep "\(executable\|dynamically linked\)" | cut -f 1 -d ':')
tdir=`mktemp -d`
if [ x$tdir = x ] ; then
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread* Re: [PATCH] populate_sdk: verify executable or dynamically linked library
2013-11-26 8:24 [PATCH] populate_sdk: verify executable or dynamically linked library yzhu1
@ 2013-11-26 8:39 ` yzhu1
2013-11-26 8:39 ` jhuang0
1 sibling, 0 replies; 4+ messages in thread
From: yzhu1 @ 2013-11-26 8:39 UTC (permalink / raw)
To: openembedded-core
Please ignore this mail since there is something wrong in the patch.
On 11/26/2013 04:24 PM, yzhu1 wrote:
> When toolchain directory is changed to execute mode, some non-executable
> files or empty files are sorted. This will result in some errors. Thus when
> sorting executable files or dynamically linked library, additional conditions
> are to exclude non-executable files or empty files.
> ---
> meta/classes/populate_sdk_base.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
> index b7ea851..6b3535d 100644
> --- a/meta/classes/populate_sdk_base.bbclass
> +++ b/meta/classes/populate_sdk_base.bbclass
> @@ -253,7 +253,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 -exec file '{}' \;| grep "\(executable\|dynamically linked\)" | cut -f 1 -d ':')
>
> tdir=`mktemp -d`
> if [ x$tdir = x ] ; then
^ permalink raw reply [flat|nested] 4+ messages in thread* Re: [PATCH] populate_sdk: verify executable or dynamically linked library
2013-11-26 8:24 [PATCH] populate_sdk: verify executable or dynamically linked library yzhu1
2013-11-26 8:39 ` yzhu1
@ 2013-11-26 8:39 ` jhuang0
1 sibling, 0 replies; 4+ messages in thread
From: jhuang0 @ 2013-11-26 8:39 UTC (permalink / raw)
To: yzhu1; +Cc: openembedded-core
On 11/26/2013 4:24 PM, yzhu1 wrote:
> When toolchain directory is changed to execute mode, some non-executable
> files or empty files are sorted. This will result in some errors. Thus when
> sorting executable files or dynamically linked library, additional conditions
> are to exclude non-executable files or empty files.
> ---
> meta/classes/populate_sdk_base.bbclass | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
> index b7ea851..6b3535d 100644
> --- a/meta/classes/populate_sdk_base.bbclass
> +++ b/meta/classes/populate_sdk_base.bbclass
> @@ -253,7 +253,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 -exec file '{}' \;| grep "\(executable\|dynamically linked\)" | cut -f 1 -d ':')
You should not change the -perm option back to use +mode, please refer to:
commit 21b079e01873e2fb4d8674541e8c5818ba73554e
Author: Stefan Stanacar <stefanx.stanacar@intel.com>
Date: Tue Jul 16 14:42:35 2013 +0300
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]
Signed-off-by: Stefan Stanacar <stefanx.stanacar@intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
Thanks,
Jackie
>
> tdir=`mktemp -d`
> if [ x$tdir = x ] ; then
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* [PATCH] populate_sdk: verify executable or dynamically linked library
@ 2013-11-26 8:38 yzhu1
0 siblings, 0 replies; 4+ messages in thread
From: yzhu1 @ 2013-11-26 8:38 UTC (permalink / raw)
To: openembedded-core
When toolchain directory is changed to execute mode, some non-executable
files or empty files are sorted. This will result in some errors. Thus when
sorting executable files or dynamically linked library, additional conditions
are to exclude non-executable files or empty files.
---
meta/classes/populate_sdk_base.bbclass | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/meta/classes/populate_sdk_base.bbclass b/meta/classes/populate_sdk_base.bbclass
index b7ea851..29890e3 100644
--- a/meta/classes/populate_sdk_base.bbclass
+++ b/meta/classes/populate_sdk_base.bbclass
@@ -253,7 +253,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 -exec file '{}' \;| grep "\(executable\|dynamically linked\)" | cut -f 1 -d ':')
tdir=`mktemp -d`
if [ x$tdir = x ] ; then
--
1.7.9.5
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-11-26 8:39 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-11-26 8:24 [PATCH] populate_sdk: verify executable or dynamically linked library yzhu1
2013-11-26 8:39 ` yzhu1
2013-11-26 8:39 ` jhuang0
-- strict thread matches above, loose matches on Subject: below --
2013-11-26 8:38 yzhu1
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox