Large builds with poudriere

Kevin Oberman rkoberman at gmail.com
Thu May 20 19:21:24 UTC 2021


On Thu, May 20, 2021 at 8:08 AM Chris <portmaster at bsdforge.com> wrote:

> On 2021-05-20 06:15, Ronald Klop wrote:
> > On 5/20/21 2:47 PM, Fernando Apesteguía wrote:
> >> El jue., 20 may. 2021 14:45, Alexis Praga <alexis.praga at gmail.com>
> >> escribió:
> >>
> >>>
> >>> Hi guys,
> >>>
> >>> I've recently been using poudriere to test news ports but this
> resulted in
> >>> building two large ports, namely:
> >>> - devel/llvm [1]
> >>> - lang/rust [2]
> >>>
> >>> Now, lang/rust takes 2 hourse to compile. So testing for 13.0, 12.2 and
> >>> 11.4 means around 6 hours in total, a lot of time for my desktop
> >>> computer. Especially if the dependencies are upgraded later on.
> >>>
> >>> Do you have any tips to deal with such long build time ? Apart from
> >>> have a dedicated server :)
> >>>
> >>
> >> Patience :-)
> >>
> >> Package seeding in poudriere is a long awaited feature.
> >>
> >
> >
> > You can manually put the rust/llvm package in the All packages directory
> and
> > poudriere will use that. It is a manual repeating task though. So the
> > package
> > seeding is indeed a nice feature.
> I can't believe I didn't already know that. :-/
> Thanks, Ronald. Today you are a hero! :-)
>
> --Chris
> >
> > Ronald.
> >
> >
> >
> >
> >
> >>> Thanks,
> >>>
> >>>
> >>> [1] For https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=233010
> >>> [2] For https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=255233
> >>>
> >>> --
> >>> Alexis Praga
>
You can greatly reduce the build-time for devel/llvm* by changing the
config to BE_NATIVE to avoid building backends for all FreeBSD supported
platforms. Obviously this is not acceptable for many cases, but if you
never cross-compile for other platforms, it's a really big win.
--
Kevin Oberman, Part time kid herder and retired Network Engineer
E-mail: rkoberman at gmail.com
PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683


More information about the freebsd-ports mailing list