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

qt510-qtbase: fix darwin build #33989

Merged
merged 1 commit into from Jan 20, 2018
Merged

qt510-qtbase: fix darwin build #33989

merged 1 commit into from Jan 20, 2018

Conversation

LnL7
Copy link
Member

@LnL7 LnL7 commented Jan 17, 2018

Motivation for this change

Includes most of the changes from 3793320,
moved it to a separate patch to avoid accidental removal.

Only tested qtbase, but everything else worked fine with the qt510 update.

Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option build-use-sandbox in nix.conf on non-NixOS)
  • Built on platform(s)
    • NixOS
    • macOS
    • other Linux distributions
  • Tested via one or more NixOS test(s) if existing and applicable for the change (look inside nixos/tests)
  • Tested compilation of all pkgs that depend on this change using nix-shell -p nox --run "nox-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Fits CONTRIBUTING.md.

Includes most of the changes from 3793320,
moved it to a separate patch to avoid accidental removal.
@@ -37,7 +37,7 @@ let
srcs = import ./srcs.nix { inherit fetchurl; inherit mirror; };

patches = {
qtbase = [ ./qtbase.patch ];
qtbase = [ ./qtbase.patch ] ++ optional stdenv.isDarwin ./qtbase-darwin.patch;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this patch need to be updated from version to version?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably, this fixes compatibility issues with the opensource version of CoreFoundation.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can that not be upstreamed?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We could try, but I expect issues like these to keep creeping in if they don't test against it.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would propose to try :)

@bkchr
Copy link
Contributor

bkchr commented Jan 18, 2018

@ttuegel Should I include the patch in my pr (ttuegel/qtbase@9836550)?

@ttuegel
Copy link
Member

ttuegel commented Jan 20, 2018

Should I include the patch in my pr (ttuegel/qtbase@9836550)?

No, I already rebased onto a new branch. But as @LnL7 points out, this patch is already present in Qt 5.9 and was accidentally removed. Clearly my "one big patch from git diff" approach is not working. I'm going to go back to keeping individual patches in Nixpkgs Git and get rid of my repositories.

@ttuegel ttuegel merged commit a97eaae into NixOS:master Jan 20, 2018
@LnL7 LnL7 deleted the darwin-qt branch January 20, 2018 20:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants