emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#52844: closed (missing perl not recognized properly by configure)


From: GNU bug Tracking System
Subject: bug#52844: closed (missing perl not recognized properly by configure)
Date: Tue, 28 Dec 2021 10:09:02 +0000

Your message dated Tue, 28 Dec 2021 02:08:22 -0800
with message-id <8308defe-4cd7-b6ed-2009-e25bb747ac8e@cs.ucla.edu>
and subject line Re: bug#52844: missing perl not recognized properly by 
configure
has caused the debbugs.gnu.org bug report #52844,
regarding missing perl not recognized properly by configure
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs@gnu.org.)


-- 
52844: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=52844
GNU Bug Tracking System
Contact help-debbugs@gnu.org with problems
--- 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.

Attachment: 0001-build-update-gnulib-submodule-to-latest.patch
Description: Text Data

Attachment: 0002-build-be-more-careful-about-Perl.patch
Description: Text Data


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]