From owner-freebsd-questions@FreeBSD.ORG Mon Jan 26 18:00:16 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 47E65106574A for ; Mon, 26 Jan 2009 18:00:16 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from mail.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 11FBF8FC1E for ; Mon, 26 Jan 2009 18:00:16 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (mail.rachie.is-a-geek.net [192.168.2.101]) by mail.rachie.is-a-geek.net (Postfix) with ESMTP id 6FF47AFC1FE; Mon, 26 Jan 2009 09:00:15 -0900 (AKST) From: Mel To: freebsd-questions@freebsd.org, Polytropon Date: Mon, 26 Jan 2009 09:00:14 -0900 User-Agent: KMail/1.9.10 References: <20090126125528.GA292@mech-cluster238.men.bris.ac.uk> <20090126150648.57c70940.freebsd@edvax.de> In-Reply-To: <20090126150648.57c70940.freebsd@edvax.de> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200901260900.15053.fbsd.questions@rachie.is-a-geek.net> Cc: Anton Shterenlikht Subject: Re: overwriting NOT_FOR_ARCHS via /etc/make.conf has no effect X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 Jan 2009 18:00:18 -0000 On Monday 26 January 2009 05:06:48 Polytropon wrote: > On Mon, 26 Jan 2009 12:55:29 +0000, Anton Shterenlikht wrote: > > I'm trying to overwrite a Makefile variable via /etc/make.conf > > It doesn't seem to work: > > This behaviour is correct. The local makefiles have precedence > before the /etc/make.conf settings. They don't, even though it seems so. The Makefile is *read* after /etc/make.conf. The Makefile sets this variable unconditionally, therefore cannot be overridden by anything that is read before the Makefile. If the Makefile defined it like so: NOT_FOR_ARCHS?=alpha ia64 then /etc/make.conf would work, since the variable is defined at the time the Makefile is read. > > > What am I doing wrong? > > You could modify the port's Makefile itself, or create Makefile.local > in the port's dicrectory with your specific settings, but I don't > now if this mechanism is still supported. It is and since Makefile.local is read *after* the Makefile, you can override the variable there. -- Mel Problem with today's modular software: they start with the modules and never get to the software part.