NetBSD Problem Report #37938

From martin@duskware.de  Fri Feb  1 15:15:55 2008
Return-Path: <martin@duskware.de>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by narn.NetBSD.org (Postfix) with ESMTP id 4F08763B853
	for <gnats-bugs@gnats.netbsd.org>; Fri,  1 Feb 2008 15:15:55 +0000 (UTC)
Message-Id: <20080201151526.CAA8663B853@narn.NetBSD.org>
Date: Fri,  1 Feb 2008 15:15:26 +0000 (UTC)
From: palle@lyckegaard.dk
Reply-To: palle@lyckegaard.dk
To: netbsd-bugs-owner@NetBSD.org
Subject: Solaris 10 / SPARC hosted build of NetBSD fails in MAKEDEV.awk
X-Send-Pr-Version: www-1.0

>Number:         37938
>Category:       toolchain
>Synopsis:       Solaris 10 / SPARC hosted build of NetBSD fails in MAKEDEV.awk
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    toolchain-manager
>State:          closed
>Class:          change-request
>Submitter-Id:   net
>Arrival-Date:   Fri Feb 01 15:20:01 +0000 2008
>Closed-Date:    Sat Sep 08 13:33:30 +0000 2018
>Last-Modified:  Sat Sep 08 13:33:30 +0000 2018
>Originator:     Palle Lyckegaard
>Release:        current
>Organization:
>Environment:
SunOS odin 5.10 Generic_118833-33 sun4u sparc SUNW,Ultra-5_10

>Description:
The attached patch to src/etc/MAKEDEV.awk removes an issue with building 
NetBSD on a Solaris 10 / SPARC hosted system (with PATH as described in 
src/tools/compat/README)

Apparently Solaris awk in /usr/xpg4/bin (MKS awk with POSIX/XCU4 changes) 
has some problems with the original construction in MAKEDEV.awk (introduced in rev. 1.17 of 
MAKEDEV.awk).

Please consider committing this fix so NetBSD is build on Solaris 10 / 
SPARC hosted systems.

regards
Palle

