|
From: | GNU bug Tracking System |
Subject: | bug#74453: closed (running make failed when perl is installed in the very long path) |
Date: | Sun, 24 Nov 2024 01:59:02 +0000 |
Your message dated Sat, 23 Nov 2024 18:58:28 -0700 with message-id <202411240158.4AO1wS8o362868@freefriends.org> and subject line Re: bug#74453: running make failed when perl is installed in the very long path has caused the debbugs.gnu.org bug report #74453, regarding running make failed when perl is installed in the very long path to be marked as done. (If you believe you have received this mail in error, please contact help-debbugs@gnu.org.) -- 74453: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=74453 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems
--- Begin Message ---Subject: running make failed when perl is installed in the very long path Date: Thu, 21 Nov 2024 02:56:29 +0000
Hi, Dear Maintainers
I met an issue when try to compile automake with the perl installed in a very long path which larger then max length of shebang , here is the reproduce steps
git clone git@github.com:autotools-mirror/automake.git; cd automake ./bootstrap ./configure makeFailed with error:...GEN doc/aclocal-1.17.1help2man: can't get `--help' info from bin/aclocalTry `--no-discard-stderr' if option outputs to stderrmake: *** [Makefile:3818: doc/aclocal-1.17.1] Error 2
The failure is caused by the long path of the perl in aclocal.in, the shebang is cutted. Could we change it like following diff?diff --git a/bin/aclocal.in b/bin/aclocal.inindex 4d01f3a4d..73d5ee47f 100644--- a/bin/aclocal.in+++ b/bin/aclocal.in@@ -1,4 +1,4 @@-#!@PERL@+#!/usr/bin/env perl# aclocal - create aclocal.m4 by scanning configure.ac -*- perl -*-# @configure_input@# Copyright (C) 1996-2024 Free Software Foundation, Inc.diff --git a/bin/automake.in b/bin/automake.inindex 479125505..55985ea34 100644--- a/bin/automake.in+++ b/bin/automake.in@@ -1,4 +1,4 @@-#!@PERL@+#!/usr/bin/env perl# automake - create Makefile.in from Makefile.am -*- perl -*-# @configure_input@# Copyright (C) 1994-2024 Free Software Foundation, Inc.
Thank you,Changqing
--- End Message ---
--- Begin Message ---Subject: Re: bug#74453: running make failed when perl is installed in the very long path Date: Sat, 23 Nov 2024 18:58:28 -0700 > ./configure PERL='/usr/bin/env perl' > > and it will substitute that into the scripts for you, but the configure > script in Automake 1.17 exits with a fatal error if it determines that > $PERL contains spaces. We should probably make this non fatal since the > check is clearly too broad. I changed this to a warning. Thanks. -k ----------------------------------------------------------------------------- configure: make perl path with whitespace a warning, not error. For https://bugs.gnu.org/74453. See also https://bugs.gnu.org/62896. * configure.ac (PERL): use AC_MSG_WARN. diff --git a/configure.ac b/configure.ac index e4c7a126c..fb2b37076 100644 --- a/configure.ac +++ b/configure.ac @@ -73,9 +73,11 @@ case $PERL in AC_MSG_ERROR([perl not found]) ;; *' '* | *' '*) - AC_MSG_ERROR([The path to your Perl contains spaces or tabs. -This would cause build failures later or unusable programs. -Please use a path without spaces and try again.]) + AC_MSG_WARN([The path to your Perl contains spaces or tabs. +This will likely cause build failures later or unusable programs. +Unless you're specifying a full string for a #! line, +as in "/usr/bin/env perl", +please use a path without spaces and try again.]) ;; esac
--- End Message ---
[Prev in Thread] | Current Thread | [Next in Thread] |