aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorColin Percival <cperciva@FreeBSD.org>2025-09-20 04:20:07 +0000
committerColin Percival <cperciva@FreeBSD.org>2025-09-20 04:23:13 +0000
commit08adaf71e2e5a44ea27df0e2b09fbe8279a2523e (patch)
tree542dff683984378969f3f5a6290ac2c7ed5d7731
parent11205b0854113eae68f725287b8501951d67be0f (diff)
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
-rwxr-xr-xrelease/release.sh4
1 files changed, 3 insertions, 1 deletions
diff --git a/release/release.sh b/release/release.sh
index f4786685e612..3934d066420a 100755
--- a/release/release.sh
+++ b/release/release.sh
@@ -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