NetBSD Problem Report #10168

Received: (qmail 4863 invoked from network); 21 May 2000 21:57:27 -0000
Message-Id: <200005212157.GAA02398@azarin.localnet>
Date: Mon, 22 May 2000 06:57:07 +0900 (JST)
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
Reply-To: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
To: gnats-bugs@gnats.netbsd.org
Cc: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
Subject: cdreocord doesn't build on machines that MACHINE != MACHINE_ARCH
X-Send-Pr-Version: 3.95

>Number:         10168
>Category:       pkg
>Synopsis:       cdrecord configure doesn't work well with `uname -p'.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    pkg-manager
>State:          closed
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun May 21 21:58:00 +0000 2000
>Closed-Date:    Mon May 22 02:06:47 +0000 2000
>Last-Modified:  Mon May 22 02:06:47 +0000 2000
>Originator:     SUNAGAWA Keiki
>Release:        2000-05-22
>Organization:
	home
>Environment:

System: NetBSD azarin 1.4P NetBSD 1.4P (AZARIN) #84: Wed Dec 1 21:54:14 JST 1999 kei@azarin:/a/anoncvs/netbsd/src/sys/arch/macppc/compile/AZARIN macppc


>Description:
	Configure script of cdrecord package try to recognize target host with
	`uname -m', but it returns ${MACHINE}, not ${MACHINE_ARCH}.  It seems
	that the transision from machine type to processor is not done.
>How-To-Repeat:
	Try to build cdrecord package on machines that ${MACHINE} !=
	${MACHINE_ARCH} like macppc.
>Fix:
	Apply the patch to pkgsrc.  I'm using cdrecord with this patch on
	sparc now.

	NB: cdrecord-current pkg should have same problem.

Index: Makefile
===================================================================
RCS file: /a/rsync/netbsd.org/pkgsrc/sysutils/cdrecord/Makefile,v
retrieving revision 1.27
diff -u -r1.27 Makefile
--- Makefile	2000/03/03 15:22:15	1.27
+++ Makefile	2000/03/09 14:07:56
@@ -12,7 +12,7 @@
 USE_GMAKE=	yes

 WRKSRC=		${WRKDIR}/${DISTNAME:C/a.*//}
-TARGET_ARCH=	${MACHINE}-netbsd-cc
+TARGET_ARCH=	${MACHINE_ARCH}-netbsd-cc
 TARGET_DIR=	OBJ/${TARGET_ARCH}

 post-configure:
Index: files/patch-sum
===================================================================
RCS file: /a/rsync/netbsd.org/pkgsrc/sysutils/cdrecord/files/patch-sum,v
retrieving revision 1.5
diff -u -r1.5 patch-sum
--- patch-sum	2000/03/15 00:09:07	1.5
+++ patch-sum	2000/03/15 17:26:10
@@ -4,3 +4,4 @@
 MD5 (patch-ab) = 39b1982d628e4b004c9d0e5901c156b3
 MD5 (patch-ac) = fbf28297f94c6609087ce37b936d98c8
 MD5 (patch-ae) = 5d9bcff9749c4c9378ea949d69bf4b02
+MD5 (patch-af) = 82018d82a174d9d22e4f0f09d2a20276
--- /dev/null	Mon May 22 06:32:13 2000
+++ patches/patch-af	Thu Mar  9 22:38:55 2000
@@ -0,0 +1,13 @@
+$NetBSD$
+
+--- RULES/mk-gmake.id.orig	Thu Mar  9 22:36:18 2000
++++ RULES/mk-gmake.id	Thu Mar  9 22:36:52 2000
+@@ -41,7 +41,7 @@
+ _ARCHCMD=	(arch || /usr/ucb/arch || true)	2> /dev/null
+ 
+ XP_ARCH:=	$(shell $(_MACHCMD) | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
+-XK_ARCH:=	$(shell uname -m    | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
++XK_ARCH:=	$(shell uname -p    | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
+ XM_ARCH:=	$(shell $(_ARCHCMD) | tr '[A-Z]' '[a-z]' | tr ', /\\()"' ',//////' | tr ',/' ',-')
+ 
+ P_ARCH=		$(XP_ARCH)
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: hubertf 
State-Changed-When: Sun May 21 19:06:13 PDT 2000 
State-Changed-Why:  
i've applied your patches and committed them 
to the cdrecord and cdrecord-current package. 
Thanks! 


- Hubert 
>Unformatted:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.51 2026/08/10 02:28:17 riastradh Exp $
$NetBSD: gnats_config.sh,v 1.10 2026/05/13 22:00:09 riastradh Exp $
Copyright © 1994-2026 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.