release.sh: Bootstrap pkg from the ports tree

When building OCI continers, we create a pkgbase repository; but we
need pkg in order to do this, and it may not be fetchable.  Bootstrap
it from the ports tree instead.

Note that this pkgbase repository is not the same one as we ship as
part of the release build; this duplication of package-creation will
be fixed at a later date.

MFC after:	6 hours
Sponsored by:	https://www.patreon.com/cperciva
This commit is contained in:
Colin Percival committed 2025-09-19 21:23:13 -07:00
1 parent 11205b0854
commit 08adaf71e2
1 file changed
+3 -1
+3 -1
View File
@@ -328,7 +328,9 @@ chroot_build_target() {
eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} buildworld
eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_KMAKEFLAGS} buildkernel
if [ -n "${WITH_OCIIMAGES}" ]; then
eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} packages
mkdir ${CHROOT}/tmp/ports ${CHROOT}/tmp/distfiles
eval chroot ${CHROOTDIR} make -C /usr/src ${RELEASE_WMAKEFLAGS} \
BOOTSTRAP_PKG_FROM_PORTS=YES packages
fi
return 0