From 97bf76b3b370e5031b38cd6e33009b43e067c5aa Mon Sep 17 00:00:00 2001 From: Adam Joseph Date: Wed, 22 Jun 2022 12:46:22 -0700 Subject: [PATCH] setup.sh: use six `X` characters in `mktemp` invocation Closes #178625 The `busybox` version of `mktemp` requires exactly six `X` characters in the argument to `mktemp`, unlike the `coreutils` version of `mktemp`. Let's accomodate packages, like `epson-escpr2`, which fool `setup.sh` into using the `busybox` version instead of the `stdenv` version. --- pkgs/stdenv/generic/setup.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index 40ffd9344e34..488540c1b444 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -1026,7 +1026,7 @@ configurePhase() { # scripts with vendored libtool code. Preserve mtimes to # prevent some packages (e.g. libidn2) from spontaneously # autoreconf'ing themselves - CONFIGURE_MTIME_REFERENCE=$(mktemp configure.mtime.reference.XXX) + CONFIGURE_MTIME_REFERENCE=$(mktemp configure.mtime.reference.XXXXXX) find . \ -executable \ -type f \