Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 125535

Summary: perl and libperl compile error on PA7200
Product: Gentoo Linux Reporter: Chris Parrott (RETIRED) <cparrott>
Component: Current packagesAssignee: HPPA Porters <hppa>
Status: RESOLVED FIXED    
Severity: normal CC: perl
Priority: High    
Version: unspecified   
Hardware: HPPA   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: libperl-5.8.8 HP PA7200 uname patch

Description Chris Parrott (RETIRED) gentoo-dev 2006-03-08 14:30:34 UTC
I have seen this issue with sys-devel/libperl-5.8.8, but I would assume it applies to other perl/libperl versions, as well.

On PA7200 systems, uname -a returns a string similar to the following:

hamal ~ # uname -a
Linux hamal 2.6.15.1-pa4-livecd32 #1 Sun Feb 19 07:39:43 UTC 2006 parisc PA7200 (PCX-T') 9000/777/C110 GNU/Linux

The problem here is the single-quote (') character in the "(PCX-T')" portion of the string.  When running the Configure script in the toplevel perl source directory, the $myuname variable in the generated config.sh becomes:


myuname='linux hamal 2.6.15.1-pa4-livecd32 #1 sun feb 19 07:39:43 utc 2006 paris
c pa7200 (PCX-T') 9000777c110 gnulinux '


Obviously, since the single-quote character is not escaped, this string confuses the shell.  As a result, makedepend fails with an error, as the shell does not know how to handle the "extra" characters on this line.

For now, I have created a patch against Configure that applies a simple sed expression to remove (PCX-T') from the above string when compiling on hppa, so that libperl-5.8.8 will compile on my system.   But there probably exists a more elegant way to solve this problem.  I am open to suggestions.
Comment 1 Brett Johnson 2006-06-02 11:18:45 UTC
Created attachment 88201 [details, diff]
libperl-5.8.8 HP PA7200 uname patch

Here is one possible fix, it removes the single quote (') from the uname -a output
Comment 2 Guy Martin (RETIRED) gentoo-dev 2006-06-03 11:18:31 UTC
In CVS. thanks a lot !