diff options
author | David Bagonyi <david.bagonyi@hivehome.com> | 2023-02-01 15:55:37 +0000 |
---|---|---|
committer | Khem Raj <raj.khem@gmail.com> | 2023-02-01 09:28:47 -0800 |
commit | 2325739f662c6eb55420aab20b12c0666cf6f496 (patch) | |
tree | 1f36b75dc953ae70310fc6b10bfcd7be94a3f056 | |
parent | 49c1e98885eb0e7befc74c85f385cbdee612830e (diff) | |
download | meta-openembedded-contrib-2325739f662c6eb55420aab20b12c0666cf6f496.tar.gz |
concurrencykit: Make patch compatible with Bourne shell
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"
Signed-off-by: Khem Raj <raj.khem@gmail.com>
-rw-r--r-- | meta-oe/recipes-devtools/concurrencykit/concurrencykit/0001-configure-Fix-compoiler-detection-logic-for-cross-co.patch | 4 |
1 files 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 6be0246626..718f8c19f1 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.khem@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" |