Skip to contentSkip to conversation

Support mksh as /bin/sh.

PATCH Kees Cook 2 participants 2 messages Aug 13, 2018 – Aug 14, 2018 1 message not in the archive Kbuild

lore
Share & tools
lore

Kees Cook

author Reviewed-by
#1 lore raw
In reply to a message not in the archive
Quoted 13 lines · On Mon, Aug 13, 2018 at 3:14 AM, <[email protected]> wrote:

From: Arkadiusz Miśkiewicz <[email protected]>

mksh needs space between ! and ( to work properly. Otherwise this happens:

+ make oldconfig
scripts/kconfig/conf --oldconfig Kconfig ./scripts/clang-version.sh[18]: COPYING: not found
printf: ‘__clang_major__’: expected a numeric value
printf: ‘__clang_minor__’: expected a numeric value
printf: ‘__clang_patchlevel__’: expected a numeric value init/Kconfig:24:warning: 'CLANG_VERSION': number is invalid

Quoted 1 line

-Kees

Quoted 20 lines
---
 scripts/clang-version.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/clang-version.sh +1 -2
index dbf0a31eb111..e65fbc3079d4 100755
@@ -12,7 +12,7 @@
 
 compiler="$*"
 
-if !( $compiler --version | grep -q clang) ; then
+if ! ( $compiler --version | grep -q clang) ; then
        echo 0
        exit 1
 fi
--

2.18.0

Signature · 2 lines
Kees Cook
Pixel Security
#2 lore raw

2018-08-14 7:32 GMT+09:00 Kees Cook <[email protected]>:

Quoted 14 lines · On Mon, Aug 13, 2018 at 3:14 AM, <[email protected]> wrote:
Quoted 13 lines

From: Arkadiusz Miśkiewicz <[email protected]>

mksh needs space between ! and ( to work properly. Otherwise this happens:

+ make oldconfig
scripts/kconfig/conf --oldconfig Kconfig ./scripts/clang-version.sh[18]: COPYING: not found
printf: ‘__clang_major__’: expected a numeric value
printf: ‘__clang_minor__’: expected a numeric value
printf: ‘__clang_patchlevel__’: expected a numeric value init/Kconfig:24:warning: 'CLANG_VERSION': number is invalid

Quoted 6 lines
Quoted 1 line

-Kees

I could not find this patch in ML.

Arkadiusz,

Please resend this patch to

[email protected]

Quoted 26 lines
Quoted 18 lines
---
 scripts/clang-version.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
scripts/clang-version.sh +1 -2
index dbf0a31eb111..e65fbc3079d4 100755
@@ -12,7 +12,7 @@
 
 compiler="$*"
 
-if !( $compiler --version | grep -q clang) ; then
+if ! ( $compiler --version | grep -q clang) ; then
        echo 0
        exit 1
 fi
--
Quoted 2 lines

2.18.0

--
Kees Cook
Pixel Security

Signature · 2 lines
Best Regards
Masahiro Yamada