-
Notifications
You must be signed in to change notification settings - Fork 164
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Install and use gsed instead of sed on MacOS systems #3215
Install and use gsed instead of sed on MacOS systems #3215
Conversation
Signed-off-by: Pramodh Pallapothu <pramodh@zededa.com>
tools/kernel-build-yml.sh
Outdated
|
||
if [ "$OS" = "Darwin" ]; then | ||
#If already installed, that is fine, error message goes to /dev/null | ||
brew install gnu-sed > /dev/null 2>&1 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggest adding gnu-sed
installation to the readme.md (section "On OSX (using Brew)" ) instead of installing it on the user's system without consent.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah makes sense. I will modify the commit
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested the BSD sed and this seems to be portable between BSD and GNU:
sed -i'' -e "/KBUILD_BUILD_TIMESTAMP/c\ - KBUILD_BUILD_TIMESTAMP=$KBUILD_BUILD_TIMESTAMP" "$k/build.yml"
replace the sed -i
with sed -i'' -e
, would you please check if this one works on Mac?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does not work.
sed: 1: "/KBUILD_BUILD_TIMESTAMP ...": extra characters after \ at the end of c command
Signed-off-by: Pramodh Pallapothu <pramodh@zededa.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGT @shjala
Verified that "make pkgs" compilation works and was able to build eve on MacOS.