From owner-freebsd-ports@FreeBSD.ORG Wed Jul 25 18:18:53 2012 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C544106566C; Wed, 25 Jul 2012 18:18:53 +0000 (UTC) (envelope-from swhetzel@gmail.com) Received: from mail-gh0-f182.google.com (mail-gh0-f182.google.com [209.85.160.182]) by mx1.freebsd.org (Postfix) with ESMTP id C626A8FC0C; Wed, 25 Jul 2012 18:18:52 +0000 (UTC) Received: by ghbz22 with SMTP id z22so1252661ghb.13 for ; Wed, 25 Jul 2012 11:18:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=BjKQ9SzS4yE10Mv346wnBpG7NNYVBlxAlCy44cLZmcQ=; b=X/r9p2SZayVQNPWJHLOejR9gaJckGU4oYuS0hHUCcrNyobZmx6xdMN1i4eFfMblGmm xb5jViEOF5S6+nTnSiWYvd7csk4pfnkBXZb3A9aLcgnRgkq3o02fJrzM6ALUuq505jqq hD2Sgo0toFKMynCsyMo0L+1FAsr6WzWSQ4vfN1SuNvlFvf3dbX74Yycl0t4QMbd1S7uH Z6wVRBOvdYGxWlRodTBvXXYDTV410/35tPJ6hI39QZ8s0r/rI9l8x+wOkLwMX/TpiEE5 MekvHCsvW+UjloivYSc2CtMbBTQt+GDb1ofXPL+PpIIJRzEGyG0HpH/837RYB4Yx8AkP 3D9Q== MIME-Version: 1.0 Received: by 10.60.1.69 with SMTP id 5mr36665265oek.66.1343240331844; Wed, 25 Jul 2012 11:18:51 -0700 (PDT) Received: by 10.182.14.201 with HTTP; Wed, 25 Jul 2012 11:18:51 -0700 (PDT) In-Reply-To: <201207251709.q6PH9mpJ086314@lurza.secnetix.de> References: <20120725155932.GA13771@ithaqua.etoilebsd.net> <201207251709.q6PH9mpJ086314@lurza.secnetix.de> Date: Wed, 25 Jul 2012 13:18:51 -0500 Message-ID: From: Scot Hetzel To: Oliver Fromme Content-Type: text/plain; charset=ISO-8859-1 Cc: bapt@freebsd.org, freebsd-ports@freebsd.org Subject: Re: Question about new options framework (regression?) X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 25 Jul 2012 18:18:53 -0000 On Wed, Jul 25, 2012 at 12:09 PM, Oliver Fromme wrote: > Baptiste Daroussin wrote: > > On Wed, Jul 25, 2012 at 05:11:18PM +0200, Oliver Fromme wrote: > > > What is the proper way to temporarily change an option on > > > the command line or within a script? > > > > > > For example, I have a script that builds both dynamic and > > > static zsh binaries, without user intervention. With the > > > old options system, the script set "WITH_ZSH_STATIC=true" > > > when building the port. With the new options framework, > > > that doesn't work aymore. > > > > > > Is there a variable that can be set to override what's read > > > from the options file? If there is none, this feels like a > > > regression. > > > > $ OPTIONS_SET="STATIC" make showconfig > > ===> The following configuration options are available for zsh-5.0.0: > > DEBUG=off: Install debug symbols > > DOCS=on: Build and install the documentation > > GDBM=off: Enable GDBM support (GPL) > > MAILDIR=on: Enable support for Maildirs in MAIL(PATH) > > MEM=off: Enable zsh-mem options > > MULTIBYTE=on: multibyte character support > > PCRE=off: Use Perl Compatible Regular Expressions > > SECURE_FREE=on: Enable zsh-secure-free > > STATIC=on: Build static executable/libraries > > ===> Use 'make config' to modify these settings > > I'm afraid it doesn't work for me: > > $ OPTIONS_SET="STATIC" make showconfig > ===> The following configuration options are available for zsh-5.0.0: > DEBUG=off: Install debug symbols > DOCS=on: Build and install the documentation > GDBM=off: Enable GDBM support (GPL) > MAILDIR=on: Enable support for Maildirs in MAIL(PATH) > MEM=on: Enable zsh-mem options > MULTIBYTE=on: multibyte character support > PCRE=off: Use Perl Compatible Regular Expressions > SECURE_FREE=on: Enable zsh-secure-free > STATIC=off: Build static executable/libraries > ===> Use 'make config' to modify these settings > > 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. Scot