Summary: | base system pkg bootstrap handles only .txz packages | ||
---|---|---|---|
Product: | Base System | Reporter: | Ed Maste <emaste> |
Component: | bin | Assignee: | freebsd-pkg (Nobody) <pkg> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | kevans |
Priority: | --- | ||
Version: | CURRENT | ||
Hardware: | Any | ||
OS: | Any |
Description
Ed Maste
![]() ![]() In discussion with manu and bapt, we should accept: .pkg <proposed compression-agnostic format> .tzst <tar + zstd> .txz <tar + xz, current format> .tbz <tar + bz, uninteresting> .tgz <tar + gzip> .tar <uncompressed tar> Also note that libarchive internally detects the compression format, so we do not actually care about the extension, just find a matching file. It should probably fetch the meta.conf file and use that to find out the extension, no? (In reply to Mathieu Arnold from comment #3) It could, but I'd guess we'd want also try looping over all extensions as a fallback anyway? I note that full-blown pkg(8) seems to have a similar problem with meta.txz: root@viper:/var/db/pkg# pkg update -fr FreeBSD-base Updating FreeBSD-base repository catalogue... Fetching meta.conf: 100% 164 B 0.2kB/s 00:01 Fetching packagesite.tzst: 100% 18 KiB 18.1kB/s 00:01 Processing entries: 100% FreeBSD-base repository update completed. 193 packages processed. All repositories are up to date. OK, that looks good, it fetched meta.conf... but then: root@viper:/var/db/pkg# pkg upgrade -r FreeBSD-base Updating FreeBSD-base repository catalogue... pkg: file:///usr/local/pkgbase/repo/FreeBSD:13:amd64/latest/meta.txz: No such file or directory repository FreeBSD-base has no meta file, using default settings FreeBSD-base repository is up to date. All repositories are up to date. Checking for upgrades (0 candidates): 100% Processing candidates (0 candidates): 100% Checking integrity... done (0 conflicting) Your packages are up to date. root@viper:/var/db/pkg# cat FreeBSD-base.meta {"version":2,"packing_format":"tzst","manifests":"packagesite.yaml","filesite":"filesite.yaml","manifests_archive":"packagesite","filesite_archive":"filesite"}# (In reply to Kyle Evans from comment #5) I've tracked down the behavior in this comment to that described in this issue: https://github.com/freebsd/pkg/issues/1886 the bootstrap now handles .pkg and all on all version but freebsd 11.4 and 12.2 |