From b66922687718be12f8953c6de17f46de3e54a74d Mon Sep 17 00:00:00 2001 From: Colin Percival Date: Sun, 18 Oct 2026 11:18:59 -0700 Subject: [PATCH] pkg: Enable FreeBSD-base by default Enable the FreeBSD-base repository in all of the /etc/pkg/FreeBSD.conf variants, and remove code from various install paths which enabled the repository via /usr/local/etc/pkg/repos/FreeBSD.conf. Relnotes: yes Differential Revision: https://reviews.freebsd.org/D60946 --- UPDATING | 5 +++++ release/tools/oci-image-static.conf | 8 -------- release/tools/vmimage.subr | 4 ---- usr.sbin/bsdinstall/scripts/pkgbase.in | 4 ---- usr.sbin/pkg/FreeBSD.conf.latest | 5 ++--- usr.sbin/pkg/FreeBSD.conf.quarterly | 5 ++--- usr.sbin/pkg/FreeBSD.conf.quarterly-release | 5 ++--- 7 files changed, 11 insertions(+), 25 deletions(-) diff --git a/UPDATING b/UPDATING index 44b77a813e48..48cf1d2099d3 100644 --- a/UPDATING +++ b/UPDATING @@ -27,6 +27,11 @@ NOTE TO PEOPLE WHO THINK THAT FreeBSD 16.x IS SLOW: world, or to merely disable the most expensive debugging functionality at runtime, run "ln -s 'abort:false,junk:false' /etc/malloc.conf".) +20261018: + The FreeBSD-base repository is now enabled in /etc/pkg/FreeBSD.conf. + To disable it, edit that file or put "FreeBSD-base: { enabled: no }" + into /usr/local/etc/pkg/repos/FreeBSD.conf. + 20260919: less(1) has been updated to version 710, which removes the obsolete lesskey(1) utility. It is no longer built or installed, and the diff --git a/release/tools/oci-image-static.conf b/release/tools/oci-image-static.conf index 8d2d80744a19..051a3218cf75 100644 --- a/release/tools/oci-image-static.conf +++ b/release/tools/oci-image-static.conf @@ -26,12 +26,4 @@ oci_image_build() { TRUSTPATH=${srcdir}/secure/caroot/trusted \ UNTRUSTPATH=${srcdir}/secure/caroot/untrusted \ certctl -c rehash - # Generate a suitable repo config for pkgbase - mkdir -p $m/usr/local/etc/pkg/repos - cat > $m/usr/local/etc/pkg/repos/FreeBSD.conf < ${DESTDIR}/usr/local/etc/pkg/repos/FreeBSD.conf - metalog_add_data ./usr/local/etc/pkg/repos - metalog_add_data ./usr/local/etc/pkg/repos/FreeBSD.conf else cd ${WORLDDIR} && \ make DESTDIR=${DESTDIR} ${INSTALLOPTS} \ diff --git a/usr.sbin/bsdinstall/scripts/pkgbase.in b/usr.sbin/bsdinstall/scripts/pkgbase.in index 2c7d6bcae904..11b6c42d1bc0 100755 --- a/usr.sbin/bsdinstall/scripts/pkgbase.in +++ b/usr.sbin/bsdinstall/scripts/pkgbase.in @@ -368,10 +368,6 @@ local function pkgbase() if not os.execute(pkg .. "install -U -y -r FreeBSD-base " .. packages) then os.exit(1) end - - -- Enable the FreeBSD-base repository for this system. - assert(os.execute("mkdir -p " .. chroot .. "/usr/local/etc/pkg/repos")) - assert(os.execute("echo 'FreeBSD-base: { enabled: yes }' > " .. chroot .. "/usr/local/etc/pkg/repos/FreeBSD.conf")) end pkgbase() diff --git a/usr.sbin/pkg/FreeBSD.conf.latest b/usr.sbin/pkg/FreeBSD.conf.latest index 0b6570cbd798..6124e01e585d 100644 --- a/usr.sbin/pkg/FreeBSD.conf.latest +++ b/usr.sbin/pkg/FreeBSD.conf.latest @@ -5,8 +5,7 @@ # 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. +# echo "FreeBSD-base: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf # FreeBSD-ports: { @@ -28,5 +27,5 @@ FreeBSD-base: { mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", - enabled: no + enabled: yes } diff --git a/usr.sbin/pkg/FreeBSD.conf.quarterly b/usr.sbin/pkg/FreeBSD.conf.quarterly index 4579bb6d8395..88d26b35b7c3 100644 --- a/usr.sbin/pkg/FreeBSD.conf.quarterly +++ b/usr.sbin/pkg/FreeBSD.conf.quarterly @@ -6,8 +6,7 @@ # 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. +# echo "FreeBSD-base: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf # FreeBSD-ports: { @@ -29,5 +28,5 @@ FreeBSD-base: { mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkg", - enabled: no + enabled: yes } diff --git a/usr.sbin/pkg/FreeBSD.conf.quarterly-release b/usr.sbin/pkg/FreeBSD.conf.quarterly-release index e2f4ddf2d878..2f3f797e41ed 100644 --- a/usr.sbin/pkg/FreeBSD.conf.quarterly-release +++ b/usr.sbin/pkg/FreeBSD.conf.quarterly-release @@ -5,8 +5,7 @@ # 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. +# echo "FreeBSD-base: { enabled: no }" >> /usr/local/etc/pkg/repos/FreeBSD.conf # FreeBSD-ports: { @@ -28,5 +27,5 @@ FreeBSD-base: { mirror_type: "srv", signature_type: "fingerprints", fingerprints: "/usr/share/keys/pkgbase-${VERSION_MAJOR}", - enabled: no + enabled: yes }