The branch main has been updated by cperciva:

URL: 
https://cgit.FreeBSD.org/src/commit/?id=08adaf71e2e5a44ea27df0e2b09fbe8279a2523e

commit 08adaf71e2e5a44ea27df0e2b09fbe8279a2523e
Author:     Colin Percival <[email protected]>
AuthorDate: 2025-09-20 04:20:07 +0000
Commit:     Colin Percival <[email protected]>
CommitDate: 2025-09-20 04:23:13 +0000

    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
---
 release/release.sh | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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

Reply via email to