Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 03 Oct 2010 12:36:40 +0100
From:      Matthew Seaman <m.seaman@infracaninophile.co.uk>
To:        David DEMELIER <demelier.david@gmail.com>
Cc:        FreeBSD Ports <ports@freebsd.org>
Subject:   Re: OPTIONS
Message-ID:  <4CA86AC8.9080108@infracaninophile.co.uk>
In-Reply-To: <AANLkTimLqUaZMyDs-mhc-cQbASU%2B_1XqRjd=2=N%2BVSsR@mail.gmail.com>
References:  <4C93AA31.5080202@DataIX.net>	<AANLkTik%2B1rvY4ZYgzHRjaX8PBfD1UqNCNeadHqg3KBfo@mail.gmail.com>	<20100918223933.GB85995@dragon.NUXI.org>	<AANLkTi=vPKpaPL9L=pQN9EdWdEN3sf1pos6uGtJU7ybV@mail.gmail.com>	<20101002002605.GA8018@dragon.NUXI.org>	<AANLkTinkasFFQ8ssbTSdbYUS%2BJ-tYMc1U3w9rkUCk9Gd@mail.gmail.com>	<4CA844E5.7060303@infracaninophile.co.uk> <AANLkTimLqUaZMyDs-mhc-cQbASU%2B_1XqRjd=2=N%2BVSsR@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enig186DF80F4803C804B12EF5BF
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 03/10/2010 10:45:01, David DEMELIER wrote:
> 2010/10/3 Matthew Seaman <m.seaman@infracaninophile.co.uk>:
>> On 03/10/2010 09:22:46, David DEMELIER wrote:
>>>> 3. OPTIONS are limited to only checkbox YES/NO settings.
>>>>> Why can I not set PREFIX thru the OPTIONS framework and have it com=
e
>>>>> from /var/db/ports/${PORTNAME}/options on the 2nd and later builds?=

>>>>> Even the boolean NOPORTDOCS isn't available thru OPTIONS.
>>>>> Thus it is an inconsistent way to configure a port.
>>>>>
>>> I agree. As I said in 4, OPTIONS should follow the defined knob in
>>> make.conf. But for not boolean knobs there is something we can also
>>> do, spawn a little textbox to define an option with a string. Example=

>>> :
>>>
>>> [X] WITH_X foo bar
>>> [ ] WITH_Y foo bar baz
>>> [fr_FR en_GB] LANGS to be build
>>>
>>> Here pressing enter on LANGS would spawn a little textbox that can be=

>>> fulfilled by the user. The little problem is how to tell to OPTIONS
>>> that it's not a boolean entry.
>>>
>>
>> And the rest?  Pursuing this idea through to its logical conclusion,
>> you'ld end up implementing radio buttons, text entry boxes, drop down
>> lists -- all the normal bits used in html forms.
>>
>=20
> Don't you like this? sysinstall was made with dialog. And radiobuttons
> could be used to choose a group of options yes, for example when you
> only need to choose one option in three available choices, then BROKEN
> lines could be removed :-)

Don't get me wrong -- I think the current OPTIONS processing is at once
too limited and too intrusive, and that it is ripe for some serious
improvement.  I'm all for your idea; I just don't think you've gone far
enough.

Now, personally, I quite like the idea of simply sticking entries into
/etc/make.conf to control port compilation settings.  Which would be
fine for me managing my small number of home machines, but certainly not
suitable for all users.  There is also the problem of knowing what
controls are available and having some reasonable idea of what they do,
without the necessity of being a make(1) guru or grovelling through the
guts of dozens of ports.

Giving OPTIONS processing a lot more flexibility, and the capability to
display help text etc. (yes -- I know there have been attempts in this
direction already) plus pushing some of the logic up from the Makefile
into the OPTIONS dialogue[*] would certainly improve the user experience.=


Something with the capabilities of sysinstall would be a step in the
right direction, but I think most would agree, sysinstall is a bit
clunky and confusing to new users.  An alternative that behaves like a
web form is going to be a lot more accessible to J. Random User.

But that is really beyond the limits of what I have any idea about
coding.  I can see how to prototype it readily enough as a web app, but
having to fire up an instance of apache or something just to install a
few ports just ain't right.

	Cheers,

	Matthew

[*] Ever had the experience of clicking on OPTIONS settings and then
finding the port won't accept that combination of OPTIONS?  That's
frustrating, especially when combined with the use of eg. portmaster(8)
where choosing OPTIONS can happen quite a while before attempting to
build the port.

--=20
Dr Matthew J Seaman MA, D.Phil.                   7 Priory Courtyard
                                                  Flat 3
PGP: http://www.infracaninophile.co.uk/pgpkey     Ramsgate
JID: matthew@infracaninophile.co.uk               Kent, CT11 9PW


--------------enig186DF80F4803C804B12EF5BF
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG/MacGPG2 v2.0.14 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyoas8ACgkQ8Mjk52CukIy+HgCfXUNDCCDgC26zFe0H/g025pXd
cFgAn1aYO9TS9YNwkBhHiiyNplfx0gI2
=i3j1
-----END PGP SIGNATURE-----

--------------enig186DF80F4803C804B12EF5BF--



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