Subject: pkg/10168: cdreocord doesn't build on machines that MACHINE != MACHINE_ARCH
To: None <gnats-bugs@gnats.netbsd.org>
From: SUNAGAWA Keiki <kei_sun@ba2.so-net.ne.jp>
List: netbsd-bugs
Date: 05/21/2000 14:57:12
>Number: 10168
>Category: pkg
>Synopsis: cdrecord configure doesn't work well with `uname -p'.
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: pkg-manager
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 21 14:58:00 PDT 2000
>Closed-Date:
>Last-Modified:
>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:
>Unformatted: