NetBSD Problem Report #43074

From www@NetBSD.org  Mon Mar 29 13:59:56 2010
Return-Path: <www@NetBSD.org>
Received: from mail.netbsd.org (mail.netbsd.org [204.152.190.11])
	by www.NetBSD.org (Postfix) with ESMTP id DB15863B86C
	for <gnats-bugs@gnats.NetBSD.org>; Mon, 29 Mar 2010 13:59:55 +0000 (UTC)
Message-Id: <20100329135955.778A863B11D@www.NetBSD.org>
Date: Mon, 29 Mar 2010 13:59:55 +0000 (UTC)
From: dennis.c.ferguson@gmail.com
Reply-To: dennis.c.ferguson@gmail.com
To: gnats-bugs@NetBSD.org
Subject: etc/MAKEDEV.awk doesn't find majors file for powerpc64 builds
X-Send-Pr-Version: www-1.0

>Number:         43074
>Category:       port-powerpc
>Synopsis:       etc/MAKEDEV.awk doesn't find majors file for powerpc64 builds
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    port-powerpc-maintainer
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Mon Mar 29 14:00:00 +0000 2010
>Closed-Date:    Tue Mar 30 07:32:36 +0000 2010
>Last-Modified:  Tue Mar 30 07:35:01 +0000 2010
>Originator:     Dennis Ferguson
>Release:        very recent 5.99.24
>Organization:
>Environment:
NetBSD acer.hk.akit-ferguson.com 5.99.24 NetBSD 5.99.24 (GENERIC) #0: Sun Mar 14 17:25:30 HKT 2010  dennis@acer.hk.akit-ferguson.com:/usr/obj/sys/arch/amd64/compile/GENERIC amd64

>Description:
When a macppc64 build gets to the point of making /dev/MAKEDEV
the script etc/MAKEDEV.awk fails as follows:

#    create  etc/MAKEDEV
MACHINE=macppc MACHINE_ARCH=powerpc64  NETBSDSRCDIR=/usr/NetBSD/src  /usr/NetBSD/src/obj/tooldir.NetBSD-5.99.24-amd64/bin/nbawk -f /usr/NetBSD/src/etc/MAKEDEV.awk /usr/NetBSD/src/etc/MAKEDEV.tmpl  > MAKEDEV
ERROR: can't find majors file '/usr/NetBSD/src/sys/arch/macppc/conf/majors.macppc'

*** Failed target:  MAKEDEV

>How-To-Repeat:
Do a:

    MACHINE=macppc64 ./build.sh distribution
>Fix:
32 bit macppc builds get their device configuration
from a slightly out-of-the-ordinary spot.  macppc64
builds need to share the customization in MAKEDEV.awk
as in the following patch:

Index: etc/MAKEDEV.awk
===================================================================
RCS file: /cvsroot/src/etc/MAKEDEV.awk,v
retrieving revision 1.20
diff -u -r1.20 MAKEDEV.awk
--- etc/MAKEDEV.awk     30 Apr 2008 13:10:49 -0000      1.20
+++ etc/MAKEDEV.awk     29 Mar 2010 13:56:59 -0000
@@ -59,7 +59,7 @@
                majors[1] = "arch/arm/conf/majors.arm32";
        else if (machine == "sbmips")
                majors[1] = "arch/evbmips/conf/majors.evbmips";
-       else if ((maarch == "powerpc") && system("test -f '" top "arch/" machine "/conf/majors." machine "'") != 0)
+       else if ((maarch == "powerpc" || maarch == "powerpc64") && system("test -f '" top "arch/" machine "/conf/majors." machine "'") != 0)
                majors[1] = "arch/powerpc/conf/majors.powerpc";
        else
                majors[1] = "arch/" machine "/conf/majors." machine;

>Release-Note:

>Audit-Trail:

State-Changed-From-To: open->closed
State-Changed-By: mrg@NetBSD.org
State-Changed-When: Tue, 30 Mar 2010 07:32:36 +0000
State-Changed-Why:
changed applied as suggested. thanks!


From: matthew green <mrg@netbsd.org>
To: gnats-bugs@gnats.NetBSD.org
Cc: 
Subject: PR/43074 CVS commit: src/etc
Date: Tue, 30 Mar 2010 07:30:03 +0000

 Module Name:	src
 Committed By:	mrg
 Date:		Tue Mar 30 07:30:03 UTC 2010

 Modified Files:
 	src/etc: MAKEDEV.awk

 Log Message:
 make sure we pickup the powerpc majors file on powerpc64.

 from dennis.c.ferguson@gmail.com in PR#43074.


 To generate a diff of this commit:
 cvs rdiff -u -r1.20 -r1.21 src/etc/MAKEDEV.awk

 Please note that diffs are not public domain; they are subject to the
 copyright notices on the relevant files.

>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.