From: Roy Li Date: Tue, 26 Nov 2013 05:17:09 +0000 (+0800) Subject: elfutils: fix the condition check before remove eu-objdump X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~35304 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79b0979ecd33ce15563354c90d8bcc857ddf95ad;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git elfutils: fix the condition check before remove eu-objdump "grep -q" does not write anything to standard output, the result is same as a empty string, The second test becomes [!""] which is a fixed true value Signed-off-by: Roy Li Signed-off-by: Richard Purdie --- diff --git a/meta/recipes-devtools/elfutils/elfutils_0.155.bb b/meta/recipes-devtools/elfutils/elfutils_0.155.bb index 594dfb09ea1..14eac26d836 100644 --- a/meta/recipes-devtools/elfutils/elfutils_0.155.bb +++ b/meta/recipes-devtools/elfutils/elfutils_0.155.bb @@ -48,7 +48,7 @@ do_configure_prepend() { } do_install_append() { - if [ "${TARGET_ARCH}" != "x86_64" ] && [ ! `echo "${TARGET_ARCH}"|grep -q 'i.86'` ];then + if [ "${TARGET_ARCH}" != "x86_64" ] && [ -z `echo "${TARGET_ARCH}"|grep 'i.86'` ];then rm ${D}${bindir}/eu-objdump fi }