From owner-freebsd-questions@FreeBSD.ORG Fri Jan 9 16:18:25 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 39EBC106566C for ; Fri, 9 Jan 2009 16:18:25 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail4.sea5.speakeasy.net (mail4.sea5.speakeasy.net [69.17.117.6]) by mx1.freebsd.org (Postfix) with ESMTP id 12ED88FC23 for ; Fri, 9 Jan 2009 16:18:24 +0000 (UTC) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 7673 invoked from network); 9 Jan 2009 16:18:10 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail4.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 9 Jan 2009 16:18:10 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 441C15084A; Fri, 9 Jan 2009 11:18:09 -0500 (EST) To: Anton Shterenlikht References: <20090108123259.GA69018@mech-cluster238.men.bris.ac.uk> From: Lowell Gilbert Date: Fri, 09 Jan 2009 11:18:09 -0500 In-Reply-To: <20090108123259.GA69018@mech-cluster238.men.bris.ac.uk> (Anton Shterenlikht's message of "Thu\, 8 Jan 2009 12\:32\:59 +0000") Message-ID: <44wsd4wj0e.fsf@be-well.ilk.org> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-questions@freebsd.org Subject: Re: ports tree build ignores /etc/make.conf X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Jan 2009 16:18:25 -0000 Anton Shterenlikht writes: > I have: > > # uname -srm > FreeBSD 6.4-STABLE alpha > # > > In /etc/make.conf I have > > .if ${.CURDIR:M*/lang/gcc*} > NOT_FOR_ARCHS= > .endif > > However, I get: > > # cd /usr/ports/lang/gcc43 > # make > ===> gcc-4.3.3_20090101 does not run on alpha ia64, while you are running alpha. > *** Error code 1 > > Stop in /usr/ports/lang/gcc43. > # > > So it seems make ignores NOT_FOR_ARCHS= setting. > When I add this to the gcc43/Makefile directly, build > goes ahead. > > What's the problem? The port's makefile is overriding the setting you put in make.conf. That variable is intended for use in ports, not by end-users (otherwise, the port makefile would use a different assignment operator to avoid overwriting existing settings). If you really think you can fix the build for that architecture, you should be modifying the original makefile. -- Lowell Gilbert, embedded/networking software engineer, Boston area http://be-well.ilk.org/~lowell/