[Bug 289216] ports-mgmt/pkg pkg-repositories(8) - regression 14.2R -> 14.3-R; failure wrt FreeBSD
- Reply: bugzilla-noreply_a_freebsd.org: "maintainer-feedback requested: [Bug 289216] ports-mgmt/pkg pkg-repositories(8) - regression 14.2R -> 14.3-R; failure wrt FreeBSD"
- Reply: bugzilla-noreply_a_freebsd.org: "[Bug 289216] ports-mgmt/pkg pkg-repositories(8) - regression 14.2R -> 14.3-R; failure wrt FreeBSD"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 31 Aug 2025 17:11:54 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=289216
Bug ID: 289216
Summary: ports-mgmt/pkg pkg-repositories(8) - regression 14.2R
-> 14.3-R; failure wrt FreeBSD
Product: Ports & Packages
Version: Latest
Hardware: Any
OS: Any
Status: New
Keywords: regression
Severity: Affects Only Me
Priority: ---
Component: Individual Port(s)
Assignee: pkg@FreeBSD.org
Reporter: erichanskrs@gmail.com
Flags: maintainer-feedback?(pkg@FreeBSD.org)
Assignee: pkg@FreeBSD.org
Using the indicated FreeBSD versions and using pkg v. 2.2.2 'latest',
I've noticed:
(A) a regression of pkg repositories and pkg -vv
wrt the FreeBSD-kmods repository
(B) behaviour of pkg repositories is inconsistant with its man page
description when regarding the FreeBSD repository;
this also holds for pkg -vv, allthough it is scarcely documented
(A)
The following command sequence is used on 14.2-R and 14.3-R:
[0-0] # date -u; uname -a; pkg -v
[1-0] # grep -v '^#' /usr/local/etc/pkg/repos/FreeBSD.conf
[2-0] # sed -E -i "bak" -e '/^FreeBSD-kmods:/,/^}/ s/(enabled.*)yes/\1no/'
/usr/local/etc/pkg/repos/FreeBSD.conf
[3-0] # grep -v '^#' /usr/local/etc/pkg/repos/FreeBSD.conf
[4-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
[5-0] # pkg repositories
[6-0] # pkg repositories -e
[7-0] # pkg repositories -d
[8-0] # pkg repositories -l
[9-0] #
On 14.2-RELEASE,
FreeBSD-kmods are correctly shown by pkg repositories and pkg -vv
[0-0] # date -u; uname -a; pkg -v
Sun Aug 31 11:20:33 UTC 2025
FreeBSD q210 14.2-RELEASE-p1 FreeBSD 14.2-RELEASE-p1 GENERIC amd64
2.2.1
[1-0] # grep -v '^#' /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
url: pkg+https://pkg.freebsd.org/${ABI}/latest,
enabled: yes,
}
FreeBSD-kmods: {
enabled: yes,
priority: 0,
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
mirror_type: "srv",
}
[2-0] # sed -E -i "bak" -e '/^FreeBSD-kmods:/,/^}/ s/(enabled.*)yes/\1no/'
/usr/local/etc/pkg/repos/FreeBSD.conf
[3-0] # grep -v '^#' /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
url: pkg+https://pkg.freebsd.org/${ABI}/latest,
enabled: yes,
}
FreeBSD-kmods: {
enabled: no,
priority: 0,
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
mirror_type: "srv",
}
[4-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-kmods: {
url :
"pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/kmods_latest_2",
enabled : no,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[5-0] # pkg repositories
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-kmods: {
url :
"pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/kmods_latest_2",
enabled : no,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[6-0] # pkg repositories -e
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[7-0] # pkg repositories -d
FreeBSD-kmods: {
url :
"pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/kmods_latest_2",
enabled : no,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[8-0] # pkg repositories -l
FreeBSD
FreeBSD-kmods
[9-0] #
On 14.3-RELEASE, however,
FreeBSD-kmods, when disabled, are _not_ correctly shown by
pkg repositories
pkg -vv
[0-0] # date -u; uname -a; pkg -v
Sun Aug 31 11:40:47 UTC 2025
FreeBSD tm1 14.3-RELEASE-p2 FreeBSD 14.3-RELEASE-p2 GENERIC amd64
2.2.2
[1-0] # grep -v '^#' /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
url: pkg+https://pkg.freebsd.org/${ABI}/latest,
enabled: yes,
}
FreeBSD-kmods: {
enabled: yes,
priority: 0,
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
mirror_type: "srv"
}
[2-0] # sed -E -i "bak" -e '/^FreeBSD-kmods:/,/^}/ s/(enabled.*)yes/\1no/'
/usr/local/etc/pkg/repos/FreeBSD.conf
[3-0] # grep -v '^#' /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
url: pkg+https://pkg.freebsd.org/${ABI}/latest,
enabled: yes,
}
FreeBSD-kmods: {
enabled: no,
priority: 0,
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
mirror_type: "srv"
}
[4-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[5-0] # pkg repositories
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[6-0] # pkg repositories -e
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[7-0] # pkg repositories -d
[8-0] # pkg repositories -l
FreeBSD
[9-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[10-0] #
(B)
The FreeBSD repository is not correctly shown, when disabled, by
pkg repositories
pkg -vv
The following command sequence is used:
[0-0] # date -u; uname -a; pkg -v
[1-0] # pkg repositories
[2-0] # sed -E -i "bak" -e '/^FreeBSD:/,/^}/ s/(enabled.*)yes/\1no/'
/usr/local/etc/pkg/repos/FreeBSD.conf
[2-0] # sed -E -i "bak" -e '/^FreeBSD-kmods:/,/^}/ s/(enabled.*)yes/\1no/'
/usr/local/etc/pkg/repos/FreeBSD.conf
[4-0] # grep -v '^#' /usr/local/etc/pkg/repos/FreeBSD.conf
[5-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
[6-0] # pkg repositories
[7-0] # pkg repositories -e
[8-0] # pkg repositories -d
[9-0] # pkg repositories -l
[10-0] #
[0-0] # date -u; uname -a; pkg -v
Sun Aug 31 16:54:07 UTC 2025
FreeBSD tm1 14.3-RELEASE-p2 FreeBSD 14.3-RELEASE-p2 GENERIC amd64
2.2.2
[1-0] # pkg repositories
FreeBSD: {
url : "pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/latest",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
FreeBSD-kmods: {
url :
"pkg+https://pkg.freebsd.org/FreeBSD:14:amd64/kmods_latest_3",
enabled : yes,
priority : 0,
mirror_type : "SRV",
signature_type : "FINGERPRINTS",
fingerprints : "/usr/share/keys/pkg"
}
[2-0] # sed -E -i "bak" -e '/^FreeBSD:/,/^}/ s/(enabled.*)yes/\1no/'
/usr/local/etc/pkg/repos/FreeBSD.conf
[3-0] # sed -E -i "bak" -e '/^FreeBSD-kmods:/,/^}/ s/(enabled.*)yes/\1no/'
/usr/local/etc/pkg/repos/FreeBSD.conf
[4-0] # grep -v '^#' /usr/local/etc/pkg/repos/FreeBSD.conf
FreeBSD: {
url: pkg+https://pkg.freebsd.org/${ABI}/latest,
enabled: no,
}
FreeBSD-kmods: {
#enabled: no,
enabled: no,
priority: 0,
url: pkg+https://pkg.freebsd.org/${ABI}/kmods_latest_${VERSION_MINOR},
signature_type: "fingerprints",
fingerprints: "/usr/share/keys/pkg",
mirror_type: "srv"
}
[5-0] # pkg -vv | sed -n '/^Repositories:/,$ p'
Repositories:
[6-0] # pkg repositories
[7-0] # pkg repositories -e
[8-0] # pkg repositories -d
[9-0] # pkg repositories -l
[10-0] #
--
You are receiving this mail because:
You are the assignee for the bug.