Fetching FreeBSD packages in poudriere bulk builds?

Li-Wen Hsu lwhsu at freebsd.org
Thu Jul 16 07:26:00 UTC 2020


On Thu, Jul 16, 2020 at 3:10 PM Patrick M. Hausen <hausen at punkt.de> wrote:
>
> Hi all,
>
> like many we run our own poudriere to build the packages for our infrastructure.
> Fetching packages from the standard FreeBSD repos for ports with default options
> is a long requested feature. Of course I understand it will not be implemented by elves
> and neither do we have the knowledge and manpower to help in this particular area.
>
> What I am interested in: there are a handful to a dozen ports that take exceptionally
> long to build. GCC, LLVM, rustlang …
>
> Notably these are all „infrastructure“ ports that are built as dependencies and we do
> not change the options of any of them. Did anyone implement a lean hack for a
> few selected packages to be fetched as binaries?
>
> E.g. check if they are newer in the FreeBSD quarterly repo, put them in our own repo,
> rebuild the repo index and then start poudriere bulk …?
>
> Would that work?

I have a very hackish way to fetch the dependencies packages before build:

https://github.com/lwhsu/freebsd-ports-libreoffice/blob/master/porttest.sh#L52-L54

It works, but not perfect, and sometimes not very useful when the new
packages haven't hit the official repository.

Li-Wen


More information about the freebsd-ports mailing list