Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2025 09:29:44 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 288165] _pkgbootstrap target in Makefile.inc1 should use pkg from ${WSTAGEDIR}/usr/bin/{$PKG_CMD} not from host OS
Message-ID:  <bug-288165-227@https.bugs.freebsd.org/bugzilla/>

index | next in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=288165

            Bug ID: 288165
           Summary: _pkgbootstrap target in Makefile.inc1 should use pkg
                    from ${WSTAGEDIR}/usr/bin/{$PKG_CMD} not from host OS
           Product: Base System
           Version: 15.0-CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: dch@freebsd.org

discovered while trying to cross-build `make packages` on macOS, it seems
that we should not use the host's pkg(7) to bootstrap, but use the freshly
built one.

The patch in https://reviews.freebsd.org/D51275 does not fix the build,
but gets us a little bit further. Hopefully it helps identify a better
solution.

Like how bmake is built, macOS will likely need its own cross-built pkg(8)
to bootstrap from.

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

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-288165-227>