Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jun 2012 08:03:50 +0200
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        FreeBSD ports list <freebsd-ports@FreeBSD.org>
Subject:   Re: New OPTIONS and make.conf knobs
Message-ID:  <20120604060350.GF98939@ithaqua.etoilebsd.net>
In-Reply-To: <4FCBF310.3090607@FreeBSD.org>
References:  <4FCBF310.3090607@FreeBSD.org>

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

--ni93GHxFvA+th69W
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Sun, Jun 03, 2012 at 04:28:16PM -0700, Doug Barton wrote:
> My understanding is that one of the benefits of the new OPTIONS
> framework is that it's supposed to take make.conf knobs into account
> when displaying the options dialog.

yes it is if you use the new way of setting KNOBS aka a general:
OPTIONS_UNSET=3D	NLS

WITHOUT_NLS is not triggered as a compatibility from bsd.options.mk to
OPTIONS_UNSET=3D NLS while NOPORTDOCS and NOPORTEXAMPLES are.

>=20
> I have WITHOUT_NLS defined in make.conf, but when I started an upgrade
> today for x11-toolkits/libxfce4gui the dialog came up with all options
> chosen (DOCS, NLS, STARTUP) even though I have the make.conf knob, and
> the following in the existing options file:
>=20
> _OPTIONS_READ=3Dlibxfce4gui-4.8.1
> WITHOUT_NLS=3Dtrue
> WITH_STARTUP=3Dtrue
> WITH_GLADEUI=3Dtrue
> WITHOUT_APIDOCS=3Dtrue

if you have an existing options file then the priority is set to what is in=
 that
options file.

The priority is set that way:
1/ the options from the bsd.options.mk if any
2/ the default options chosen by the maintainer
3/ the options set in make.conf (OPTIONS_SET/OPTIONS_UNSET)
4/ the options set per port in make.conf (${UNIQUENAME}_SET/${UNIQUENAME}_U=
NSET)
5/ the options from the options file with 2 way of loading: them:
  - the old one figuring out the informations WITH_/WITHOUT_
  - the new one: just hit ok on the dialog and have a look at the file it h=
as
    changed.

>=20
> The fact that the STARTUP option is still enabled is fine, although I
> suspect it's probably a side effect. The fact that the other 2 options
> are showing as enabled is a bug. In the case of NLS, it's likely at
> least 2 different bugs.

In my mind the NLS case is a single bug, the loading of old saved optionfile
which doesn't work as expected. I'll have a look, thanks for reporting


> FWIW, this showed up using portmaster, which runs 'make
> config-conditional' by default.
>=20
> Doug
>=20

regards,
Bapt

--ni93GHxFvA+th69W
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.19 (FreeBSD)

iEYEARECAAYFAk/MT8YACgkQ8kTtMUmk6EwdYgCeNyuPHKazHusXD5w1+ocD86Cz
o3oAoLUidejBzelaxfKUhfVL/DWlcJzB
=vcKI
-----END PGP SIGNATURE-----

--ni93GHxFvA+th69W--



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