pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/36282: news/trn fails to build due to ' in uname output



>Number:         36282
>Category:       pkg
>Synopsis:       news/trn fails to build due to ' in uname output
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sat May 05 17:40:00 +0000 2007
>Originator:     Rhialto
>Release:        NetBSD 3.0
>Organization:
        
>Environment:
        
        
System: NetBSD radl.falu.nl 3.0 NetBSD 3.0 (Radl's Pervasion of the Incorrect 
Chord) #2: Sun Nov 26 21:46:18 CET 2006 
root%radl.falu.nl@localhost:/usr/src/sys/arch/amd64/compile/RADL amd64
Architecture: x86_64
Machine: amd64
>Description:
        see pr pkg/36277
>How-To-Repeat:
        see pr pkg/36277
>Fix:
        
        Same idea, just different lines.
        
--- Configure.dist      2007-05-05 18:38:50.000000000 +0200
+++ Configure   2007-05-05 19:29:31.000000000 +0200
@@ -1507,7 +1507,7 @@
 myuname=`( ($uname -a) 2>/dev/null || hostname) 2>&1`
 # tr '[A-Z]' '[a-z]' would not work in EBCDIC
 # because the A-Z/a-z are not consecutive.
-myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e 's/\///g' | \
+myuname=`echo $myuname | $sed -e 's/^[^=]*=//' -e "s/['/]//g" | \
        ./tr '[A-Z]' '[a-z]' | tr $trnl ' '`
 newmyuname="$myuname"
 dflt=n

-Olaf.
-- 
___ Olaf 'Rhialto' Seibert      -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl        -- Cetero censeo "authored" delendum esse.

A: Because it messes up the order in which people normally read text.
>Q: Why is top-posting such a bad thing?
>>A: Top-posting.
>>>Q: What is the most annoying thing on usenet?

>Unformatted:
        
        



Home | Main Index | Thread Index | Old Index