From c81db54284de3ff7df95e57514171af285aeba1a Mon Sep 17 00:00:00 2001 From: Ricardo Correia Date: Sat, 6 Jun 2026 13:37:40 +0000 Subject: [PATCH] minimal-bootstrap.gnumake-musl: fix build GNU Make's release tarball contains pregenerated Autotools files and depends on archive mtimes to keep them newer than their inputs. The Mes-built gnutar used by gnumake-musl does not preserve those mtimes. That can make configure.ac and m4 files appear newer than aclocal.m4 or Makefile.in, causing make to try to run aclocal/automake during the minimal bootstrap build. Use gnutar-musl here, which is already documented as preserving mtimes for pregenerated files. Assisted-by: OpenAI Codex (GPT-5.5) --- pkgs/os-specific/linux/minimal-bootstrap/default.nix | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkgs/os-specific/linux/minimal-bootstrap/default.nix b/pkgs/os-specific/linux/minimal-bootstrap/default.nix index dae72f79852a..d52c50d80e5d 100644 --- a/pkgs/os-specific/linux/minimal-bootstrap/default.nix +++ b/pkgs/os-specific/linux/minimal-bootstrap/default.nix @@ -184,6 +184,9 @@ lib.makeScope tinycc = tinycc-musl; gawk = gawk-mes; gnumakeBoot = gnumake; + # GNU Make's release tarball relies on preserved mtimes for + # pregenerated Autotools files. + gnutar = gnutar-musl; }; gnumake-static = callPackage ./gnumake/static.nix {