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

vte: enable compiling with musl #71577

Merged
merged 1 commit into from Oct 28, 2019
Merged

Conversation

cdepillabout
Copy link
Member

@cdepillabout cdepillabout commented Oct 21, 2019

This enables VTE to be compiled with pkgsMusl.

VTE requires a small patch to be compiled with musl.

This has been upstreamed, but there appears to be some resistance to support enabling builds with musl:
https://gitlab.gnome.org/GNOME/vte/issues/72

Motivation for this change

This is for nh2/static-haskell-nix#50. I'd like to get VTE compiling with musl, and eventually compiling statically.

You can test this like the following:

$ nix-build -A pkgsMusl.vte
...
/nix/store/4bbyrrnbildrs9807jcwpl544m0jc26h-vte-0.58.2
Things done
  • Tested using sandboxing (nix.useSandbox on NixOS, or option 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 nix-review --run "nix-review wip"
  • Tested execution of all binary files (usually in ./result/bin/)
  • Determined the impact on package closure size (by running nix path-info -S before and after)
  • Ensured that relevant documentation is up to date
  • Fits CONTRIBUTING.md.
Notify maintainers

cc @nh2 @domenkozar @matthewbauer @astsmtl @antono @lethalman

@cdepillabout
Copy link
Member Author

Note that there are currently 4 commits in this PR, but three of them are just from #71575: b1b809f, 4845af0, and 317cd4d.

This PR should only be merged after #71575, and should be rebased on master after #71575 is merged.

@cdepillabout
Copy link
Member Author

This is related to the following three PRs:

@cdepillabout
Copy link
Member Author

@GrahamcOfBorg build vte

@GrahamcOfBorg build pkgsMusl.vte

@cdepillabout
Copy link
Member Author

cdepillabout commented Oct 22, 2019

Before merging in, this PR should be changed so that vte takes enableSystemd as an argument as recommended by @nh2 in #71575 (comment).

@nh2
Copy link
Contributor

nh2 commented Oct 26, 2019

Before merging in, this PR should be changed so that vte takes enableSystemd as an argument as recommended by @nh2 in #71575 (comment).

For this one it isn't necessary, because vte itself needs a musl-specific patch and doesn't depend on systemd.

@cdepillabout
Copy link
Member Author

@nh2 Good catch.

This PR just depends on these other three PRs, which need to be merged in before this can be rebased on master and merged in:

#71577 (comment)

VTE requires a small patch to be able to be built with musl.
@nh2
Copy link
Contributor

nh2 commented Oct 28, 2019

Rebased on master

@cdepillabout
Copy link
Member Author

Note that this PR still needs #71575 merged into master before it makes sense to merge this PR in.

@nh2
Copy link
Contributor

nh2 commented Oct 28, 2019

Note that this PR still needs #71575 merged into master before it makes sense to merge this PR in.

Merged that one.

This one has worked fine for me in static-haskell-nix so far, and no changes for non-musl; merging this one too.

@nh2 nh2 merged commit aaddb5f into NixOS:master Oct 28, 2019
@cdepillabout cdepillabout deleted the vte-compiling-with-musl branch October 28, 2019 19:42
@worldofpeace worldofpeace moved this from WIP to Merged in Staging Oct 30, 2019
@worldofpeace worldofpeace removed this from Merged in Staging Oct 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants