Skip to content
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

Fix building on macOS #2341

Merged
merged 2 commits into from
Mar 4, 2018
Merged

Fix building on macOS #2341

merged 2 commits into from
Mar 4, 2018

Conversation

phardy
Copy link
Contributor

@phardy phardy commented Mar 4, 2018

This PR tweaks the build script to make it easier to build on macOS.

/usr/bin/sed on macOS is a BSD sed, which was returning successfully with an empty string trying to parse the Cake version out of packages.config, thereby breaking the build. Rather than expect the user to install GNU sed, I've changed the expression to something that should work on both and (at least to me) reads more easily.

This branch now builds as-is for me on macOS. I've done minor testing that it's still OK with GNU sed on macOS and changing the build script to use gsed. I'm hoping CI will catch any other major problems. :)

@HebaruSan HebaruSan added Build Issues affecting the build system macOS Issues specific for macOS labels Mar 4, 2018
@HebaruSan
Copy link
Member

Still works for me on Ubuntu. 👍

You're compiling on MacOSX? I hope that means you'll submit Mac-related fixes... :)

@phardy
Copy link
Contributor Author

phardy commented Mar 4, 2018

Got a build environment running today. Expect some updates to the wiki shortly too. :)

My free time is limited, but the winforms problem bothers me and I'd like to take a stab at a native UI.

@HebaruSan
Copy link
Member

Cool! Issues you might be fixing by doing that, for future reference: #760, #1334, #2272.

@politas
Copy link
Member

politas commented Mar 4, 2018

Builds fine under Windows, too.

@politas politas merged commit 42f9c6c into KSP-CKAN:master Mar 4, 2018
politas added a commit that referenced this pull request Mar 4, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Build Issues affecting the build system macOS Issues specific for macOS
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants