autoconf-archive: Fix build on FreeBSD#311760
Conversation
177f193 to
9dfb8ba
Compare
|
I believe this is in turn because of https://github.com/NixOS/nixpkgs/pull/311795/files#diff-4b5da784f51cdf538452c429273232dce5d0155b75dd461ab67c0d7665c07322. We have to change |
There was a problem hiding this comment.
See conversation with John on the main thread. The unqualified-uname problem which precipitates this is present for a few operating systems, but I believe FreeBSD is the only one we support building from. We can enable this for all platforms and it will be harmless, but I think this signals the mechanism more clearly. I can also add a comment.
There was a problem hiding this comment.
what does texinfo have to do with uname?
There was a problem hiding this comment.
Patching the unqualified uname trips some modified-file check which causes some additional configure time logic which invokes texinfo. See above for the exact error message which explains this.
There was a problem hiding this comment.
Could maybe use a comment, then, since not everybody's going to have a FreeBSD build machine around to check for themselves why it's required.
There was a problem hiding this comment.
Ah, it finally clicked what the "modified-file check" means / how that matters. Got it.
|
Sorry one more question, how come the Seems like this should be tied to |
|
horrifyingly enough, in the autoconf code which is THIS old, some of the invocations of uname for some operating systems look it up via PATH and some hardcode /usr/bin/uname. edit: not actually sure anymore if the oldness has anything to do with it. I have vague memory of this mattering for many other packages. |
72ce672 to
6c83371
Compare
|
Okay I investigated the consequences of the uname patch some more. It looks like |
6c83371 to
170b5e9
Compare
|
Using a hook sounds okay, but it shouldn't be a default stdenv hook, because that'd be next to impossible to remove later. We can add it as an input to the 17 packages that need it, and then phase it out as their configure scripts are updated. |
|
What about |
|
Looks like since the linked PR this is no longer needed :) |
Description of changes
part of #296581
texinfo is required for building docs on FreeBSD native.
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.