Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Jun 2020 19:17:22 +0100
From:      Matthew Seaman <matthew@FreeBSD.org>
To:        freebsd-pkg@freebsd.org
Subject:   Re: possible addition of global switch to pkg
Message-ID:  <2d4672a2-7c59-2c3e-2726-5e782f1311c1@FreeBSD.org>
In-Reply-To: <CAEC7393q3zxnc8A6NnN2N5-GYuUaVy61RufA09=%2BMkFWVPzX0g@mail.gmail.com>
References:  <CAEC7393q3zxnc8A6NnN2N5-GYuUaVy61RufA09=%2BMkFWVPzX0g@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--g0nhzth2eBmGdI138naWooKxhNkKumduh
Content-Type: multipart/mixed; boundary="PEQa8BXsGLhmVQmIU3ZyBJBzftDSfDxpZ"

--PEQa8BXsGLhmVQmIU3ZyBJBzftDSfDxpZ
Content-Type: text/plain; charset=utf-8
Content-Language: en-GB
Content-Transfer-Encoding: quoted-printable

On 06/06/2020 17:31, Donald Wilde wrote:
> while doing another install of 12-STABLE, I thought of something
> simple that would be a helpful addition to the pkg installer. I was
> installing boost-all (from the port, in this case) and I was struck by
> the number of times the pkg dialog box popped up with JUST the
> checkbox for documentation.
>=20
> It would be really nice if there was a global switch that would
> automagically select for installing (or not installing) the pkg
> documentation. -d/-D are available, at least for the pkg install
> form... :D

This isnt a pkg(8) thing. pkg doesn't throw up any dialog boxes itself.
 If you install using the standard pre-compiled packages, you'll just
get the docs installed, no questions asked, because that is the default
setting.

I guess what you're talking about is actually compiling your own
packages -- in which case, yes, you will see options dialog boxes quite
regularly.  Given that, there is a simple global switch you can use.
Simply add one or other of the lines

OPTIONS_UNSET=3D	docs

or

OPTIONS_SET=3D	docs

according to taste to /etc/make.conf (or
/usr/local/etc/poudriere.d/make.conf if using pousdriere).  In fact, if
there are any other options you want set or unset globally, those two
variables will each take a space separated list of option names.

See the commentary in ${PORTSDIR}/Mk/bsd.options.mk for the gory details
plus some other variations on options variables that should let you tune
things precisely to your liking.

The other thing looming on the horizon is sub-packages, which hasn't hit
the ports tree yet but there's a review at
https://reviews.freebsd.org/D16457

In essense this just divides the files created during compilation into
several different packages, each of which could be installed
more-or-less independently. (At the moment, each compilation of a port
generates exactly one package, although with things like flavors, any
one port can be recompiled several different ways to create the
different flavours)

So, alongside your package foo-1.2.3 containing the foo application,
there could be a foo-docs-1.2.3 with the documentation,
foo-examples-1.2.3 with examples, foo-devel-1.2.3 with header files and
a statically linked or profiled library, foo-debug-1.2.3 with separate
debug symbols, etc. etc.

	Cheers,

	Matthew



--PEQa8BXsGLhmVQmIU3ZyBJBzftDSfDxpZ--

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

-----BEGIN PGP SIGNATURE-----

iQKTBAEBCgB9FiEEGfFU7L8RLlBUTj8wAFE/EOCp5OcFAl7b3bJfFIAAAAAALgAo
aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldDE5
RjE1NEVDQkYxMTJFNTA1NDRFM0YzMDAwNTEzRjEwRTBBOUU0RTcACgkQAFE/EOCp
5OfWcw//THtIE6r83SLSomHFe3bgobcT1qMt6A8DwtCGE4ZKsyq1zgzNGh1ON1w1
yWN4zlDFAGViMSA2Phs5lOLypkMpeCglEkC6v1nc6w6gN3D5Vf8tR0neajNZPMnD
2v8mMd/KlTAMdRqwXUeKcn0qqX4MbE23ShqJcSGrf6fyqhlQUBH4KkgB1k/Z4dCl
Mn45ErP7daTlzc3Kww92GY425o8ngcu6UfRhkTBXvheiFmlWHLNtCaeffetb+uyb
377YqtlhZV8/IVDrtkbHU5XXhBKYOQzhjy4WgzRwzndelL2PqjUZ4drkQFcg+bO3
GsVWXwBs2S+hW5NsjPlpvDVnbRya5gAVSCpgBM8ezdnW+KMGZe6hpLmqAOAs+JI8
MvNFmIt9KhFLN6B1UdsxDHZEOSY9gDdl0W/zbqeQWGfkPnTk6kqjZomIOODxSH/B
hl2SL8imXRWZMXdufsnl0MdZFQFzdA7nXFNZj2+KpWquf5sxfOkdtOyskf1ZsOgo
ZZtJdPMd5DLFqgVEdUAd9yOTx10+66LYmkmapY7fgjbgBE3QuayzZDRTwVPtxX0W
SeAGzjPlF2gyJrYxSHFB8Eh4smOyB0EpW4CZDl9vloyX/adbVX/wo1g5nttL5jYo
HYZaqMtvsLtyzhjoM8eri3M+JjHNt2UZyuBueRjsIGntCBHNtSY=
=vuHY
-----END PGP SIGNATURE-----

--g0nhzth2eBmGdI138naWooKxhNkKumduh--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2d4672a2-7c59-2c3e-2726-5e782f1311c1>