Re: PKGBASE Poudriere

From: vermaden <vermaden_at_interia.pl>
Date: Fri, 01 Aug 2025 23:12:41 UTC
Thanks.

The way I 'do' it right now is this:
- https://vermaden.wordpress.com/2023/12/09/personal-freebsd-pkgbase-update-server/

To summarize:

// 1ST RUN
builder # mkdir -p /var/tmp/pkgbase/repo
builder # cd /usr/src
builder # make REPODIR=/var/tmp/pkgbase/repo buildworld buildkernel
builder # make REPODIR=/var/tmp/pkgbase/repo packages

// UPDATES
builder # mkdir -p /var/tmp/pkgbase/repo
builder # cd /usr/src
builder # make REPODIR=/var/tmp/pkgbase/repo buildworld buildkernel
builder # make REPODIR=/var/tmp/pkgbase/repo update-packages

To be honest - I do not need to use Poudriere for this - but I was just curious.

If that is more then OK - then I can omit Poudriere for this.

Thanks,
vermaden








Temat: Re: PKGBASE Poudriere
Data: 2025-08-02 0:45
Nadawca: "Mark Millard" &lt;marklmi@yahoo.com>
Adresat: vermaden@interia.pl; FreeBSD-pkgbase@freebsd.org; 

> 
>> vermaden  wrote on
> Date: Fri, 01 Aug 2025 22:03:30 UTC :
> 
>> How do you update suck PKGBASE set?
>> 
>> It does not use 'poudriere bulk' command at all to
>> create and update that PKGBASE packages set?
> 
> As I understand it . . .
> 
> Creating or updating a local PkgBase repository
> via poudriere is an extra step after
> building/installing/updating the jail that uses
> what was built/installed/updated in that jail,
> if the command line option requesting such was
> supplied.
> 
> Also: the base-package files are not stored with
> the port-package files: 2 separate repositories
> are involved if I understand right. Per jail
> PkgBase repositories, no involvement of /usr/ports/
> as the source for what it built.
> 
> Bulk builds only deal with the port-package
> repository related materials, as I understand,
> using /usr/ports/ .
> 
>> Regards,
>> vermaden
>> 
>> 
>> 
>> 
>>> Temat: Re: PKGBASE Poudriere
>>> Data: 2025-08-01 9:07
>>> Nadawca: "Guido Falsi" &lt;mad@madpilot.net>
>>> Adresat: "vermaden" &lt;vermaden@interia.pl>;
freebsd-pkgbase@FreeBSD.org; 
>>> 
>>>> 
>>>>> On 8/1/25 01:33, vermaden wrote:
>>>>> Hi.
>>>>> 
>>>>> Is there some more or less official or not way to use
>>>>> Poudriere to build PKGBASE packages?
>>>>> 
>>>>> There are lots of guide on the net ... but nothing
>>>>> really well documented and explained.
>>>>> 
>>>>> Thanks,
>>>>> vermaden
>>>>> 
>>>> 
>>>> Short version:
>>>> 
>>>> poudriere jail -c -j 15amd64 -a amd64 -b -B -m src=/usr/src -K
GENERIC
>>>> 
>>>> to build using sources present in /usr/src
>>>> 
>>>> the -K is required, and multiple ones can be specified,
>>>> you will get multiple kernel packages.
>>>> 
>>>> You should find package sets in 
>>>> "/poudriere/data/images/15amd64-repo/FreeBSD:15:amd64/"
>>>> (path depends on the OS version you compiled obviously)
>>>> 
>>>> This will also leave you a poudriere jail built from
>>>> the sources indicated.
>>>> 
>>>> I use sources from /usr/src so I can have full control of what I
get 
>>>> with git, I sometimes use local patches from a personal "forked"
repo.
>>>> 
>>>> If you want to build fetching sources directly (requires
>>>> git installed), for example for 14.3-STABLE:
>>>> 
>>>> poudriere -jail -c -j 143amd66rr -a amd64 -b -m git+https -v
stable/14
>>>> 
>>>> 
>>>> Which will perform a shallow clone, default configuration
>>>> should use the official project mirrors.
>>>> 
>>>> Looks like in this case a kernel config is not explicitly
required, 
>>>> should build GENERIC by defaut, if you want to use a different
kernel 
>>>> config you should pass it with -K like the above example.
>>>> 
>>>> 
>>>> I hope this helps, anyway your best resource about this is the 
>>>> poudriere-jail(8) man page.
>> 
> 
> ===
> Mark Millard
> marklmi at yahoo.com