84d83
< 
96c95
< 	if ( length(CONSOLE_CMAJOR) == 0) {
---
> 	if (CONSOLE_CMAJOR == "") {

>How-To-Repeat:

>Fix:

>Release-Note:

>Audit-Trail:
From: Alan Barrett <apb@cequrux.com>
To: gnats-bugs@NetBSD.org
Cc: netbsd-bugs@NetBSD.org
Subject: Re: toolchain/37938: Solaris 10 / SPARC hosted build of NetBSD
	fails in MAKEDEV.awk
Date: Sat, 2 Feb 2008 17:42:18 +0200

 On Fri, 01 Feb 2008, palle@lyckegaard.dk wrote:
 > The attached patch to src/etc/MAKEDEV.awk removes an issue with building 
 > NetBSD on a Solaris 10 / SPARC hosted system (with PATH as described in 
 > src/tools/compat/README)

 What's the exact error message?

 > 84d83
 > < 
 > 96c95
 > < 	if ( length(CONSOLE_CMAJOR) == 0) {
 > ---
 > > 	if (CONSOLE_CMAJOR == "") {

 (In future, please submit patches in unidiff format, as produced by
 "cvs diff -u".)

 MAKEDEV.awk already contains the line 'if (CONSOLE_CMAJOR == "") {'.
 If you have a copy with 'if ( length(CONSOLE_CMAJOR) == 0) {' then
 I don't know where you obtained it.

 As far as I can tell from reading
 <http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html>,
 both variants should be acceptable.

 --apb (Alan Barrett)

From: Palle Lyckegaard <palle@lyckegaard.dk>
To: gnats-bugs@NetBSD.org
Cc: toolchain-manager@NetBSD.org, gnats-admin@NetBSD.org,
        netbsd-bugs@NetBSD.org
Subject: Re: toolchain/37938: Solaris 10 / SPARC hosted build of NetBSD fails
 in MAKEDEV.awk
Date: Sat, 2 Feb 2008 20:05:52 +0000 (UTC)

   This message is in MIME format.  The first part should be readable text,
   while the remaining parts are likely unreadable without MIME-aware tools.

 --0-1842316281-1201982752=:27386
 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed

 On Sat, 2 Feb 2008, Alan Barrett wrote:

 > Date: Sat,  2 Feb 2008 19:00:06 +0000 (UTC)
 > From: Alan Barrett <apb@cequrux.com>
 > Reply-To: gnats-bugs@NetBSD.org
 > To: toolchain-manager@NetBSD.org, gnats-admin@NetBSD.org,
 >     netbsd-bugs@NetBSD.org, palle@lyckegaard.dk
 > Subject: Re: toolchain/37938: Solaris 10 / SPARC hosted build of NetBSD fails
 >     in MAKEDEV.awk
 > 
 > The following reply was made to PR toolchain/37938; it has been noted by GNATS.
 >
 > From: Alan Barrett <apb@cequrux.com>
 > To: gnats-bugs@NetBSD.org
 > Cc: netbsd-bugs@NetBSD.org
 > Subject: Re: toolchain/37938: Solaris 10 / SPARC hosted build of NetBSD
 > 	fails in MAKEDEV.awk
 > Date: Sat, 2 Feb 2008 17:42:18 +0200
 >
 > On Fri, 01 Feb 2008, palle@lyckegaard.dk wrote:
 > > The attached patch to src/etc/MAKEDEV.awk removes an issue with building
 > > NetBSD on a Solaris 10 / SPARC hosted system (with PATH as described in
 > > src/tools/compat/README)
 >
 > What's the exact error message?

 "ERROR: no entry for ''cons' in majors file"
 >
 > > 84d83
 > > <
 > > 96c95
 > > < 	if ( length(CONSOLE_CMAJOR) == 0) {
 > > ---
 > > > 	if (CONSOLE_CMAJOR == "") {
 >
 > (In future, please submit patches in unidiff format, as produced by
 > "cvs diff -u".)

 new (properly) patch attached...
 >
 > MAKEDEV.awk already contains the line 'if (CONSOLE_CMAJOR == "") {'.
 > If you have a copy with 'if ( length(CONSOLE_CMAJOR) == 0) {' then
 > I don't know where you obtained it.
 >
 > As far as I can tell from reading
 > <http://www.opengroup.org/onlinepubs/009695399/utilities/awk.html>,
 > both variants should be acceptable.
 >
 > --apb (Alan Barrett)
 >
 >

 --
 -- 
                    ,      ,
         o    .    /(,----.)\        o
         |   /,\   \' ^  ^ `/        |
         |   ((    | (o)(o) |        |
    _____|____\\.OOOo_(__)_oOOO._____|_____
   /                                       \
   )                 NetBSD                (
   \_____________________Oooo._____________/
         |       .oooO   (   )       |
       ,---.     (   )    ) /      ,---.
       | | |      \ (    (_/       | | |
       V V V       \_)             V V V

 --0-1842316281-1201982752=:27386
 Content-Type: TEXT/PLAIN; charset=US-ASCII; name=MAKEDEV.awk.diff
 Content-Transfer-Encoding: BASE64
 Content-ID: <Pine.NEB.4.64.0802022005520.27386@otaku.freeshell.org>
 Content-Description: 
 Content-Disposition: attachment; filename=MAKEDEV.awk.diff

 SW5kZXg6IE1BS0VERVYuYXdrDQo9PT09PT09PT09PT09PT09PT09PT09PT09
 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09DQpS
 Q1MgZmlsZTogL2N2c3Jvb3Qvc3JjL2V0Yy9NQUtFREVWLmF3ayx2DQpyZXRy
 aWV2aW5nIHJldmlzaW9uIDEuMTkNCmRpZmYgLXUgLXIxLjE5IE1BS0VERVYu
 YXdrDQotLS0gTUFLRURFVi5hd2sJMTAgRGVjIDIwMDcgMTc6NTc6MjQgLTAw
 MDAJMS4xOQ0KKysrIE1BS0VERVYuYXdrCTIgRmViIDIwMDggMTk6NTg6MDEg
 LTAwMDANCkBAIC05Miw3ICs5Miw3IEBADQogCQljbG9zZShmaWxlKQ0KIAl9
 DQogCUNPTlNPTEVfQ01BSk9SID0gY2hyWyJjb25zIl0NCi0JaWYgKENPTlNP
 TEVfQ01BSk9SID09ICIiKSB7DQorCWlmICggbGVuZ3RoKENPTlNPTEVfQ01B
 Sk9SKSA9PSAwKSB7DQogCQlwcmludCAiRVJST1I6IG5vIGVudHJ5IGZvciAn
 Y29ucycgaW4gbWFqb3JzIGZpbGUiID4gIi9kZXYvc3RkZXJyIg0KIAkJZXhp
 dCAxDQogCX0NCg==

 --0-1842316281-1201982752=:27386--

From: Palle Lyckegaard <palle@lyckegaard.dk>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: toolchain/37938
Date: Fri, 7 Sep 2018 18:21:30 +0000 (UTC)

 Hi.

 This bug should be closed without further handling - it is not relevant 
 anymore.

 Regards
 Palle Lyckegaard
 palle@netbsd.org

State-Changed-From-To: open->closed
State-Changed-By: martin@NetBSD.org
State-Changed-When: Sat, 08 Sep 2018 13:33:30 +0000
State-Changed-Why:
Fixed


>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.43 2018/01/16 07:36:43 maya Exp $
$NetBSD: gnats_config.sh,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2017 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.