Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2018 21:15:00 +0000
From:      Bob Eager <rde@tavi.co.uk>
To:        freebsd-ports@freebsd.org
Subject:   Re: options DOCS + EXAMPLES
Message-ID:  <20181102211500.792225af@raksha.tavi.co.uk>
In-Reply-To: <03c1b59a-1e79-8177-2c6e-dbdfe065b03a@omnilan.de>
References:  <07935967-fe29-c638-0bc3-2fd00cc9cee7@omnilan.de> <20181102102457.735xhicm32ghxpac@atuin.in.mat.cc> <03c1b59a-1e79-8177-2c6e-dbdfe065b03a@omnilan.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, 2 Nov 2018 11:33:11 +0100
Harry Schmalzbauer <freebsd@omnilan.de> wrote:

> Am 02.11.2018 um 11:24 schrieb Mathieu Arnold:
> > On Fri, Nov 02, 2018 at 10:49:52AM +0100, Harry Schmalzbauer
> > wrote: =20
> >> Hello,
> >>
> >> found out that the need to define DOCS and EXAMPLES in
> >> OPTIONS_DEFINE was made mandatory some time ago, which
> >> ports-mgmt/portlint isn't aware about yet (found
> >> https://reviews.freebsd.org/D13036).
> >>
> >> I intentionally haven't defined it, because I want to make use of
> >> the bsd.ports.mk handling of PORTDOCS and PORTEXAMPLES, but don't
> >> want to spam the UI.=A0 EXAMPLES and DOCS shall stay mandatory for
> >> my port, as long as the user changes the corresponding defaults.
> >>
> >> How do I hide the user selection for EXAMPLES and DOCS after the
> >> change (which I wasn't able to find by reading commit logs)? =20
> >=20
> > I am not sure what you are asking.
> >=20
> > To be able to use PORTDOCS or PORTEXAMPLES, you must define a DOCS
> > or an EXAMPLES option.
> >=20
> > The users must be allowed to choose if they want documentation or
> > examples to be installed.  If you personnaly do not want the options
> > dialog to show up when you build ports, you can set BATCH in your
> > environment. =20
>=20
> Thank you for your answer.
> In my case, I have additional options, so I can't use BATCH.
> Please see my opinion about the DOCS/EXAMPLES selection in the reply
> to myself, where I reference the commit introducing this change and
> where I explain why in many/most cases, I consider these
> DOCS/EXAMPLES/NLS options as spam.

Yes, but it's possible to turn off DOCS and EXAMPLES (and indeed
any other named option) globally (for all ports). That can be useful
when building for certain targets.



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