develooper Front page | perl.perl5.porters | Postings from August 2016

[perl #129152] mkpport adds quotes to $perl even if it's alreadyquoted

Thread Next
From:
James E Keenan via RT
Date:
August 31, 2016 16:43
Subject:
[perl #129152] mkpport adds quotes to $perl even if it's alreadyquoted
Message ID:
rt-4.0.24-11917-1472661799-1012.129152-15-0@perl.org
On Wed Aug 31 07:38:33 2016, comdog wrote:
> I'm compiling 5.25.4 from a path with a space character in it. It
> fails from a double double quoting issue that tries to run a command
> like:
> 
> ""/Path/To Some/Place/perl"" ...
> 
> which_perl from MakeMaker::Test::Utils returns a path already quoted,
> like q("/Path/To Some/Place/perl"). The run subroutine in mkpport
> checks for whitespace in $perl and adds another layer of double quotes
> around the string if it finds whitespace. It should only do that if
> the value doesn't already have those quotes.

So, to confirm this problem, I created this directory:

#####
/home/jkeenan/Downloads/My Subdir
#####

... got the tarball for perl-5.25.4, unpacked it and moved into the unpacked directory, configured perl and called 'make -j${TEST_JOBS} test_prep' as I would normally do with blead.  'make' silently terminated at this point:

#####
Making pod file
Making test script
Updating 'mktables.lst'
#####

When I then called 'make', 'make' terminated with this error output:

#####
./miniperl -Ilib mkppport
running ""/home/jkeenan/Downloads/My Subdir/perl-5.25.4/miniperl"" -I../../lib PPPort_pm.PL
sh: 1: /home/jkeenan/Downloads/My: not found
""/home/jkeenan/Downloads/My Subdir/perl-5.25.4/miniperl"" -I../../lib PPPort_pm.PL failed: 32512
makefile:402: recipe for target 'makeppport' failed
make: *** [makeppport] Error 2
#####

Is that the error output you're getting?

Thank you very much.
Jim Keenan
-- 
James E Keenan (jkeenan@cpan.org)

---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=129152

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About