From nobody Wed Oct 8 05:04:35 2025 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4chLXX2Mhmz6BH65 for ; Wed, 08 Oct 2025 05:04:44 +0000 (UTC) (envelope-from ivy@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R13" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4chLXX1xLCz44C6; Wed, 08 Oct 2025 05:04:44 +0000 (UTC) (envelope-from ivy@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759899884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=x7JLzD7zqyOaMaNdxZEMU2SMj7KXuoqyz8YqDEXHX4g=; b=cwr1wHfLUcLWRI1tQxpgQ7x2XVu4taELEyYHUddCTeU/1s/d0BL+wJqz9/sBu9AWkJObG3 s3BUYjiLNOuIAigzO1AWNMvfX3qq4/dDyw+Q8MoM2UyRMKTuFVoTfA0DGWINvQlAiwWGmh UZslQlpK/UAIYMy/4YD4AQH8O+zTchk2L2e2u8o508ik1YTSSXaU1pEP4T8U6ofpzvTDrv xWZ9hCO3/1B0J3hygOHb6XP3Rq4U2DUdhp9R3OHbSmOM+96nmgG0wo4SXki1jsr1Brjwk8 4ObdkfODGbwzgYwcxY6IouO8Qu1wA8Q4rFYno3Gvn7EL50iwHOvWiZFFGckLLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1759899884; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=x7JLzD7zqyOaMaNdxZEMU2SMj7KXuoqyz8YqDEXHX4g=; b=OLfKgh97YyfgnFRe6QZ88iTjAc4EZn9RvTxR07X6phAe2P9rOWy//q7kZ/GXbtnW8++fLE DdKengh/JbwNb3v+kVR/WVUO2FCHPSkYWH0IA9ThmnmLrJonBnyFFeHJk1MxvLCcboPVPB UtJoiffk+a1GkoxNjtK6LH6fgMbOxlWP86RXMQgKy4Fs+4Yovqrzy846Fz0u63p0flp6YO hyshZ0iN4Ee/PoBS1cL0464Z6WZzMHJVSro1XG3m0UmlPLp9+c5F7cqNdXGFecmf0OAw4F Woqn6gTJ12rIKt5RYAO7i+M9itDsNDqeEds7ie4/3GmdJu2fR/YhIJFskDYtuQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1759899884; a=rsa-sha256; cv=none; b=DQTNC8y1Y+kt4uUZNuzhpXqbIeS3AYpc6cV8Uay/lAMdfsOtbqN67cNkUcMMu5TFdC9RFe GWnyUysqkWdHZdYMgFqnT4dZ4YiwJE3Htsg1F/Qd00T3405kHNiZCBWXF/wfZL/uS+WHCH Wz+85p+LjqbF1i3ZKnRXS5b/RIk2cF6fzUMBK9S4+v9J8PcPOJ9xZsNTgVokBgT+WtD5Qc LWa1E15EpgXomBS4eFk36UWZipv+IQk7qwon2krJxbmk2IJ/LwQuU79mgD2ag6KwPWo6kx 6tgjD7znjhDiKaDvA8gYcGwgCxOm8/VJb7tD4jd8w9iOS8ET0OMAyUBioBuQ6w== ARC-Authentication-Results: i=1; mx1.freebsd.org; none Received: from amaryllis.le-fay.org (amaryllis.le-fay.org [IPv6:2a00:1098:6b:400::9]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) (Authenticated sender: ivy/mail) by smtp.freebsd.org (Postfix) with ESMTPSA id 4chLXW5kWbzkbg; Wed, 08 Oct 2025 05:04:43 +0000 (UTC) (envelope-from ivy@freebsd.org) Date: Wed, 8 Oct 2025 06:04:35 +0100 From: Lexi Winter To: Yasuhiro Kimura Cc: freebsd-current@freebsd.org Subject: Re: How to make `pkg version` work fine with private pkgbase repository Message-ID: Mail-Followup-To: Yasuhiro Kimura , freebsd-current@freebsd.org References: <20251008.135359.1026187049848325621.yasu@FreeBSD.org> List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="3n58w/Qmb2mu8hhJ" Content-Disposition: inline In-Reply-To: <20251008.135359.1026187049848325621.yasu@FreeBSD.org> --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--