ports/63181: set MACHINE_ARCH to ARCH
Yen-Ming Lee
leeym at utopia.leeym.com
Sat Feb 21 19:00:44 UTC 2004
>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 at 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:
More information about the freebsd-ports-bugs
mailing list