https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296168
Bug ID: 296168
Summary: pkg fetch -d fails to download pkgbase dependencies
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: Package Infrastructure
Assignee: [email protected]
Reporter: [email protected]
Let's fetch the FreeBSD-ssh package into /tmp/foo:
# mkdir /tmp/foo
# tar cf - /usr/share/keys/pkg/trusted | tar xvf - -C /tmp/foo
tar: Removing leading '/' from member names
x usr/share/keys/pkg/trusted/
x usr/share/keys/pkg/trusted/pkg.freebsd.org.2013102301
# pkg -r /tmp/foo fetch -d -r FreeBSD-base -y FreeBSD-ssh
...
The following packages will be fetched:
New packages to be FETCHED:
FreeBSD-ssh: 16.snap20260619222841 (947 KiB: 100.00% of the 947 KiB to
download)
Number of packages to be fetched: 1
...
The list of packages is incomplete compared with install, for example:
# pkg -r /tmp/foo install -r FreeBSD-base -y FreeBSD-ssh
...
The following 17 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
FreeBSD-audit-lib: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-blocklist-lib: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-bzip2-lib: 16.snap20260604235624 [FreeBSD-base]
FreeBSD-clibs: 16.snap20260620003812 [FreeBSD-base]
FreeBSD-kerberos-lib: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-libarchive: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-libcasper: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-libldns: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-ncurses-lib: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-openssl-lib: 16.snap20260620003812 [FreeBSD-base]
FreeBSD-pam-lib: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-runtime: 16.snap20260620003812 [FreeBSD-base]
FreeBSD-ssh: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-tcpd: 16.snap20260620003812 [FreeBSD-base]
FreeBSD-xz-lib: 16.snap20260619222841 [FreeBSD-base]
FreeBSD-zlib: 16.snap20260604235624 [FreeBSD-base]
FreeBSD-zstd-lib: 16.snap20260610184705 [FreeBSD-base]
Number of packages to be installed: 17
...
As a workaround, we can use pkg install -F.
Cleanup:
# chflags -R 0 /tmp/foo
# rm -rf /tmp/foo
This has been tested on 16.0-CURRENT:
# pkg -v
2.7.5
--
You are receiving this mail because:
You are the assignee for the bug.