NetBSD Problem Report #36282

From rhialto@falu.nl  Sat May  5 17:37:04 2007
Return-Path: <rhialto@falu.nl>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 1AA9263B853
	for <gnats-bugs@gnats.NetBSD.org>; Sat,  5 May 2007 17:37:04 +0000 (UTC)
Message-Id: <200705051737.l45Hb0pP009209@radl.falu.nl>
Date: Sat, 5 May 2007 19:37:00 +0200 (CEST)
From: Rhialto <rhialto@falu.nl>
Reply-To: rhialto@falu.nl
To: gnats-bugs@NetBSD.org
Cc: rhialto@falu.nl
Subject: news/trn fails to build due to ' in uname output
X-Send-Pr-Version: 3.95

>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:/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:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.39 2013/11/01 18:47:49 spz Exp $
$NetBSD: gnats_config.sh,v 1.8 2006/05/07 09:23:38 tsutsui Exp $
Copyright © 1994-2007 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.