Date: Fri, 03 Jul 2026 22:46:14 +0000 From: bugzilla-noreply@freebsd.org To: pkg@FreeBSD.org Subject: [Bug 296467] pkg upgrade installs unrelated, unnecessary other packages Message-ID: <bug-296467-32340-rBMaBEAxmX@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-296467-32340@https.bugs.freebsd.org/bugzilla/>
index | next in thread | previous in thread | raw e-mail
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296467 --- Comment #2 from wbe@psr.com --- The system in question: * runs GENERIC amd64 binaries only, no src, * runs whatever freebsd-update fetch/install/upgrade and pkg installed over the years with only the 1 change described later, but I can look up anything in particular you need. Note: I run "pkg upgrade -f" whenever I upgrade the O/S. > What version of pkg? It looks like 2.4.2_1 came with 15.0-RELEASE on Dec 18. The current version is 2.7.5. Logs indicate the problem wasn't happening in 14.3-RELEASE-p5 GENERIC amd64 but that it began immediately upon upgrading to 15.0 when I did the "pkg upgrade -f". That installed sndio, which got my attention because I had recently before that eliminated it. I determined that, indeed, nothing depended on it. "pkg autoremove" deinstalled it, along with some others: abseil-20250127.1 dotconf-1.4.1_1 ebur128-0.1.10_9 fftw3-float-3.3.10_5 gstreamer1-1.26.9 libgcrypt-1.11.2 libsamplerate-0.2.2_1 libsoxr-0.1.3_3 libsysinfo-0.0.3_3 openh264-2.6.0,2 orc-0.4.41_1 pcaudiolib-1.2_2 sndio-1.10.0_1 tcl86-8.6.17 webrtc-audio-processing-1.3_1 Those were 15 of the 17 that were perpetually installed every time I ran "pkg upgrade" anything. Those 15 became 17 with the addition of: basu-0.2.1 libxslt-1.1.45 shortly afterward. The specific version numbers of some of those packages increased over time. I assume the changes were to the then-current versions. > Why do you have a mix of 2 repositories that end up being referenced: > > FreeBSD-ports > vs. > FreeBSD > > ? It's whatever freebsd-update and/or pkg installed (ever). I've only ever made one change, back in 2015, that didn't change the name or number of repositories. In 2015, there was only 1 repository. I think it was when pkgbase appeared that there started being 2 repositories that updated when I run "pkg update". More recently, a third appeared. Neither of the additions were my doing. Here's what's currently in /etc/pkg/FreeBSD.conf: ========== # # To disable a repository, instead of modifying or removing this file, # create a /usr/local/etc/pkg/repos/FreeBSD.conf file, e.g.: # # mkdir -p /usr/local/etc/pkg/repos # echo "FreeBSD-ports: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf # echo "FreeBSD-ports-kmods: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf # # Note that the FreeBSD-base repository is disabled by default. # FreeBSD-ports: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/quarterly", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } FreeBSD-ports-kmods: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/kmods_quarterly_${VERSION_MINOR}", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", enabled: yes } FreeBSD-base: { url: "pkg+https://pkg.FreeBSD.org/${ABI}/base_release_${VERSION_MINOR}", mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}", enabled: no } ========== I see the system also still has a /usr/local/etc/pkg/repos/FreeBSD.conf file from 2015. Here's the original FreeBSD Aug. 1, 2014 version of the file: ========== FreeBSD: { url: "pkg+http://pkg.us-east.freebsd.org/${ABI}/latest", enabled: true, mirror_type: "srv" } ========== In 2015, I changed it to: ========== FreeBSD: { url: "pkg+http://pkg.us-east.freebsd.org/${ABI}/latest", enabled: yes, signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", mirror_type: "srv" } ========== I no longer recall why I needed to do that. Wasn't my idea. My guess is that a new version of pkg came out that required the change. I'm happy to delete the file if that'll help. > The fact that you do not show the full text of the command(s) that > produced the output leaves anyone having to guess at things. For > example, did you list -rFreeBSD-ports and -r FreeBSD explicitly on > the command line? No. I would have shown those if I had. -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-296467-32340-rBMaBEAxmX>
