Re: git: 2c06b824436d - main - pkgbootstrap: Build pkg if PORTSDIR exists
- In reply to: Colin Percival : "git: 2c06b824436d - main - pkgbootstrap: Build pkg if PORTSDIR exists"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 19 Sep 2025 12:25:07 UTC
Colin Percival <cperciva@FreeBSD.org> writes: > pkgbootstrap: Build pkg if PORTSDIR exists > > If we don't already have the pkg tool installed, we need to install it > before we can build packages for pkgbase. (This arises in release > builds which run in clean chroots; most users will have pkg installed > already.) Installing it from pkg.freebsd.org via "pkg bootstrap" runs > into two problems: First, it's an external dependency with security > implications; and second, there's a bootstrapping problem on new major > versions where pkg.freebsd.org does not have packages yet. > > Instead, if we have a ports tree, use it to build pkg ourselves. > > With hat: re > MFC after: 6 hours > Sponsored by: https://www.patreon.com/cperciva Please revert this, it not only breaks building main in poudriere but also ends up polluting both the jail and the host in the process. DES -- Dag-Erling Smørgrav - des@FreeBSD.org