[oe-commits] Lei Liu : image-mklibs: Fix grep pattern when mklibs collects executables in rootfs

git at git.openembedded.org git at git.openembedded.org
Tue Nov 12 10:34:35 UTC 2013


Module: openembedded-core.git
Branch: master-next
Commit: a52ef8c5dcd71f39bb48c71fb868cc0db662560e
URL:    http://git.openembedded.org/?p=openembedded-core.git&a=commit;h=a52ef8c5dcd71f39bb48c71fb868cc0db662560e

Author: Lei Liu <lei.liu2 at windriver.com>
Date:   Mon Nov 11 17:27:42 2013 +0800

image-mklibs: Fix grep pattern when mklibs collects executables in rootfs

File command in some version could print extra space between
"LSB" and "executable" - it causes mklibs can't find any executables
using grep "LSB executable".  Fix the grep pattern to catch
multiple spaces.

Signed-off-by: Lei Liu <lei.liu2 at windriver.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>

---

 meta/classes/image-mklibs.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meta/classes/image-mklibs.bbclass b/meta/classes/image-mklibs.bbclass
index 66b0f52..e975f5d 100644
--- a/meta/classes/image-mklibs.bbclass
+++ b/meta/classes/image-mklibs.bbclass
@@ -9,7 +9,7 @@ mklibs_optimize_image_doit() {
 	du -bs > ${WORKDIR}/mklibs/du.before.mklibs.txt
 	for i in `find .`; do file $i; done \
 		| grep ELF \
-		| grep "LSB executable" \
+		| grep "LSB *executable" \
 		| grep "dynamically linked" \
 		| sed "s/:.*//" \
 		| sed "s+^\./++" \



More information about the Openembedded-commits mailing list