From owner-freebsd-ports@FreeBSD.ORG Wed Jul 25 21:13:05 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1A946106564A for ; Wed, 25 Jul 2012 21:13:05 +0000 (UTC) (envelope-from ohauer@FreeBSD.org) Received: from p578be941.dip0.t-ipconnect.de (p578be941.dip0.t-ipconnect.de [87.139.233.65]) by mx1.freebsd.org (Postfix) with ESMTP id C65458FC0C for ; Wed, 25 Jul 2012 21:13:04 +0000 (UTC) Received: from [192.168.0.100] (cde1100.uni.vrs [192.168.0.100]) (Authenticated sender: ohauer) by p578be941.dip0.t-ipconnect.de (Postfix) with ESMTPSA id 1A79A20893 for ; Wed, 25 Jul 2012 23:13:01 +0200 (CEST) Message-ID: <5010615E.9060806@FreeBSD.org> Date: Wed, 25 Jul 2012 23:13:02 +0200 From: Olli Hauer User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:14.0) Gecko/20120713 Thunderbird/14.0 MIME-Version: 1.0 To: freebsd-ports@freebsd.org References: <20120725155932.GA13771@ithaqua.etoilebsd.net> <201207251709.q6PH9mpJ086314@lurza.secnetix.de> In-Reply-To: X-Enigmail-Version: 1.4.3 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: Question about new options framework (regression?) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: FreeBSD Ports List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2012 21:13:05 -0000 On 2012-07-25 20:18, Scot Hetzel wrote: > On Wed, Jul 25, 2012 at 12:09 PM, Oliver Fromme wrote: >> >> I also tried the other settings you suggested, and none >> of them works. It's always overridden by the settings >> that are stored in $PORT_DBDIR. >> >> With the old framework, I could override $PORT_DBDIR with >> "WITH_ZSH_STATIC=true" ... Can't this be done with the >> new framework, too? >> > Reading thru the Mk/bsd.options.mk, it seems you should be able to do: > > $ WITH_STATIC=true make showconfig > > And it might override the saved settings from the OPTIONSFILE. No, this will not work. $ make showconfig | grep STATIC STATIC=off: Build static executable/libraries $ make -V LDFLAGS -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib $ make -V LDFLAGS WITH_STATIC=true -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib Expected result: -L/usr/local/lib -rpath=/usr/lib:/usr/local/lib -static Seems we will see more such issues with slave ports since they cannot overwrite the optionsfile (maybe a fake target in the slave with make rmconfig can be a solution ;) For me this is a regression which was already discussed on this list ( optionsng and tinderbox? ) I also ask with a simple example and got no answers ( options NG and slave/sub ports )