GNU bug report logs - #52844
missing perl not recognized properly by configure

Previous Next

Package: coreutils;

Reported by: Serge Belyshev <belyshev <at> depni.sinp.msu.ru>

Date: Tue, 28 Dec 2021 08:49:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Serge Belyshev <belyshev <at> depni.sinp.msu.ru>
To: 52844 <at> debbugs.gnu.org
Subject: bug#52844: missing perl not recognized properly by configure
Date: Tue, 28 Dec 2021 10:07:51 +0300
On my systems without perl,  PERL is set to something like

  ${SHELL} '/usr/src/coreutils-9.0/build-aux/missing'  perl

which causes condition at line 70 in configure.ac to fail, resulting in
incorrect detection of perl and subsequent build failure. Suggested fix:

diff --git a/configure.ac b/configure.ac
index 9b8ea0dde..f6a7a6917 100644
--- a/configure.ac
+++ b/configure.ac
@@ -67,7 +67,7 @@ coreutils_MACROS
 # FIXME: this is suboptimal.  Ideally, we would be able to call gl_PERL
 # with an ACTION-IF-NOT-FOUND argument ...
 cu_have_perl=yes
-case $PERL in *"/missing "*) cu_have_perl=no;; esac
+case $PERL in */missing*) cu_have_perl=no;; esac
 AM_CONDITIONAL([HAVE_PERL], [test $cu_have_perl = yes])
 
 # gl_GCC_VERSION_IFELSE([major], [minor], [run-if-found], [run-if-not-found])




This bug report was last modified 3 years and 142 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.