Page MenuHomeFreeBSD

release/tools: use pkg settings in /etc/pkg/FreeBSD.conf in containers
AcceptedPublic

Authored by dch on Dec 5 2025, 5:44 PM.
Tags
None
Referenced Files
F142636925: D54090.diff
Wed, Jan 21, 5:47 PM
Unknown Object (File)
Thu, Jan 15, 5:28 PM
Unknown Object (File)
Sat, Jan 10, 4:59 AM
Unknown Object (File)
Sat, Jan 10, 4:50 AM
Unknown Object (File)
Fri, Jan 9, 7:22 PM
Unknown Object (File)
Thu, Jan 8, 6:17 AM
Unknown Object (File)
Tue, Dec 30, 6:04 AM
Unknown Object (File)
Dec 20 2025, 3:17 AM
Subscribers

Details

Reviewers
dfr
Group Reviewers
releng

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69077
Build 65960: arc lint + arc unit

Event Timeline

dch requested review of this revision.Dec 5 2025, 5:44 PM

The FreeBSD-base url here needs to have the pkg+: prefix otherwise it doesn't work in our new CDN world. It seems simplest to just enable here, and let /etc/pkg/FreeBSD.conf specify everything else.

I don't know what the correct path for the file should be, but it seems using the same as /etc/pkg/FreeBSD.conf seems the least confusing.

This is what we advise users to do in that file:

# 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.
...

i'm not familiar enough with the OCI build to review this, but the change looks right: we shouldn't be duplicating information that's already in /etc/pkg/FreeBSD.conf. this would also fix downstream users (like me) who ship a modified FreeBSD.conf.

Looks good to me, thanks Dave!

This revision is now accepted and ready to land.Dec 9 2025, 4:05 PM