pkgsrc-Bugs archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

pkg/35162: lang/spidermonkey files/pkgsrc.mk does not detect CPU type properly



>Number:         35162
>Category:       pkg
>Synopsis:       lang/spidermonkey files/pkgsrc.mk does not detect CPU type 
>properly
>Confidential:   no
>Severity:       critical
>Priority:       medium
>Responsible:    pkg-manager
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Thu Nov 30 19:50:00 +0000 2006
>Originator:     Blair Sadewitz
>Release:        4.99.4 amd64
>Organization:
>Environment:
NetBSD woody 4.99.4 NetBSD 4.99.4 (GENERIC.MPACPI) #7: Wed Nov 29 11:14:56 EST 2
006  blair@woody:/u/scratch/src/sys/arch/amd64/compile/GENERIC.MPACPI amd64
>Description:
pkgsrc.mk uses uname -m to detect CPU type, but it really should use uname -p.  
This results in the x86_64 va_copy defines not being used, and the build fails.
>How-To-Repeat:
Build spidermonkey on NetBSD/amd64.
>Fix:
--- files/pkgsrc.mk.orig        2006-11-30 14:41:47.000000000 -0500
+++ files/pkgsrc.mk     2006-11-30 14:41:55.000000000 -0500
@@ -52,7 +52,7 @@
 #.c.o:
 #      $(CC) -c -MD $*.d $(CFLAGS) $<
 
-CPU_ARCH = $(shell uname -m)
+CPU_ARCH = $(shell uname -p)
 # don't filter in x86-64 architecture
 ifneq (x86_64,$(CPU_ARCH))
 ifeq (86,$(findstring 86,$(CPU_ARCH)))




Home | Main Index | Thread Index | Old Index