From unknown Sat Jun 21 03:28:19 2025 X-Loop: help-debbugs@gnu.org Subject: bug#52844: missing perl not recognized properly by configure Resent-From: Serge Belyshev Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Tue, 28 Dec 2021 08:49:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 52844 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 52844@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.16406812876253 (code B ref -1); Tue, 28 Dec 2021 08:49:01 +0000 Received: (at submit) by debbugs.gnu.org; 28 Dec 2021 08:48:07 +0000 Received: from localhost ([127.0.0.1]:45004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n289L-0001cg-6e for submit@debbugs.gnu.org; Tue, 28 Dec 2021 03:48:07 -0500 Received: from lists.gnu.org ([209.51.188.17]:56590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n26aZ-0007d9-Fj for submit@debbugs.gnu.org; Tue, 28 Dec 2021 02:08:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n26aZ-0002Oj-9M for bug-coreutils@gnu.org; Tue, 28 Dec 2021 02:08:03 -0500 Received: from depni-mx.sinp.msu.ru ([213.131.7.21]:38123) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n26aV-0006Hd-Vf for bug-coreutils@gnu.org; Tue, 28 Dec 2021 02:08:02 -0500 Received: from spider (unknown [176.195.59.180]) by depni-mx.sinp.msu.ru (Postfix) with ESMTPSA id 000751BF47E; Tue, 28 Dec 2021 10:07:56 +0300 (MSK) From: Serge Belyshev Date: Tue, 28 Dec 2021 10:07:51 +0300 Message-ID: <875yr9gqbc.fsf@depni.sinp.msu.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=213.131.7.21; envelope-from=belyshev@depni.sinp.msu.ru; helo=depni-mx.sinp.msu.ru X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Mailman-Approved-At: Tue, 28 Dec 2021 03:48:02 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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]) From unknown Sat Jun 21 03:28:19 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Serge Belyshev Subject: bug#52844: closed (Re: bug#52844: missing perl not recognized properly by configure) Message-ID: References: <8308defe-4cd7-b6ed-2009-e25bb747ac8e@cs.ucla.edu> <875yr9gqbc.fsf@depni.sinp.msu.ru> X-Gnu-PR-Message: they-closed 52844 X-Gnu-PR-Package: coreutils Reply-To: 52844@debbugs.gnu.org Date: Tue, 28 Dec 2021 10:09:03 +0000 Content-Type: multipart/mixed; boundary="----------=_1640686143-22683-1" This is a multi-part message in MIME format... ------------=_1640686143-22683-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #52844: missing perl not recognized properly by configure which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 52844@debbugs.gnu.org. --=20 52844: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D52844 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1640686143-22683-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 52844-done) by debbugs.gnu.org; 28 Dec 2021 10:08:37 +0000 Received: from localhost ([127.0.0.1]:45126 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n29PJ-0005rv-BN for submit@debbugs.gnu.org; Tue, 28 Dec 2021 05:08:37 -0500 Received: from zimbra.cs.ucla.edu ([131.179.128.68]:60910) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n29PE-0005rZ-KM for 52844-done@debbugs.gnu.org; Tue, 28 Dec 2021 05:08:36 -0500 Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 36D411600BC; Tue, 28 Dec 2021 02:08:26 -0800 (PST) Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10032) with ESMTP id MvNrlZDLoN_P; Tue, 28 Dec 2021 02:08:23 -0800 (PST) Received: from localhost (localhost [127.0.0.1]) by zimbra.cs.ucla.edu (Postfix) with ESMTP id 051B7160134; Tue, 28 Dec 2021 02:08:23 -0800 (PST) X-Virus-Scanned: amavisd-new at zimbra.cs.ucla.edu Received: from zimbra.cs.ucla.edu ([127.0.0.1]) by localhost (zimbra.cs.ucla.edu [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id pw9pu2deD9Dx; Tue, 28 Dec 2021 02:08:22 -0800 (PST) Received: from [192.168.1.9] (cpe-172-91-119-151.socal.res.rr.com [172.91.119.151]) by zimbra.cs.ucla.edu (Postfix) with ESMTPSA id C7F811600BC; Tue, 28 Dec 2021 02:08:22 -0800 (PST) Content-Type: multipart/mixed; boundary="------------VoUSlc2IeebzJeAGfyG0EAOu" Message-ID: <8308defe-4cd7-b6ed-2009-e25bb747ac8e@cs.ucla.edu> Date: Tue, 28 Dec 2021 02:08:22 -0800 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.3.1 Subject: Re: bug#52844: missing perl not recognized properly by configure Content-Language: en-US To: Serge Belyshev References: <875yr9gqbc.fsf@depni.sinp.msu.ru> From: Paul Eggert Organization: UCLA Computer Science Department In-Reply-To: <875yr9gqbc.fsf@depni.sinp.msu.ru> X-Spam-Score: -2.4 (--) X-Debbugs-Envelope-To: 52844-done Cc: 52844-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.4 (---) This is a multi-part message in MIME format. --------------VoUSlc2IeebzJeAGfyG0EAOu Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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. --------------VoUSlc2IeebzJeAGfyG0EAOu Content-Type: text/x-patch; charset=UTF-8; name="0001-build-update-gnulib-submodule-to-latest.patch" Content-Disposition: attachment; filename="0001-build-update-gnulib-submodule-to-latest.patch" Content-Transfer-Encoding: base64 RnJvbSBjN2JiZmViODBjNGJlOGQ1NTA3NDIxNGU5OGMyMzZlZWQ4MDE1YTE1IE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUdWUsIDI4IERlYyAyMDIxIDAxOjUzOjQ0IC0wODAwClN1YmplY3Q6IFtQQVRD SCAxLzJdIGJ1aWxkOiB1cGRhdGUgZ251bGliIHN1Ym1vZHVsZSB0byBsYXRlc3QKCi0tLQog Z251bGliIHwgMiArLQogMSBmaWxlIGNoYW5nZWQsIDEgaW5zZXJ0aW9uKCspLCAxIGRlbGV0 aW9uKC0pCgpkaWZmIC0tZ2l0IGEvZ251bGliIGIvZ251bGliCmluZGV4IGY2N2E3MTg1ZS4u ODIyMGUwZjBiIDE2MDAwMAotLS0gYS9nbnVsaWIKKysrIGIvZ251bGliCkBAIC0xICsxIEBA Ci1TdWJwcm9qZWN0IGNvbW1pdCBmNjdhNzE4NWU4YmVlMGJlY2RlOWE2OTkyNzU1ZDJhZmEx Y2E2NTMxCitTdWJwcm9qZWN0IGNvbW1pdCA4MjIwZTBmMGI1ZjQ2ZmY2MWUxZDE5ZjhhMTYx NDUwOGZhMTYyYWJkCi0tIAoyLjMyLjAKCg== --------------VoUSlc2IeebzJeAGfyG0EAOu Content-Type: text/x-patch; charset=UTF-8; name="0002-build-be-more-careful-about-Perl.patch" Content-Disposition: attachment; filename="0002-build-be-more-careful-about-Perl.patch" Content-Transfer-Encoding: base64 RnJvbSA5MTA0MmM0ZDFlNWI3YjU2YmYzZjdhZTlmNGM5YWJjNDU5Mjc4MDlkIE1vbiBTZXAg MTcgMDA6MDA6MDAgMjAwMQpGcm9tOiBQYXVsIEVnZ2VydCA8ZWdnZXJ0QGNzLnVjbGEuZWR1 PgpEYXRlOiBUdWUsIDI4IERlYyAyMDIxIDAyOjAzOjIxIC0wODAwClN1YmplY3Q6IFtQQVRD SCAyLzJdIGJ1aWxkOiBiZSBtb3JlIGNhcmVmdWwgYWJvdXQgUGVybAoKUHJvYmxlbSByZXBv cnRlZCBieSBTZXJnZSBCZWx5c2hldiAoQnVnIzUyODQ0KS4KKiBjb25maWd1cmUuYWMgKEhB VkVfUEVSTCk6IFJlbHkgb24gbGF0ZXN0IEdudWxpYiBnbF9QRVJMLCB3aGljaApzZXRzIGds X2N2X3Byb2dfcGVybC4KLS0tCiBjb25maWd1cmUuYWMgfCA2ICstLS0tLQogMSBmaWxlIGNo YW5nZWQsIDEgaW5zZXJ0aW9uKCspLCA1IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2Nv bmZpZ3VyZS5hYyBiL2NvbmZpZ3VyZS5hYwppbmRleCA5YjhlYTBkZGUuLmI5ODJkN2U5YSAx MDA2NDQKLS0tIGEvY29uZmlndXJlLmFjCisrKyBiL2NvbmZpZ3VyZS5hYwpAQCAtNjQsMTEg KzY0LDcgQEAgZ2xfSU5JVAogY29yZXV0aWxzX01BQ1JPUwogCiAjIFRoZSB0ZXN0IHN1aXRl IG5lZWRzIHRvIGtub3cgaWYgd2UgaGF2ZSBhIHdvcmtpbmcgcGVybC4KLSMgRklYTUU6IHRo aXMgaXMgc3Vib3B0aW1hbC4gIElkZWFsbHksIHdlIHdvdWxkIGJlIGFibGUgdG8gY2FsbCBn bF9QRVJMCi0jIHdpdGggYW4gQUNUSU9OLUlGLU5PVC1GT1VORCBhcmd1bWVudCAuLi4KLWN1 X2hhdmVfcGVybD15ZXMKLWNhc2UgJFBFUkwgaW4gKiIvbWlzc2luZyAiKikgY3VfaGF2ZV9w ZXJsPW5vOzsgZXNhYwotQU1fQ09ORElUSU9OQUwoW0hBVkVfUEVSTF0sIFt0ZXN0ICRjdV9o YXZlX3BlcmwgPSB5ZXNdKQorQU1fQ09ORElUSU9OQUwoW0hBVkVfUEVSTF0sIFt0ZXN0ICIk Z2xfY3ZfcHJvZ19wZXJsIiAhPSBub10pCiAKICMgZ2xfR0NDX1ZFUlNJT05fSUZFTFNFKFtt YWpvcl0sIFttaW5vcl0sIFtydW4taWYtZm91bmRdLCBbcnVuLWlmLW5vdC1mb3VuZF0pCiAj IC0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLQotLSAK Mi4zMi4wCgo= --------------VoUSlc2IeebzJeAGfyG0EAOu-- ------------=_1640686143-22683-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 28 Dec 2021 08:48:07 +0000 Received: from localhost ([127.0.0.1]:45004 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n289L-0001cg-6e for submit@debbugs.gnu.org; Tue, 28 Dec 2021 03:48:07 -0500 Received: from lists.gnu.org ([209.51.188.17]:56590) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1n26aZ-0007d9-Fj for submit@debbugs.gnu.org; Tue, 28 Dec 2021 02:08:03 -0500 Received: from eggs.gnu.org ([209.51.188.92]:35322) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1n26aZ-0002Oj-9M for bug-coreutils@gnu.org; Tue, 28 Dec 2021 02:08:03 -0500 Received: from depni-mx.sinp.msu.ru ([213.131.7.21]:38123) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1n26aV-0006Hd-Vf for bug-coreutils@gnu.org; Tue, 28 Dec 2021 02:08:02 -0500 Received: from spider (unknown [176.195.59.180]) by depni-mx.sinp.msu.ru (Postfix) with ESMTPSA id 000751BF47E; Tue, 28 Dec 2021 10:07:56 +0300 (MSK) From: Serge Belyshev To: bug-coreutils@gnu.org Subject: missing perl not recognized properly by configure Date: Tue, 28 Dec 2021 10:07:51 +0300 Message-ID: <875yr9gqbc.fsf@depni.sinp.msu.ru> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: none client-ip=213.131.7.21; envelope-from=belyshev@depni.sinp.msu.ru; helo=depni-mx.sinp.msu.ru X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: submit X-Mailman-Approved-At: Tue, 28 Dec 2021 03:48:02 -0500 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) 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]) ------------=_1640686143-22683-1--