Date: Wed, 8 Oct 2025 06:04:35 +0100 From: Lexi Winter <ivy@freebsd.org> To: Yasuhiro Kimura <yasu@freebsd.org> Cc: freebsd-current@freebsd.org Subject: Re: How to make `pkg version` work fine with private pkgbase repository Message-ID: <aOXw49lwd4OGF2yI@amaryllis.le-fay.org> In-Reply-To: <20251008.135359.1026187049848325621.yasu@FreeBSD.org> References: <20251008.135359.1026187049848325621.yasu@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--3n58w/Qmb2mu8hhJ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Yasuhiro Kimura wrote in <20251008.135359.1026187049848325621.yasu@FreeBSD.= org>: > As is explained in pkg-version(8) man page, `pkg version` summarizies > installed versions of packages. >[...]=20 > But it doesn't seem to work well if repostory is build with > `make (update-)packages` >[...]=20 > root@rolling-vm-freebsd5[159]# pkg version -v -n FreeBSD-kernel-generic > FreeBSD-kernel-generic-16.snap20251008030957 ? orphaned: base/FreeBSD-k= ernel-generic using 'pkg version -vR' makes this work. i am not entirely sure why, but based on the description of the -R flag in the manpage, it seems like pkg will default to consulting /usr/ports if it's available, rather than using the repository. this obviously doesn't work for base packages since they don't exist in ports. i've noticed this issue in periodic's orphaned packages report as well. we should probably add -R there; if you think the default value of this option should be changed in pkg(8) as well, i'd suggest filing a PR over there. (that seems reasonable to me, fwiw.) > BTW, are there any common(?) or normative(?) or official(?) terms that > mean "package built from ports tree" and "package built from src tree" > respectively? i would call these "ports packages" and "base packages". this matches the default repository names, "FreeBSD-ports" and "FreeBSD-base". --3n58w/Qmb2mu8hhJ Content-Type: application/pgp-signature; name=signature.asc -----BEGIN PGP SIGNATURE----- iHUEABYKAB0WIQSyjTg96lp3RifySyn1nT63mIK/YAUCaOXw4AAKCRD1nT63mIK/ YJI5AQDdafBz5P2AoWmwqCeYrpsTaZV9MPGOLgAh8OqMpgobswD/eUhZJKycxsNg WCfVu5mZCkvkW68lwOWj2V8anNy0cws= =P3OQ -----END PGP SIGNATURE----- --3n58w/Qmb2mu8hhJ--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?aOXw49lwd4OGF2yI>