From: David Bagonyi <david.bago...@hivehome.com>

The use of `>&` assumes we are using a shell that supports this syntax.

In case of running this through `sh`, we get "Syntax error: Bad fd number"
---
 ...configure-Fix-compoiler-detection-logic-for-cross-co.patch | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/meta-oe/recipes-devtools/concurrencykit/concurrencykit/0001-configure-Fix-compoiler-detection-logic-for-cross-co.patch
 
b/meta-oe/recipes-devtools/concurrencykit/concurrencykit/0001-configure-Fix-compoiler-detection-logic-for-cross-co.patch
index 6be024662..718f8c19f 100644
--- 
a/meta-oe/recipes-devtools/concurrencykit/concurrencykit/0001-configure-Fix-compoiler-detection-logic-for-cross-co.patch
+++ 
b/meta-oe/recipes-devtools/concurrencykit/concurrencykit/0001-configure-Fix-compoiler-detection-logic-for-cross-co.patch
@@ -35,9 +35,9 @@ Signed-off-by: Khem Raj <raj.k...@gmail.com>
 +  fi
 +  assert "$CC" "not found"
 +fi
-+if `$CC --version | grep gcc >& /dev/null`; then
++if `$CC --version | grep gcc > /dev/null 2>&1`; then
 +  COMPILER=gcc
-+elif `$CC --version | grep clang >& /dev/null`; then
++elif `$CC --version | grep clang > /dev/null 2>&1`; then
 +  COMPILER=clang
 +else
 +  COMPILER="not-found"
-- 
2.17.1

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#100906): 
https://lists.openembedded.org/g/openembedded-devel/message/100906
Mute This Topic: https://lists.openembedded.org/mt/96679373/21656
Group Owner: openembedded-devel+ow...@lists.openembedded.org
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub 
[arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to