-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
autoconf: 2.71 -> 2.72 #276343
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
Merged
Merged
autoconf: 2.71 -> 2.72 #276343
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,69 @@ | ||
| { lib, stdenv, fetchurl, m4, perl, texinfo }: | ||
|
|
||
| # Note: this package is used for bootstrapping fetchurl, and thus | ||
| # cannot use fetchpatch! All mutable patches (generated by GitHub or | ||
| # cgit) that are needed here should be included directly in Nixpkgs as | ||
| # files. | ||
|
|
||
| stdenv.mkDerivation rec { | ||
| pname = "autoconf"; | ||
| version = "2.71"; | ||
| outputs = [ "out" "doc" ]; | ||
|
|
||
| src = fetchurl { | ||
| url = "mirror://gnu/autoconf/autoconf-${version}.tar.xz"; | ||
| sha256 = "197sl23irn6s9pd54rxj5vcp5y8dv65jb9yfqgr2g56cxg7q6k7i"; | ||
| }; | ||
| patches = [ | ||
| # fix stale autom4te cache race condition: | ||
| # https://savannah.gnu.org/support/index.php?110521 | ||
| ./2.71-fix-race.patch | ||
| ]; | ||
|
|
||
| strictDeps = true; | ||
| nativeBuildInputs = [ m4 perl texinfo ]; | ||
| buildInputs = [ m4 ]; | ||
| postBuild = " | ||
| make html | ||
| "; | ||
|
|
||
| postInstall = " | ||
| make install-html | ||
| "; | ||
|
|
||
| # Work around a known issue in Cygwin. See | ||
| # http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/6822 for | ||
| # details. | ||
| # There are many test failures on `i386-pc-solaris2.11'. | ||
| doCheck = ((!stdenv.isCygwin) && (!stdenv.isSunOS)); | ||
|
|
||
| # Don't fixup "#! /bin/sh" in Autoconf, otherwise it will use the | ||
| # "fixed" path in generated files! | ||
| dontPatchShebangs = true; | ||
|
|
||
| enableParallelBuilding = true; | ||
|
|
||
| # Make the Autotest test suite run in parallel. | ||
| preCheck ='' | ||
| export TESTSUITEFLAGS="-j$NIX_BUILD_CORES" | ||
| ''; | ||
|
|
||
| meta = { | ||
| homepage = "https://www.gnu.org/software/autoconf/"; | ||
| description = "Part of the GNU Build System"; | ||
|
|
||
| longDescription = '' | ||
| GNU Autoconf is an extensible package of M4 macros that produce | ||
| shell scripts to automatically configure software source code | ||
| packages. These scripts can adapt the packages to many kinds of | ||
| UNIX-like systems without manual user intervention. Autoconf | ||
| creates a configuration script for a package from a template | ||
| file that lists the operating system features that the package | ||
| can use, in the form of M4 macro calls. | ||
| ''; | ||
|
|
||
| license = lib.licenses.gpl3Plus; | ||
|
|
||
| platforms = lib.platforms.all; | ||
| }; | ||
| } | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we take this opportunity to add a common.nix file and share some of this code across versions?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I personally find it slightly easier to reason about the packages when they don't reuse parts of their implementation. A few pros from the top of my head:
default.nixis linear and does not get cluttered by occasional backports to older versionsposattributes (and extra pending fixes: nix: pointnix editandofborgat the originalversionattribute #276892 ) are appliedIt feels to me like
autoconfdoes not contain much code to share and does not expect much churn in previous versions.But if deduplication is a strong requirement I can try to reshuffle things a bit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I mean we can keep it like this, no strong feelings on my side.