From owner-freebsd-questions@FreeBSD.ORG Wed May 6 15:40:45 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 52C5E1065670 for ; Wed, 6 May 2009 15:40:45 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from mailhub.rachie.is-a-geek.net (rachie.is-a-geek.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 18ACD8FC1B for ; Wed, 6 May 2009 15:40:44 +0000 (UTC) (envelope-from mel.flynn+fbsd.questions@mailing.thruhere.net) Received: from sarevok.dnr.servegame.org (mailhub.lan.rachie.is-a-geek.net [192.168.2.11]) by mailhub.rachie.is-a-geek.net (Postfix) with ESMTP id C49A97E837; Wed, 6 May 2009 07:40:43 -0800 (AKDT) From: Mel Flynn To: freebsd-questions@freebsd.org Date: Wed, 6 May 2009 17:40:41 +0200 User-Agent: KMail/1.11.2 (FreeBSD/8.0-CURRENT; KDE/4.2.2; i386; ; ) References: <20090506083152.GA48658@mech-cluster238.men.bris.ac.uk> <200905061115.07888.mel.flynn+fbsd.questions@mailing.thruhere.net> <20090506093117.GA64688@mech-cluster238.men.bris.ac.uk> In-Reply-To: <20090506093117.GA64688@mech-cluster238.men.bris.ac.uk> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200905061740.41949.mel.flynn+fbsd.questions@mailing.thruhere.net> Cc: Anton Shterenlikht Subject: Re: make - reassign variable using if-then ? 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: Wed, 06 May 2009 15:40:45 -0000 On Wednesday 06 May 2009 11:31:17 Anton Shterenlikht wrote: > I'm trying to build gcc43 on alpha 6.4. > In /usr/ports/lang/gcc43/Makefile I have: > > # grep NOT_FOR_ARCHS /usr/ports/lang/gcc43/Makefile > NOT_FOR_ARCHS= alpha ia64 powerpc > # > > In /etc/make.conf I have: > > .if ${.CURDIR:M*/lang/gcc43*} > NOT_FOR_ARCHS= ia64 > USE_GCC=4.3+ > .endif > > This used to work fine until some update. Not anymore. > The second setting is being used, i.e. the port is being built > with gcc43. But the NOT_FOR_ARCHS is not changed, so I have > to do it manually each time. > > So I tried to experiment with changing variable values withing if-then. Your only option is overriding in /usr/portslang/gcc43/Makefile.local. This is because make.conf is read *before* the Makefile and the Makefile simply overrides your values. Makefile.local is read *after* the Makefile. csup will leave it alone, however portsnap will delete the entire directory before upgrading the port, so your Makefile.local will be shot. -- Mel