GNU bug report logs - #74453
running make failed when perl is installed in the very long path

Previous Next

Package: automake;

Reported by: "Li, Changqing" <Changqing.Li <at> windriver.com>

Date: Thu, 21 Nov 2024 04:25:03 UTC

Severity: normal

Done: Karl Berry <karl <at> freefriends.org>

Bug is archived. No further changes may be made.

Full log


Message #20 received at 74453 <at> debbugs.gnu.org (full text, mbox):

From: Changqing Li <changqing.li <at> windriver.com>
To: Nick Bowler <nbowler <at> draconx.ca>
Cc: 74453 <at> debbugs.gnu.org
Subject: Re: bug#74453: running make failed when perl is installed in the very
 long path
Date: Thu, 21 Nov 2024 16:00:35 +0800
[Message part 1 (text/plain, inline)]
On 11/21/24 12:56, Nick Bowler wrote:
> CAUTION: This email comes from a non Wind River email account!
> Do not click links or open attachments unless you recognize the sender and know the content is safe.
>
> On 2024-11-20 21:56, Li, Changqing via Bug reports for Automake wrote:
>> 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?
>> [...]
>> -#!@PERL@
>> +#!/usr/bin/env perl
> Hardcoding program names like this isn't really going to work well as a
> general solution.
>
> I was going to suggest you could just configure for your system with:
>
>    ./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.  You can patch configure to not exit:
>
> --- configure~
> +++ configure
> @@ -3514,7 +3514,7 @@ case $PERL in
>      as_fn_error $? "perl not found" "$LINENO" 5
>      ;;
>    *' '* | *'    '*)
> -  as_fn_error $? "The path to your Perl contains spaces or tabs.
> +:  as_fn_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." "$LINENO" 5
>     ;;
>
> and then it will let you set PERL='/usr/bin/env perl' and it will work.

@Nick,  Thanks for your help.

Regards

Changqing

>
> Hope that helps,
>    Nick
[Message part 2 (text/html, inline)]

This bug report was last modified 175 days ago.

Previous Next


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