Re: git: 66f36c368676 - main - packages: Add meta-package sets [ a pkgbase poudriere jail creation got a populated /usr/local/poudriere/jails/main-amd64/usr/src/ ], not just sys/

From: Lexi Winter <ivy_at_freebsd.org>
Date: Wed, 17 Sep 2025 15:32:14 UTC
Mark Millard wrote in <DF30C420-3469-4120-8C33-43D1913F6469@yahoo.com>:
> One thing that is now worse for poudriere(devel) jails is that the
> bundling of man pages with -dev means that such man pages are installed
> in all poudriere(-devel) jails during creation. poudreire(-devel)
> definitely does need -dev but does not need the related man pages.

we decided to disable MANSPLITPKG by default because it's annoying for
users having to install manpages by hand for every package, and because
they're very small: for FreeBSD-set-base (excluding lib32) the installed
size is 815MB, of which 8MB (i.e., 1%) are manpages.

if you really don't want to install manpages, you can rebuild world with
WITH_MANSPLITPKG=1, or you can tell pkg(8) not to install manpages:

# pkg -r /my/jail -o FILES_IGNORE_GLOB='/usr/share/man/*' install freebsd-set-base

it might be worth poudriere doing that by default, i don't really have
any strong opinion there.

> poudriere(-devel) does not not yet filter out FreeBSD-set-kernels-* 
> as the plural form is not matched by poudriere(-devel)'s filtering:
> 
> grep -vE -- '-man|-dbg|-kernel-|-tests|-src-'
> 
> So, as stands, the individual kernel packages are filtered out but
> the FreeBSD-set-kernels-* is not filtered out, causing the kernels
> to end up being installed into the jail.

the simplest solution here would be for poudriere to just install
FreeBSD-set-base, which does not include any kernels.  it may also
need FreeBSD-set-lib32, i'm not sure if any ports need that to build.

we may be adding a FreeBSD-set-base-jail later which will exclude things
only required for physical hosts (like dhclient and WPA) but the actual
size difference between that and set-base will probably be fairly small.