mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Markus Heidelberg via ptxdist <ptxdist@pengutronix.de>
To: <ptxdist@pengutronix.de>
Cc: Markus Heidelberg <m.heidelberg@cab.de>
Subject: [ptxdist] [PATCH] configure.ac: support GNU coreutils binaries with "gnu" prefix
Date: Thu, 5 Nov 2026 16:07:07 +0100	[thread overview]
Message-ID: <20261105150707.1018032-1-m.heidelberg@cab.de> (raw)

Ubuntu 25.10 switched most of the coreutils parts from GNU to uutils
implementation where the "--version" check fails during configure run:

  checking for GNU cat... configure: error: could not find GNU cat

The GNU coreutils are still installed with a filename prefix,
e.g. /usr/bin/gnucat.

Signed-off-by: Markus Heidelberg <m.heidelberg@cab.de>
---
 configure.ac | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure.ac b/configure.ac
index c6ad34fa6..e56601f51 100644
--- a/configure.ac
+++ b/configure.ac
@@ -137,7 +137,7 @@ dnl   $1: tool to search for
 dnl   $2: package where the tool is (e.g. 'coreutils')
 AC_DEFUN([GNU_TOOL],
 	[AC_CACHE_CHECK([for GNU $1], [ac_cv_path_gnu_$1],
-		[AC_PATH_PROGS_FEATURE_CHECK([gnu_$1], [g$1 $1.gnu $1-gnu $1],
+		[AC_PATH_PROGS_FEATURE_CHECK([gnu_$1], [g$1 gnu$1 $1.gnu $1-gnu $1],
 			[[out=`$ac_path_gnu_$1 --version 2>/dev/null | $SED -ne "s/.*\(GNU\) $2.*/\1/p"`
 				test "x$out" = xGNU && ac_cv_path_gnu_$1=$ac_path_gnu_$1 ac_path_gnu_$1_found=:]],
 			[AC_MSG_ERROR([could not find GNU $1])])])
-- 
2.43.0




             reply	other threads:[~2026-11-05 15:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-05 15:07 Markus Heidelberg via ptxdist [this message]
2026-11-14 12:30 ` Michael Olbrich

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261105150707.1018032-1-m.heidelberg@cab.de \
    --to=ptxdist@pengutronix.de \
    --cc=m.heidelberg@cab.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox