From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Feb 21 11:00:44 2004 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D795716A599 for ; Sat, 21 Feb 2004 11:00:43 -0800 (PST) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id B8E1B43D1F for ; Sat, 21 Feb 2004 11:00:43 -0800 (PST) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) i1LJ0hbv042616 for ; Sat, 21 Feb 2004 11:00:43 -0800 (PST) (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.12.10/8.12.10/Submit) id i1LJ0hxA042615; Sat, 21 Feb 2004 11:00:43 -0800 (PST) (envelope-from gnats) Resent-Date: Sat, 21 Feb 2004 11:00:43 -0800 (PST) Resent-Message-Id: <200402211900.i1LJ0hxA042615@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Yen-Ming Lee Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6536316A4DB for ; Sat, 21 Feb 2004 10:59:22 -0800 (PST) Received: from utopia.leeym.com (utopia.leeym.com [61.218.64.93]) by mx1.FreeBSD.org (Postfix) with ESMTP id F38A443D1D for ; Sat, 21 Feb 2004 10:59:21 -0800 (PST) (envelope-from leeym@utopia.leeym.com) Received: from localhost (localhost [127.0.0.1]) by utopia.leeym.com (Postfix) with ESMTP id D6F123EAB44 for ; Sun, 22 Feb 2004 02:59:20 +0800 (CST) Received: from utopia.leeym.com ([127.0.0.1]) by localhost (utopia.leeym.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 90681-10 for ; Sun, 22 Feb 2004 02:59:18 +0800 (CST) Received: by utopia.leeym.com (Postfix, from userid 1000) id B2D213EAB43; Sun, 22 Feb 2004 02:59:18 +0800 (CST) Message-Id: <20040221185918.B2D213EAB43@utopia.leeym.com> Date: Sun, 22 Feb 2004 02:59:18 +0800 (CST) From: Yen-Ming Lee To: FreeBSD-gnats-submit@FreeBSD.org X-Send-Pr-Version: 3.113 Subject: ports/63181: set MACHINE_ARCH to ARCH X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Yen-Ming Lee List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Feb 2004 19:00:44 -0000 >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: