pkg bootstrap doesn't work anymore

Hi,

it's been a while since I made a fresh install of FreeBSD. Maybe a year ago or so?
I build my own packages with poudriere.

I wanted to bootstrap pkg with my own repo and it seems apart from pkg.pkg (which exists on my server) it's also trying to fetch pkg.sig, which isn't there.

How do I generate that?

The documentation in the poudriere wiki makes not mention of that file, unfortunately.
 
Code:
% find /usr/poudriere/data/packages/FreeBSD:14:amd64/ -name "pkg.pkg"
/usr/poudriere/data/packages/FreeBSD:14:amd64/.real_1760973367/Latest/pkg.pkg
/usr/poudriere/data/packages/FreeBSD:14:amd64/.building/Latest/pkg.pkg
yusuf@freebsd:~ % find /usr/poudriere/data/packages/FreeBSD:14:amd64/ -name "*.sig"
<empty>

My repo don't have that file.

See pkg(7).

Code:
% cat /usr/local/etc/pkg/repos/Poudriere.conf
Poudriere: {
        url: "file:///usr/poudriere/data/packages/${ABI}",
        enabled: yes
}

Maybe you defined signature entry there?
 
Code:
myrepo: {
  url             : "http://url.site/packages/14_3-amd64-2025Q4-dns",
  enabled         : yes,
  signature_type  : "fingerprints",
  fingerprints    : "/usr/local/etc/pkg/fingerprints/myrepo/trusted"
}

The same thing works on another machine.

Code:
root@host-prod:~ # pkg update
Updating myrepo repository catalogue...
Fetching meta.conf: 100%    179 B   0.2kB/s    00:01
Fetching data.pkg: 100%  383 KiB 392.3kB/s    00:01
pkg: No signature found
myrepo repository is up to date.
All repositories are up to date.

OK - this is funny.
It works with zsh.

It doesn't seem to work with the default /bin/sh.

That's interesting.
 
Back
Top