Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 17 Mar 2013 19:49:27 +0100
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Marco Steinbach <coco@executive-computing.de>
Cc:        FreeBSD Mailing List <freebsd-ports@freebsd.org>, Chris Rees <utisoft@gmail.com>
Subject:   Re: OPTIONSng: Overide options in /var/db/ports/*/options ?
Message-ID:  <20130317184927.GF72627@ithaqua.etoilebsd.net>
In-Reply-To: <51460B2C.6080500@executive-computing.de>
References:  <5145B415.80303@executive-computing.de> <5145C9DC.6010300@infracaninophile.co.uk> <5145E47D.4050201@executive-computing.de> <CADLo8399uthkGDPGQv8aV8hdOuBzcsczcdx1tv5KoWAQmCjVFA@mail.gmail.com> <51460B2C.6080500@executive-computing.de>

next in thread | previous in thread | raw e-mail | index | archive | help

--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" <coco@executive-computing.de> 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--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130317184927.GF72627>