When compiling latest linux-next there is a error:
./scripts/check-local-export: line 17: shopt: lastpipe: invalid shell option name
This is because lastpipe was introduced in bash 4.2, but macOS shipped bash 3.2.
My local workaround is just replacing /bin/sh with bash from Homebrew. As PATH of shell is hardcoded in shebang I didn't come up with any idea to migrate it in lkmake script.
Is it possible to migrate this problem in Mac-linux-kdk?
Oh it turns out that the shebang is hardcoded to #!/usr/bin/env bash so the only thing we need to do is add bash to the dependency of mac-linux-kdk as well.
When compiling latest
linux-next
there is a error:This is because
lastpipe
was introduced in bash 4.2, but macOS shipped bash 3.2. My local workaround is just replacing/bin/sh
with bash from Homebrew. As PATH of shell is hardcoded in shebang I didn't come up with any idea to migrate it inlkmake
script.Is it possible to migrate this problem in Mac-linux-kdk?
Thanks.