From fa00eb9979b5b9cc77a89e7f14830bc75523ad4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C3=A1draig=20Brady?= Date: Fri, 14 Aug 2026 17:40:37 +0100 Subject: [PATCH] build: replace printf, snprintf, and sprintf when needed This avoids the "%.5119Lf" issue on Solaris 11 where an extraneous e+00 is output. seq uses printf, while numfmt uses snprintf. I.e. this fixes: $ numfmt --to=si --format='%.5119f' 1 | tail -c5 $ seq -f %.5119f 1 | tail -c5 Note gnulib printf module dependencies were previously discussed at: https://lists.gnu.org/r/coreutils/2014-11/msg00046.html https://github.com/coreutils/coreutils/commit/b817f6276 * bootstrap.conf: Depend on {printf,snprintf,sprintf}-posix modules. --- bootstrap.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bootstrap.conf b/bootstrap.conf index 9d26a8501..53a9c55d3 100644 --- a/bootstrap.conf +++ b/bootstrap.conf @@ -232,6 +232,7 @@ gnulib_modules=" posix_spawnp posixtm posixver + printf-posix priv-set progname propername-lite @@ -267,6 +268,8 @@ gnulib_modules=" sigaction skipchars smack + snprintf-posix + sprintf-posix ssize_t stat-macros stat-size