gettext, texinfo: Remove spurious xz #314670
Conversation
40c8cb6 to
19ccb97
Compare
There was a problem hiding this comment.
Isn't this automatically chosen here?
There was a problem hiding this comment.
Similar to the other xz.bin this seems to have been introduced as part of #7701 in 2014:
4dccb22#diff-a05908b6eefb0d3630d5d06934fbfb4f0294382eeefef4438d9facb44a5bc291
There was a problem hiding this comment.
strictDeps is already set and --with-xz seems to be not properly checked and I think right now it is inneffective. We would probably need to move xz to buildInputs to properly work but it doesn't seem to do anything, at least nothing is linked against it.
| (lib.getBin xz) |
There was a problem hiding this comment.
This seems wrong to me especially for cross compilation
There was a problem hiding this comment.
Is your comment about xz.bin in the first place or about the change to lib.getBin xz?
There was a problem hiding this comment.
note: xz.bin was introduced in 2014 in 3ec413c#diff-bea856dc5528c15510a6ac9eafd6765a6608ff351b3f77b75c2eb1cd7d68eb14 as part of #7701
There was a problem hiding this comment.
I think @SuperSandro2000 means this should be a nativeBuildInput
There was a problem hiding this comment.
Is your comment about
xz.binin the first place
yes
There was a problem hiding this comment.
We don't need that here anymore. At the time the tarball was in the xz format but now we have gz and strictDeps is already set.
I've also built the package with and without xz and diffoscope didn't find changes except the store path change.
Ericson2314
left a comment
There was a problem hiding this comment.
Please put the description in the commit messages (goes for many of the other PRs too).
I think it's OK to just leave the texinfo one as-is with the suspicious use of buildInputs as that's an orthogonal problem, but if you are feeling motivated you could add a strictDeps = true and see if nativeBuildInputs is better (simulating cross).
There was a problem hiding this comment.
| xz | |
| xz.bin | |
| (lib.getBin xz) |
I've run diffoscope on a gettext build with and without xz and booth are equal. I think we can just drop xz entirely from here.
and we can also drop the "--with-xz" arg in line 31.
diffoscope indicates that the builds with and without xz are identical.
diffoscope indicates that the builds are the same with and without it.
19ccb97 to
9f481b3
Compare
|
I have changed the commits as per feedback, removing both uses! |
Description of changes
part of #296581
If xz is overridden with a derivation that does not have an explicit bin output, these will fail. These changed instances are the ones impacted by the FreeBSD stdenv providing a bootstrap-files xz for early boot.
diffoscope indicates that the builds with and without xz are identical, so just remove.
Things done
nix.conf? (See Nix manual)sandbox = relaxedsandbox = truenix-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.