-
-
Notifications
You must be signed in to change notification settings - Fork 15.1k
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
Qt4: Fix Darwin build #30238
Qt4: Fix Darwin build #30238
Conversation
@@ -183,10 +183,36 @@ stdenv.mkDerivation rec { | |||
sed -i 's/^\(LIBS[[:space:]]*=.*$\)/\1 -lobjc/' ./src/corelib/Makefile.Release | |||
''; | |||
|
|||
postInstall = | |||
'' | |||
installPhase = optionalString stdenv.isDarwin '' |
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.
There should be a runHook preInstall
here.
Similarly for postInstall
at the end.
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.
Fixed
@@ -164,7 +164,7 @@ stdenv.mkDerivation rec { | |||
|
|||
nativeBuildInputs = [ perl pkgconfig which ]; | |||
|
|||
enableParallelBuilding = false; | |||
enableParallelBuilding = stdenv.isDarwin; |
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.
Not sure if we want to enable this since it's only for darwin; I haven't tested to see if it even improves build time.
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.
da91151, might be safer to keep it disabled.
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'm pretty it still only used one build process with it enabled now that I think about it.
Reverted. Should I rebase? apparently the original commit has a formatting change
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, I'll merge and backport this if you squash the commits
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.
👍
bd033f8
to
08977a2
Compare
08977a2
to
0aa6d90
Compare
Turns out to just be a configuration issue on my end. |
Since keeping `installPhase = ""` to signify "use the default installPhase" will be surprising, this deletes the installPhase and rebuilds qt4 on all platforms. Fixes #30238
Motivation for this change
This PR fixes qt4 on Darwin. At some point, the qmake-generated installer broke, despite the buildPhase compiling the library correctly. This PR manually copies the files to the required directories on Darwin. I realize this isn't ideal.
I've tested this with qjson, which built and linked with no issue.
Things done
relaxed
)nix-shell -p nox --run "nox-review wip"
./result/bin/
)fixes #28385 which has more details and logs on the actual error