Skip to content

various: Enable updateAutotoolsGnuConfigScriptsHook#313496

Merged
Ericson2314 merged 1 commit intoNixOS:stagingfrom
rhelmot:freebsd-minimal3/gnu-config
May 27, 2024
Merged

various: Enable updateAutotoolsGnuConfigScriptsHook#313496
Ericson2314 merged 1 commit intoNixOS:stagingfrom
rhelmot:freebsd-minimal3/gnu-config

Conversation

@rhelmot
Copy link
Contributor

@rhelmot rhelmot commented May 21, 2024

Description of changes

Part of #296581; As discussed in #311760

Prior to August 2023, any config.guess generated by autoconf will include a hardcoded /usr/bin/uname invocation for FreeBSD on any architecture other than arm. This clearly doesn't work under nix. We must then update or otherwise patch each old config.guess.

This patches just enough to get the FreeBSD native stdenv (forthcoming) to build.

Things done

  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
    • x86_64-freebsd
  • For non-Linux: Is sandboxing enabled in nix.conf? (See Nix manual)
    • sandbox = relaxed
    • sandbox = true
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 24.05 Release Notes (or backporting 23.05 and 23.11 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
  • Fits CONTRIBUTING.md.

Add a 👍 reaction to pull requests you find important.

@rhelmot rhelmot requested review from Ericson2314 and alyssais May 21, 2024 22:00
@rhelmot rhelmot force-pushed the freebsd-minimal3/gnu-config branch from 7c711d1 to be747d6 Compare May 21, 2024 22:06
@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 22, 2024
@rhelmot rhelmot force-pushed the freebsd-minimal3/gnu-config branch from be747d6 to a3f9af5 Compare May 23, 2024 06:24
@rhelmot
Copy link
Contributor Author

rhelmot commented May 23, 2024

Added lndir and sharutils, which popped out when I did an attempt of merging all the remaining branches and building it

@rhelmot rhelmot force-pushed the freebsd-minimal3/gnu-config branch from a3f9af5 to fd470b0 Compare May 23, 2024 06:28
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

Looks good, but just want these comments outside the postPatch so we can reword without causing further mass rebuilds.

Perhaps the comments should also mention FreeBSD so people don't remove them by accident ("well, I didn't see any /usr/bin/uname` actually being used...").

@rhelmot rhelmot force-pushed the freebsd-minimal3/gnu-config branch from fe2f70c to ed9cab9 Compare May 27, 2024 00:04
@rhelmot
Copy link
Contributor Author

rhelmot commented May 27, 2024

Done!

The vanilla flag in pkg-config determines whether to apply a very controversial patch which changes some semantics and is not wanted by the maintainers but is universally wanted by packagers.

@ofborg ofborg bot added the 2.status: merge conflict This PR has merge conflicts with the target branch label May 27, 2024
@rhelmot rhelmot force-pushed the freebsd-minimal3/gnu-config branch 2 times, most recently from db3c4eb to 40592ae Compare May 27, 2024 05:11
@ofborg ofborg bot removed the 2.status: merge conflict This PR has merge conflicts with the target branch label May 27, 2024
Copy link
Member

@Ericson2314 Ericson2314 left a comment

Choose a reason for hiding this comment

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

Ah unfortunately there are conflicts now, but yes this does look good now!

@Ericson2314 Ericson2314 force-pushed the freebsd-minimal3/gnu-config branch from 40592ae to 55ac5c4 Compare May 27, 2024 14:52
Prior to August 2023, any config.guess generated by autoconf will
include a hardcoded /usr/bin/uname invocation for FreeBSD on any
architecture other than arm. This clearly doesn't work under nix.
We must then update or otherwise patch each old config.guess.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

3 participants