--- Begin Message ---
Subject: |
missing perl not recognized properly by configure |
Date: |
Tue, 28 Dec 2021 10:07:51 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) |
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])
--- End Message ---
--- Begin Message ---
Subject: |
Re: bug#52844: missing perl not recognized properly by configure |
Date: |
Tue, 28 Dec 2021 02:08:22 -0800 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 |
On 12/27/21 23:07, Serge Belyshev wrote:
-case $PERL in *"/missing "*) cu_have_perl=no;; esac
+case $PERL in */missing*) cu_have_perl=no;; esac
Thanks for the bug report and suggested fix. On the whole I think it'd
be better to address the nearby FIXME instead, so I did that by
installing this into Gnulib:
https://git.savannah.gnu.org/cgit/gnulib.git/commit/?id=8220e0f0b5f46ff61e1d19f8a1614508fa162abd
and the attached into Coreutils. Please give it a try. In the meantime
I'll assume this will fix the bug for you and so am boldly closing the
bug report; if that's wrong we can reopen it.
0001-build-update-gnulib-submodule-to-latest.patch
Description: Text Data
0002-build-be-more-careful-about-Perl.patch
Description: Text Data
--- End Message ---