GayPizzaSpecifications / mac-linux-kdk

Build ARM Linux Kernels natively on macOS hosts
GNU Lesser General Public License v3.0
60 stars 8 forks source link

Bash version requirement #1

Closed FlyGoat closed 1 year ago

FlyGoat commented 2 years ago

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?

Thanks.

FlyGoat commented 2 years ago

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.