From owner-freebsd-ports@FreeBSD.ORG Sun Mar 17 18:49:38 2013 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by hub.freebsd.org (Postfix) with ESMTP id 9A2A25FA for ; Sun, 17 Mar 2013 18:49:38 +0000 (UTC) (envelope-from baptiste.daroussin@gmail.com) Received: from mail-ee0-f50.google.com (mail-ee0-f50.google.com [74.125.83.50]) by mx1.freebsd.org (Postfix) with ESMTP id 1EFE4DC1 for ; Sun, 17 Mar 2013 18:49:37 +0000 (UTC) Received: by mail-ee0-f50.google.com with SMTP id e51so2359582eek.9 for ; Sun, 17 Mar 2013 11:49:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:sender:date:from:to:cc:subject:message-id:references :mime-version:content-type:content-disposition:in-reply-to :user-agent; bh=CnGdlJKEN38dMfYskQNzB0Jg6wansgPFMMrNwYJ52NE=; b=kUvHeYdfC0JmJ03WPwg5bYgdVSzTG7tPkkVeHi2aavbgMY3Uk5dZ49ucpDmh249rvi TlLPKpu2hapmJi3xWGSZb4a8EzGwpBHBeaiI2rRGkRnstFL3wE9eFLoWS9p0FETjJp+s ot5Ig5RcHluB2qgraBlx0mKMP7q4g2egjhCDo3w8wiNn/vhBumm4nPoMqpv2caererUd cjAnJElpFl5iVK7PuxmqdmOs1dLIwYlcolMX3N3pxC7HjiWjHFM4iNdPgaT4z58YtuFT NIIisQh1nx3+oqa6pxGILOHJ/+s7n501oA3f0LvmccwaIhKeGQabWG1ymqIkUaPEE5bf F5dg== X-Received: by 10.14.225.72 with SMTP id y48mr41024106eep.45.1363546171038; Sun, 17 Mar 2013 11:49:31 -0700 (PDT) Received: from ithaqua.etoilebsd.net (ithaqua.etoilebsd.net. [37.59.37.188]) by mx.google.com with ESMTPS id 46sm22833816eea.3.2013.03.17.11.49.29 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sun, 17 Mar 2013 11:49:29 -0700 (PDT) Sender: Baptiste Daroussin Date: Sun, 17 Mar 2013 19:49:27 +0100 From: Baptiste Daroussin To: Marco Steinbach Subject: Re: OPTIONSng: Overide options in /var/db/ports/*/options ? Message-ID: <20130317184927.GF72627@ithaqua.etoilebsd.net> References: <5145B415.80303@executive-computing.de> <5145C9DC.6010300@infracaninophile.co.uk> <5145E47D.4050201@executive-computing.de> <51460B2C.6080500@executive-computing.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="IvGM3kKqwtniy32b" Content-Disposition: inline In-Reply-To: <51460B2C.6080500@executive-computing.de> User-Agent: Mutt/1.5.21 (2010-09-15) Cc: FreeBSD Mailing List , Chris Rees X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 Mar 2013 18:49:38 -0000 --IvGM3kKqwtniy32b Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Sun, Mar 17, 2013 at 07:27:56PM +0100, Marco Steinbach wrote: > Chris Rees wrote on 17.03.2013 17:15: > > On 17 Mar 2013 15:45, "Marco Steinbach" w= rote: > >> Matthew Seaman wrote on 17.03.2013 14:49: > >> > >>> On 17/03/2013 12:16, Marco Steinbach wrote: > >>>> Hi, > >>>> > >>>> is there a way to overide options stored in /var/db/ports/*/options, > >>>> basically getting back the pre-OPTIONSng behaviour of being able to > >>>> overide port options in /etc/make.conf ? > >>>> > >>>> Before OPTIONSng was introduced, I was able to specify options in > >>>> /etc/make.conf (WITHOUT_X11, WITHOUT_CUPS, WITH_MAILHEAD, WITH_SSL, > >>>> WITH_MYSQL, WITH_DOVECOT, ...), which then overode any occurency of = that > >>>> option in any port (or just specific ones, by e.g. checking .CURDIR), > >>>> regardless of the setting the ports option file contained. > >>> > >>> Find the uniquename of the port[*] (by 'make -V UNIQUENAME') then in > >>> /etc/make.conf > >>> > >>> uniquename_SET=3D FOO BAR BAZ > >>> uniquename_UNSET=3D BLURFL > >>> > >>> will override the default settings in that port's Makefile for the FO= O, > >>> BAR, BAZ and BLURFL options. > >>> > >>> Note: this won't override any settings you make from an options dialo= g. > >>> Might be a good idea to 'make rmconfig' if you only want to rely on > >>> /etc/make.conf > >> > >> [...] > >> > >> Exactly my point. Currently, with OPTIONSng there seems to be no way = to > > overide anything in /var/db/ports/*/options. > >> I find it irritating, that I no longer can be sure about options in > > /etc/make.conf. I have to check/reconfigure to make sure. > >> As much as I like OPTIONSng (especially in combination with > > dialog4ports), this is one thing I'd very much like OPTIONSng to relear= n: > > Enforce options regardless of what's in a ports options file. > >=20 > > No, that's a bad idea. It's more confusing to have options not being s= et > > that are checked in the OPTIONS dialog. > >=20 > > Setting those in make.conf sets defaults, and allows them to be overrid= den > > in individual ports. >=20 > Let's say I never want CUPS, X11, EXAMPLES and DOCS, regardless of what= =20 > I willingly or accidentially configured in an OPTIONS dialog (or is=20 > defaulted to in a ports Makefile), either because I didn't understand=20 > the dependancy of a choice, I fat-fingered something or someone helps me= =20 > configuring something, and wants to make sure I get it right: >=20 > OPTIONS_UNSET_FORCE=3D CUPS X11 EXAMPLES DOCS >=20 > Same goes for the complementary case of having options set forcibly,=20 > either system-wide or per port: >=20 > particularport_SET_FORCE=3D EXAMPLES DOCS >=20 > I'd set these in /etc/make.conf, and be done for good. >=20 > I have a local patch for that kind of behaviour, but wanted to check for= =20 > possible alternatives besides the beaten path, before bothering bapt@. >=20 The thing is half of people wants the /var/db/*/options to be the last word= , the other half want the behaviour you are exposing, so getting a final word that will satisfy everyone is hard. I personnally really dislike /var/db/port/*/options and the dialog :). The new option framework has been design to: 1/ respect the same behaviour has it used to be before: /var/db/port/*/opti= ons has the final word. 2/ provide the ability to users to be able to tune the whole system in a consistent way. 3/ provide a way to totally disable the dialog thing (NO_DIALOG) so that you can't save a option file by mistake. What we can probably do in the end is provide a new macro to totally in all cases ignore /var/db/port/*/options. Would that satisfy your needs? regards, Bapt --IvGM3kKqwtniy32b Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (FreeBSD) iEYEARECAAYFAlFGEDcACgkQ8kTtMUmk6ExomQCeOLmYxzAeILoexlnSN76HwUUt m7MAn22lkUJdYnb7AGQhC2eXatlhs9xp =SJss -----END PGP SIGNATURE----- --IvGM3kKqwtniy32b--