From 767d31165ad7442518e761521e2f1f17d8336abd Mon Sep 17 00:00:00 2001 From: Dmitry Bogatov Date: Fri, 17 Jun 2022 17:00:42 -0400 Subject: [PATCH] texinfo4: use recent config.guess script --- pkgs/development/tools/misc/texinfo/4.13a.nix | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/pkgs/development/tools/misc/texinfo/4.13a.nix b/pkgs/development/tools/misc/texinfo/4.13a.nix index b8da38ace6fb4..2f753e5113ed8 100644 --- a/pkgs/development/tools/misc/texinfo/4.13a.nix +++ b/pkgs/development/tools/misc/texinfo/4.13a.nix @@ -1,4 +1,4 @@ -{ stdenv, fetchurl, texinfo, ncurses, xz }: +{ stdenv, fetchurl, texinfo, ncurses, xz, autoconf }: stdenv.mkDerivation rec { pname = "texinfo"; @@ -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 ];