[Bug 283387] NO_ROOT/METALOG support required for release/scripts/pkg-stage.sh

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 17 Dec 2024 18:05:09 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=283387

            Bug ID: 283387
           Summary: NO_ROOT/METALOG support required for
                    release/scripts/pkg-stage.sh
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: emaste@freebsd.org

With recent commits (e.g. 41adc5f29ba6) and some work in progress (e.g.
https://reviews.freebsd.org/D48121) we can build base system release artifacts
(e.g. disc1.iso) without requiring root, using METALOG / -DNO_ROOT
functionality. The only outstanding issue preventing all of the release
artifacts to be built w/o root is the package staging for dvd1.

From release/Makefile:

pkg-stage: dvd
# TODO: Support for -DNO_ROOT
.if !defined(NOPKG) || empty(NOPKG)
        env PORTSDIR=${PORTSDIR} REPOS_DIR=${.CURDIR}/pkg_repos/ \
                sh ${.CURDIR}/scripts/pkg-stage.sh
        mkdir -p ${.OBJDIR}/dvd/packages/repos/
        cp ${.CURDIR}/scripts/FreeBSD_install_cdrom.conf \
                ${.OBJDIR}/dvd/packages/repos/
.endif
        touch ${.TARGET}

-- 
You are receiving this mail because:
You are the assignee for the bug.