possible addition of global switch to pkg (Matthew Seaman)

Donald Wilde dwilde1 at gmail.com
Sun Jun 7 12:41:47 UTC 2020


On 6/7/20, freebsd-pkg-request at freebsd.org
<freebsd-pkg-request at freebsd.org> wrote:
> Send freebsd-pkg mailing list submissions to
> 	freebsd-pkg at freebsd.org
[snip]
> Today's Topics:
>
>    1. possible addition of global switch to pkg (Donald Wilde)
>    2. Re: possible addition of global switch to pkg (Matthew Seaman)
>
[snip]
> Date: Sat, 6 Jun 2020 19:17:22 +0100
> From: Matthew Seaman <matthew at FreeBSD.org>
> To: freebsd-pkg at freebsd.org
> Subject: Re: possible addition of global switch to pkg
> Message-ID: <2d4672a2-7c59-2c3e-2726-5e782f1311c1 at FreeBSD.org>
> Content-Type: text/plain; charset="utf-8"
[snip]
>
> 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.

Actually, no I'm not to that point yet. :)

If I install a package or port, I _always_ want the docs box checked yes.

I simply want to not have my 'pkg install something' or /usr/ports/X/Y
make post this trivial dialog that freezes my install until I answer
it. :)

I often leave an install running and then leave or go to sleep or ???,
so I want to eliminate that one dialog box IFF that dialog only asks
the one question about docs.


> Simply add one or other of the lines
>
> OPTIONS_UNSET=	docs
>
> or
>
> OPTIONS_SET=	docs

I think this only sets the global preference, but does not eliminate the dialog.
>
> 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.

I will!
>
> 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
>
We'll get there!

[snip]
> 	Cheers,
>
> 	Matthew

Thanks for the info, Matthew. I will dig in as you request.

[snip]

> End of freebsd-pkg Digest, Vol 352, Issue 4
> *******************************************
>
I think these digests aren't necessary for low-volume lists. <grin>

-- 
Don Wilde
****************************************************
* What is the Internet of Things but a system *
* of systems including humans?                     *
****************************************************


More information about the freebsd-pkg mailing list