Repository navigation
Conversation
NextBSD is dropping its FreeBSD repository configuration (nextbsd/nextbsd-kernel#376): the image no longer ships /usr/local/etc/pkg/repos/FreeBSD.conf, and NextBSD's own packages move to the ABI NextBSD:27:<arch>. The packages in nextbsd.txt come from FreeBSD, so bootstrap.sh would find no repository that has them. On NextBSD, bootstrap.sh now writes its own /usr/local/etc/pkg/repos/FreeBSD.conf (pkg.FreeBSD.org FreeBSD:15:<arch>/latest, signed) before installing, and runs that pkg install with ABI=FreeBSD:15:<arch> (aarch64 on arm64), OSVERSION=1501000 and IGNORE_OSVERSION=yes in its environment, limited to that repository. Nothing is pinned in pkg.conf, so NextBSD's own pkg keeps its native ABI. NextBSD does not ship FreeBSD's package signing key in /usr/share/keys/pkg, so the repository uses a copy of FreeBSD's fingerprint in /usr/local/etc/pkg/fingerprints/FreeBSD/trusted. Other systems are unchanged. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
pkg rejects a whole repository whose packages don't match its ABI
("repository FreeBSD contains packages with wrong ABI"). Once NextBSD's
own ABI is NextBSD:27:<arch>, an enabled FreeBSD repository would make
every plain pkg update and pkg upgrade fail. Write it with enabled: no;
bootstrap.sh names it with -r, which pkg 2.8 honours for a disabled
repository.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of NextBSD dropping its FreeBSD repository configuration: nextbsd/nextbsd-kernel#376 (image side: nextbsd/nextbsd#606). Companion: gershwin-desktop/gershwin-desktop#108 (the NextBSD live-ISO target).
Why
NextBSD is moving to its own version (27.0.0) and its own package ABI,
NextBSD:27:<arch>, and its images will no longer ship/usr/local/etc/pkg/repos/FreeBSD.conf. The packages inLibrary/OSSupport/nextbsd.txtall come from FreeBSD's repository, sobootstrap.shon NextBSD would have no repository that offers them, and pkg would ask forNextBSD:27packages anyway.Change
Only the
nextbsdcase ofLibrary/Scripts/bootstrap.sh, and only when something fromnextbsd.txtis missing:/usr/local/etc/pkg/repos/FreeBSD.conf:pkg+https://pkg.FreeBSD.org/FreeBSD:15:<arch>/latest,mirror_type: srv,signature_type: fingerprints,enabled: no.<arch>comes fromuname -p, withaarch64on arm64 (pkg's name).NextBSD:27, an enabled FreeBSD repository would make every plainpkg update/pkg upgradefail. pkg 2.8 still uses a disabled repository when it's named with-r./usr/share/keys/pkg/trusted/pkg.freebsd.org.2013102301along with FreeBSD's pkg bootstrap. So the repository points at a copy of that fingerprint in/usr/local/etc/pkg/fingerprints/FreeBSD/trusted/(same content as FreeBSD's releng/15.1 file). The revoked directory is optional for pkg.env ABI=FreeBSD:15:<arch> OSVERSION=1501000 IGNORE_OSVERSION=yes pkg install -y -r FreeBSD …. The ABI is set only for this call; nothing goes intopkg.conf, so NextBSD's pkg keeps its own ABI for NextBSD's packages.OSVERSIONonly stops pkg's "Setting ABI requires setting OSVERSION, guessing…" message.The
pkg infocheck is local and unchanged. Other systems are unchanged.Notes
FreeBSD:15:<arch>, so the env matches what pkg would pick anyway.FreeBSD.conffrom the image, it gets replaced by this one.pkglist.txtafterbootstrap.sh, and without #108 it would hit the now-disabled repository. #108 works with both the old and the newbootstrap.sh.dev) is the test.🤖 Generated with Claude Code