-
-
Notifications
You must be signed in to change notification settings - Fork 14.8k
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
mbrola: Fix compilation on Darwin #376876
Conversation
|
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.
LGTM.
Nit: s/liek/like/ typo in commit message.
It looks like mbrola hasn't done a release in 6 years or so. In that time, they have a few fixes for compiling on Darwin. However, picking up those changes would require us to start packaging the latest git which is unreleased. I tried grabbing the relevant patches, but they don't seem to apply cleanly. So, instead, I just made some tweaks to the files to get things to compile using substituteInPlace. The first thing we patch is that the Makefile requests the "O6" optimization level - which does not exist in gcc or clang - but is an error in clang. The second thing is that the project attempts to re-define the "swab" function from unistd.h. Which maybe was necessary in the past, but now is an error.
Thanks, @bjornfor ! I updated the commit message to fix the typo. |
|
Already broken on the base branch. |
It looks like mbrola hasn't done a release in 6 years or so. In that time, they have a few fixes for compiling on Darwin. However, picking up those changes would require us to start packaging the latest git which is unreleased. I tried grabbing the relevant patches, but they don't seem to apply cleanly. So, instead, I just made some tweaks to the files to get things to compile using substituteInPlace.
The first thing we patch is that the Makefile requests the "O6"
optimization level - which does not exist in gcc or clang - but is an
error in clang.
The second thing is that the project attempts to re-define the "swab"
function from unistd.h. Which maybe was necessary in the past, but now
is an error.
Things done
nix.conf
? (See Nix manual)sandbox = relaxed
sandbox = true
nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD"
. Note: all changes have to be committed, also see nixpkgs-review usage./result/bin/
)Add a 👍 reaction to pull requests you find important.