On Fri, 13 Mar 2026 19:33:46 +0100
Miroslav Lachman <[email protected]> wrote:
> On 13/03/2026 18:36, bob prohaska wrote:
> > On Fri, Mar 13, 2026 at 10:54:02AM +0100, Miroslav Lachman wrote:
> >>
> >> Years ago, a similar problem (the long time needed to build dependencies
> >> for
> >> documentation) led to the definition of this in our Poudriere setup:
> >>
> >> OPTIONS_UNSET= X11 GUI CUPS DOCS EXAMPLES NLS
> >
> > Placed in /usr/local/etc/poudriere.conf ?
>
> It should be in /usr/local/etc/poudriere.d/make.conf or
> <setname>-make.conf or <tree>-make.conf or...
Just a FYI:
To share default ports tree, configured options and saved distfiles
between bare-metal and poudriere, I have
null mounted ports tree configured with below
poudriere ports -c -f none -M /usr/ports -m null
make /usr/local/etc/poudriere.d/options to be a symlink to
/var/db/ports
make sure "DISTFILES_CACHE=/usr/ports/distfiles" in
/usr/local/etc/poudriere.conf
And if you're using any overlays to be used both for
bare-metal and poudriere, you'll need something like below
in your /etc/make.conf per-overlay. Example below has
2 overlays.
.ifndef POUDRIERE_BUILD_TYPE
OVERLAYS= /usr/local/overlays/kdeguchi/mozc-ports \
/usr/local/overlays/kdeguchi/compiz-reloaded-ports
.endif
I've written up about my poudriere use-case at the time I was on
stable/14 here (now I'm on stable/15, though).
https://brew.bsd.cafe/TomAoki/Tips-and-Tricks/src/branch/main/poudriere/README.md
Not documented there, but I have /usr/local/etc/poudriere.d/make.conf
and /usr/local/etc/poudriere.d/src.conf to be symlinks to each files
in /etc/. This is because my poudriere jail is deditated for local
host only.
> >> The resulting packages are for headless machines, build is faster, the
> >> resulting packages are smaller, dependency chain is shorter, install and
> >> upgrade times are shorter.
> >
> > That's what I'm seeking.
> >
> >> The disadvantage is that many build dependencies
> >> have different options than in the official repository, so they cannot be
> >> pre-fetched and must also be built.
> >
> > Is that another way of saying "Use ports _or_ pkg, not both"?
>
> You can control it from poudriere.conf, there are variables that will
> affect it:
>
> PACKAGE_FETCH_BRANCH=latest
> PACKAGE_FETCH_URL=pkg+http://pkg.FreeBSD.org/\${ABI}
> PACKAGE_FETCH_BLACKLIST=""
> PACKAGE_FETCH_WHITELIST="gcc* rust llvm*"
>
> Kind regards
> Miroslav Lachman
--
Tomoaki AOKI <[email protected]>