Re: How to create a poudriere jail for a specific git hash of 15.0-CURRENT?
Date: Tue, 17 Sep 2024 19:55:24 UTC
On 9/17/24 11:09, Shawn Webb wrote:
> On Tue, Sep 17, 2024 at 11:00:40AM UTC, Craig Leres wrote:
>> which I assume uses the most current hash.
>>
>> Looking at the -m flag I suppose I could clone 15-CURRENT, "git checkout
>> a5a965d75934", and then use -b -m src=path? Is that my best option?
> That's exactly how I do it. Though, using `-m src=...` requires one to
> do a buildworld first:
>
> $ cd /data/src
> $ git clonessh://anongit@git.freebsd.org/src.git freebsd
> $ cd freebsd
> $ git reset --hard a5a965d75934
> $ make -sj$(sysctl -n hw.ncpu) buildworld
> $ sudo poudriere jail -c -m src=/data/src/freebsd -j current -p local
It worked for me without the buildworld. I did use the -b flag:
-b Build the source provided with the -m src=path option.
To wrap up here's what I did:
zfs create -o mountpoint=/usr/src/15-CURRENT -o compress=lz4
tank/15-CURRENT
cd /usr/src
git clone https://git.freebsd.org/src.git 15-CURRENT
cd 15-CURRENT
git checkout a5a965d75934
poudriere jail -x -c -j pfsense2403 -a arm64.aarch64 -m
src=/usr/src/15-CURRENT -b
Also note that I'm cross-compiling (my build server is amd64).
Craig