Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 22 Feb 2004 02:59:18 +0800 (CST)
From:      Yen-Ming Lee <leeym@utopia.leeym.com>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/63181: set MACHINE_ARCH to ARCH
Message-ID:  <20040221185918.B2D213EAB43@utopia.leeym.com>
Resent-Message-ID: <200402211900.i1LJ0hxA042615@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         63181
>Category:       ports
>Synopsis:       set MACHINE_ARCH to ARCH
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Feb 21 11:00:43 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     Yen-Ming Lee
>Release:        FreeBSD 5.2.1-RC2 i386
>Organization:
>Environment:
System: FreeBSD utopia.leeym.com 5.2.1-RC2 FreeBSD 5.2.1-RC2 #5: Tue Feb 17 05:19:23 CST 2004 root@utopia.leeym.com:/usr/obj/usr/src/sys/UTOPIA i386


	
>Description:

MACHINE_ARCH is hardcoded as "i386" in bsd.port.mk
ARCH is the result of "uname -p"

CONFIGURE_TARGET is defined as ${MACHINE_ARCH}-portbld-freebsd${OSREL},
so it will always be i386-portbld-freebsdX.Y. Therefore, it will mislead
the configure script in some ports, such as lang/gauche, while building
on non-i386 platforms. By the way, the hardcoded MACHINE_ARCH will confuse
ONLY_FOR_ARCHS and NOT_FOR_ARCHS, too.

However, this patch may break something on pre-3.0 systems.
Need further discussions.

>How-To-Repeat:
	
>Fix:

	

--- bsd.port.mk.diff begins here ---
? bsd.port.mk.diff
Index: bsd.port.mk
===================================================================
RCS file: /home/pcvs/ports/Mk/bsd.port.mk,v
retrieving revision 1.484
diff -u -r1.484 bsd.port.mk
--- bsd.port.mk	4 Feb 2004 04:27:04 -0000	1.484
+++ bsd.port.mk	21 Feb 2004 18:50:36 -0000
@@ -975,7 +975,7 @@
 .endif
 
 # Kludge for pre-3.0 systems
-MACHINE_ARCH?=	i386
+MACHINE_ARCH?=	${ARCH}
 
 # Get the operating system type
 .if !defined(OPSYS)
--- bsd.port.mk.diff ends here ---


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040221185918.B2D213EAB43>