Skip to content

Commit

Permalink
texinfo4: use recent config.guess script
Browse files Browse the repository at this point in the history
  • Loading branch information
Dmitry Bogatov committed Jun 17, 2022
1 parent bde8c13 commit 767d311
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion pkgs/development/tools/misc/texinfo/4.13a.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ stdenv, fetchurl, texinfo, ncurses, xz }:
{ stdenv, fetchurl, texinfo, ncurses, xz, autoconf }:

stdenv.mkDerivation rec {
pname = "texinfo";
Expand All @@ -9,6 +9,18 @@ stdenv.mkDerivation rec {
sha256 = "1rf9ckpqwixj65bw469i634897xwlgkm5i9g2hv3avl6mv7b0a3d";
};

autoconfSrc = autoconf.src;

# We need texinfo4 to build documentation of GNU m4, and version of
# config.guess bundled in texinfo4 is too old to recognize some CI
# platforms (see #172225).
#
# Using autoreconfHook results in infinity recursion.
postPatch = ''
tar xf $autoconfSrc
cp -v ./autoconf-*/build-aux/config.guess ./build-aux/config.guess
'';

buildInputs = [ ncurses ];
nativeBuildInputs = [ xz ];

Expand Down

0 comments on commit 767d311

Please sign in to comment.