Skip to content

Comments

Fix pkgs.biber for Darwin (alt)#62156

Closed
boronine wants to merge 1 commit intoNixOS:stagingfrom
boronine:perl-darwin-fix-2
Closed

Fix pkgs.biber for Darwin (alt)#62156
boronine wants to merge 1 commit intoNixOS:stagingfrom
boronine:perl-darwin-fix-2

Conversation

@boronine
Copy link
Contributor

@boronine boronine commented May 28, 2019

Motivation for this change

This PR contains an alternative solution for #35477

See comment: #35477 (comment)

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)
  • Assured whether relevant documentation is up to date
  • Fits CONTRIBUTING.md.

@ofborg ofborg bot added the 6.topic: darwin Running or building packages on Darwin label May 28, 2019
@boronine boronine mentioned this pull request May 28, 2019
8 tasks
@ofborg ofborg bot added 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch. 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. labels May 28, 2019
@veprbl
Copy link
Member

veprbl commented May 28, 2019

This needs to target staging.

cc @volth @dtzWill

@boronine boronine changed the base branch from master to staging May 28, 2019 14:11
@boronine
Copy link
Contributor Author

@veprbl rebased onto staging

@ofborg ofborg bot added 6.topic: python Python is a high-level, general-purpose programming language. 2.status: merge conflict This PR has merge conflicts with the target branch and removed 6.topic: python Python is a high-level, general-purpose programming language. 2.status: merge conflict This PR has merge conflicts with the target branch labels May 28, 2019
@veprbl
Copy link
Member

veprbl commented May 28, 2019

I am not very happy with bloating buildPerlModule/buildPerlPackage in order to fix less than 0.1% of its use cases. Those could be addressed either in buildPerlProgram or just by adding single line (wrapProgram or patchShebangs) in the derivation's postInstall.

I don't understand how introducing buildPerlProgram is going to help reducing the bloat here. You want to move shebang patching out from builder.sh? If yes, then I think that this is an orthogonal problem. It is not introduced by this PR, the code for patching shebangs is already in the builder.

The single line in postInstall would be needed for 0.1% of packages which may be, say, 10 to 20 of identical lines across nixpkgs. I thought this was the reason why we are trying to refactor this into an option for the builder.

@boronine
Copy link
Contributor Author

Hi @volth, thank you for reviewing this. When I encountered this shebang issue (#35353), my initial instinct was that this shebang injection mechanism should eventually be removed as not robust. If this is the eventual goal, then perhaps the builder.sh bloat can be tolerated as an intermediate step.

@veprbl veprbl closed this Aug 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.topic: darwin Running or building packages on Darwin 10.rebuild-darwin: 501+ This PR causes many rebuilds on Darwin and should normally target the staging branches. 10.rebuild-darwin: 5001+ This PR causes many rebuilds on Darwin and must target the staging branches. 10.rebuild-darwin-stdenv This PR causes stdenv to rebuild on Darwin and must target a staging branch. 10.rebuild-linux: 501+ This PR causes many rebuilds on Linux and should normally target the staging branches. 10.rebuild-linux: 5001+ This PR causes many rebuilds on Linux and must target the staging branches. 10.rebuild-linux-stdenv This PR causes stdenv to rebuild on Linux and must target a staging branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants