Solved Problem with poudriere

I've spent 2 days trying to install poudriere on FreeBSD 14.1 and keep getting stuck.
I've been following the instructions using the FreeBSD Handbook, chapter 4.6 Building "Packages with poudriere".
poudriere jail -l gives me this:
14amd64 14.1-RELEASE-p1 amd64 http 2024-06-20 09:11:00 /usr/local/poudriere/jails/14amd64

However when I run: poudriere options -j 14amd64 -p local -z workstation -f 14amd64-local-workstation-pkglist
I get this: Error: No such list of packages: /root/14amd64-local-workstation-pkglist

I really am stuck. I've tried to start again from the beginning (realising that maybe I missed a step) but it fall apart at the same spot.
I'm hoping that it's something trivial.. I really want this to work. Thanks.
 
I get this: Error: No such list of packages: /root/14amd64-local-workstation-pkglist

Does that file exist?
If yes - what's the content of that file?
It is supposed to be a list of packages including their origin, e.g. generated via pkg prime-origins
 
Thanks for your reply. No, it doesn't. I don't know how to create it, and the manual seems to be silent on that point. Do I really want it in /root anyway? I honestly don't know. I've been using portsnap for a while, but have been led to believe that poudriere is the better option. So, I've been facing a pretty steep learning curve.
 
You can keep your pkg-lists anywhere you want. But if you don't give an absolute path, poudriere will of course search for that file relative to your current location in the filesystem.
Personally, I have my pkg-lists in /usr/local/etc/poudriere.d which is a distinct dataset on the same pool where all other poudriere datasets reside, so my whole poudriere setup including all configs is kept in one place.
I also don't use the -j parameter for options - usually you want those options to move along with the freebsd versions, not set them again for each and every new release. So ports-tree (quarterly/latest) and set (e.g. desktop/laptop/servers) is sufficient to have different sets of options for different types of systems.
 
Thanks! At lease I know what I need to look for! I think I've got it now as poudriere (I keep having to look up how to spell that) is busy compiling something...
 
Old but should still be mostly valid:
 
I've spent 2 days trying to install poudriere on FreeBSD 14.1 and keep getting stuck.
I've been following the instructions using the FreeBSD Handbook, chapter 4.6 Building "Packages with poudriere".
poudriere jail -l gives me this:
14amd64 14.1-RELEASE-p1 amd64 http 2024-06-20 09:11:00 /usr/local/poudriere/jails/14amd64

However when I run: poudriere options -j 14amd64 -p local -z workstation -f 14amd64-local-workstation-pkglist
I get this: Error: No such list of packages: /root/14amd64-local-workstation-pkglist

I really am stuck. I've tried to start again from the beginning (realising that maybe I missed a step) but it fall apart at the same spot.
I'm hoping that it's something trivial.. I really want this to work. Thanks.
You need to create the file 14amd64-local-workstation-pkglist. The -f option points to a file that contains the package origins to be built.

Create the file first. Then, run poudriere.
 
Thanks to all... the documentation that you've provided really helped. It's busy running: almost 20 hours so far... this is an old, under-powered Thinkpad! But It's a spare, so it can keep running...
 
Late to the party, but I'll stick my oar in anyway. This is how I create my pkglist:
Code:
pkg prime-origins | sort > 14amd64-local-workstation-pkglist
 
Back
Top