From nobody Tue Sep 23 02:32:44 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 4cW3tb4xXyz67vJk for ; Tue, 23 Sep 2025 02:33:11 +0000 (UTC) (envelope-from freebsd-current-freebsd-org111@ketas.si.pri.ee) Received: from mail.ketas.si.pri.ee (d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee [IPv6:2001:7d0:8437:13e8:21e:bff:fea2:d004]) (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) by mx1.freebsd.org (Postfix) with ESMTPS id 4cW3tZ4CbZz49gL for ; Tue, 23 Sep 2025 02:33:10 +0000 (UTC) (envelope-from freebsd-current-freebsd-org111@ketas.si.pri.ee) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=ketas.si.pri.ee header.s=ketas-si-pri-ee-20240416002854-4096 header.b=mkeaHy1r; dmarc=pass (policy=reject) header.from=ketas.si.pri.ee; spf=pass (mx1.freebsd.org: domain of freebsd-current-freebsd-org111@ketas.si.pri.ee designates 2001:7d0:8437:13e8:21e:bff:fea2:d004 as permitted sender) smtp.mailfrom=freebsd-current-freebsd-org111@ketas.si.pri.ee X-Original-To: freebsd-current@freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=ketas.si.pri.ee; s=ketas-si-pri-ee-20240416002854-4096; t=1758594773; bh=I0phHV0utHd6zJ+0sbl3A8V3NUKNqFbtWsxi1N/ycE4=; h=Date:From:To:Subject:In-Reply-To:References; b=mkeaHy1rF38PpGnALBr7EMD+CUucs1anLTfj4xbYcuERtyfceELZgqLlwmdh7Toek PIpW214sFNWKsR512evSClUrCtHXOHtsRMdv+KLqtVRiia5ptE8ssGfaHc50ZbkNfx jfBycyy4KLCLVl5RaLKabxjDabrEu1YjIr6HbSA0N6kpchZZ5stgAJQhzg1aJaTUDm 83BiZfeZNKSux/q9QnhFWouSbb6xELHW4UuJlfTovCTao6bbtDcreCNohAlQxauKrd m+IIMrvhd/vQ/0neeYiZEu1NFI+0wO6HyyPYaBkgOVT/O1ajsL7Z9PunOmq69X2fp5 Jp0WD7liUP8e97wG+CJhIOx+CUdpQghu2y52BD04nNN8sxHQtweSHmGM//BB7JXmWN 2vIhVQ6LgXlla3d2nhtBgHNkuQEBXN4KR3ZHIrv/OS9SjfYE+NmdwR/rXx7PfzmbDz L4fRoREXMUwjkOrIEG3bw97EZj5j9u89525djcTUFg1XU3YapUb1DEhaG1XsLu7rRV xd67DyIxqK8sH5G2RtxJM3JubG7YABacUY5AAw5zw8oDaiRX26DxkmPit76DZ2knJ6 JiCnjtKvXbzIECzzEWjHxGJyJDeM3Ykb+XRQH/pR2m6tbvhMy1CQIeGxEkLEIukMth ohm9hQQRbr2sY+916KrYEf5s= Received: from ehlo.thunderbird.net (0115-0000-0000-0000-13c8-8437-07d0-2001.dyn.estpak.ee [IPv6:2001:7d0:8437:13c8::115]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ketas.si.pri.ee (Postfix) with ESMTPSA id 628325C3610 for ; Tue, 23 Sep 2025 05:32:51 +0300 (EEST) Date: Tue, 23 Sep 2025 05:32:44 +0300 From: Sulev-Madis Silber To: freebsd-current@freebsd.org Subject: RE: For base packages, origin is always "base". User-Agent: K-9 Mail for Android In-Reply-To: <0EAFDC33-DC46-4A41-995B-1CE20395EF57@yahoo.com> References: <0EAFDC33-DC46-4A41-995B-1CE20395EF57.ref@yahoo.com> <0EAFDC33-DC46-4A41-995B-1CE20395EF57@yahoo.com> Message-ID: <4B5D72A0-3955-45EC-923A-33E55A2E1D0B@ketas.si.pri.ee> 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: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spamd-Bar: / X-Spamd-Result: default: False [-0.78 / 15.00]; HFILTER_HOSTNAME_5(3.00)[d004-fea2-0bff-021e-13e8-8437-07d0-2001.dyn.estpak.ee]; NEURAL_HAM_MEDIUM(-1.00)[-0.997]; NEURAL_HAM_SHORT(-0.99)[-0.995]; NEURAL_HAM_LONG(-0.99)[-0.989]; DMARC_POLICY_ALLOW(-0.50)[ketas.si.pri.ee,reject]; R_DKIM_ALLOW(-0.20)[ketas.si.pri.ee:s=ketas-si-pri-ee-20240416002854-4096]; ONCE_RECEIVED(0.20)[]; R_SPF_ALLOW(-0.20)[+ip6:2001:7d0:8437:1300::/56]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; ASN(0.00)[asn:3249, ipnet:2001:7d0::/32, country:EE]; MIME_TRACE(0.00)[0:+]; RCVD_COUNT_ONE(0.00)[1]; RCVD_TLS_ALL(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-current@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; ARC_NA(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-current@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; DKIM_TRACE(0.00)[ketas.si.pri.ee:+] X-Rspamd-Queue-Id: 4cW3tZ4CbZz49gL On September 23, 2025 4:24:15 AM GMT+03:00, Mark Millard wrote: >Sulev-Madis Silber wrote on >Date: Mon, 22 Sep 2025 22:19:03 UTC : > >> the subject is what i found from >>=20 >> release/packages/template=2Eucl >>=20 >> when i tried to figure out why >>=20 >> pkg info -qoa >>=20 >> gave me series of "bases" on my current-with-pkgbase test >>=20 >> i had to do >>=20 >> pkg query %n > >There is also the likes of: > ># pkg query "%n-%v" | less >pkg: Warning: Major OS version upgrade detected=2E Running "pkg bootstra= p -f" recommended >FreeBSD-acct-16=2Esnap20250915234127 >FreeBSD-acct-dbg-16=2Esnap20250915234127 >FreeBSD-acpi-16=2Esnap20250910190529 >FreeBSD-acpi-dbg-16=2Esnap20250905060419 >=2E =2E =2E > >It also shows the version information (that has >an encoded date/time in the name)=2E > >I'll note that there is also remote query: > ># pkg rquery "%n-%v" | less >pkg: Warning: Major OS version upgrade detected=2E Running "pkg bootstra= p -f" recommended >FreeBSD-acct-16=2Esnap20250915234127 >FreeBSD-acct-dbg-16=2Esnap20250915234127 >FreeBSD-acpi-16=2Esnap20250910190529 >FreeBSD-acpi-dbg-16=2Esnap20250905060419 >=2E =2E =2E > >and its "-r" variation, such as: > ># pkg rquery -rFreeBSD-base "%n-%v" | less >pkg: Warning: Major OS version upgrade detected=2E Running "pkg bootstra= p -f" recommended >FreeBSD-acct-16=2Esnap20250915234127 >FreeBSD-acct-dbg-16=2Esnap20250915234127 >FreeBSD-acpi-16=2Esnap20250910190529 >FreeBSD-acpi-dbg-16=2Esnap20250905060419 >=2E =2E =2E > >(pkg query does not involve or support -rFreeBSD-base >or the like=2E) > >> or >>=20 >> pkg query %C/%n > >For visual reference: > ># pkg query "%C/%n" | less >pkg: Warning: Major OS version upgrade detected=2E Running "pkg bootstra= p -f" recommended >base/FreeBSD-acct >base/FreeBSD-acct-dbg >base/FreeBSD-acpi >base/FreeBSD-acpi-dbg >=2E =2E =2E > ># pkg rquery -rFreeBSD-base "%C/%n" | less >pkg: Warning: Major OS version upgrade detected=2E Running "pkg bootstra= p -f" recommended >base/FreeBSD-acct >base/FreeBSD-acct-dbg >base/FreeBSD-acpi >base/FreeBSD-acpi-dbg >=2E =2E =2E > >> in order to get "real package names"=2E latter blows up if more than on= e category is added, of course > >As an example, base/FreeBSD-acct is not a 'real base package name' >at all (note the extra word before "package"): > ># pkg info base/FreeBSD-acct >pkg: Warning: Major OS version upgrade detected=2E Running "pkg bootstra= p -f" recommended >pkg: No package(s) matching base/FreeBSD-acct > >By contrast: > ># pkg info FreeBSD-acct-16=2Esnap20250915234127 >pkg: Warning: Major OS version upgrade detected=2E Running "pkg bootstra= p -f" recommended >FreeBSD-acct-16=2Esnap20250915234127 >Name : FreeBSD-acct >Version : 16=2Esnap20250915234127 >Installed on : Tue Sep 16 20:57:58 2025 PDT >Origin : base >Architecture : FreeBSD:16:amd64 >Prefix : / >Categories : base >Licenses : BSD2CLAUSE >Maintainer : re@FreeBSD=2Eorg >WWW : https://www=2EFreeBSD=2Eorg >Comment : System Accounting Utilities >Shared Libs required: > libc++=2Eso=2E1 > libc=2Eso=2E7 > libcxxrt=2Eso=2E1 > libgcc_s=2Eso=2E1 > libm=2Eso=2E5 > libxo=2Eso=2E0 >Annotations : > FreeBSD_version: 1600000 > repo_type : binary > repository : FreeBSD-base > set : base >Flat size : 129KiB >Description : >System Accounting Utilities > >> is there any reason the origin can't be like with "normal" (ports) pack= ages? any technical things i don't see here? dependencies from ports can't = be resolved anymore? i mean yes category and name is correct=2E but i mean = why? :) > >The notation base/FreeBSD-acct is supposed >to mean that (presuming default ports placement) >/usr/ports/base/FreeBSD-acct/ is were to >find the content for base/FreeBSD-acct =2E >That is not where any of the files are for >the acct base package=2E > >The files related to base packages are not in the >ports tree at all, but in the src git repository >(usually used via /usr/src/ references)=2E They are >not stored with the pkg program source: they are >FreeBSD configuration files that pkg processes=2E > >Also, the ports git repository has a history >that includes time period that had a category >"base", the last before that was removed is >visible via: > >https://cgit=2Efreebsd=2Eorg/ports/tree/?id=3Dfb16dfecae4a6efac9f3a78e0b7= 59fb7a3c53de4 > >It shows a "base" directory=2E Looking in it, >there was: > >base/Makefile >base/README >base/binutils/ >base/gcc6/ > >The commit that removed that base directory was: > >https://cgit=2Efreebsd=2Eorg/ports/commit/base?id=3D2ed924f5ecb1efe13229a= 0a77d5e7a2c0cfaac09 > >author John Baldwin 2023-02-13 21:14:34 +0000 >committer John Baldwin 2023-02-13 21:14:34 +0000 > >commit 2ed924f5ecb1efe13229a0a77d5e7a2c0cfaac09 (patch) >tree d26d1548ef28cbecf4630f49462c79367d59e7af /base >parent f3b6cfcaa96240335e8c343a90bcbfa3ff7534c7 (diff) > >base/*: Remove the base ports to install an external toolchain in /usr=2E > >=2E =2E =2E > >Avoiding confusions with the ports tree base category >and its history seems appropriate to me=2E > >> i even wanted to change it but there must be a reason for this and i th= ought i ask first=2E maybe get some insight to this too >>=20 >> this is my first try with pkgbase! > > > >=3D=3D=3D >Mark Millard >marklmi at yahoo=2Ecom > > oh yes that makes sense but problem i have is that they all get installed by pkg into system and i= t's db so it's very confusing i mean pkg also allows one to install whatever one wants=2E doesn't have t= o come neither ports nor base yes there are limiting per repo but if it's in all one pkg info list, it g= ets messy this was all fine when pkg was just for ports i wonder what linux distros do here=2E many of them allow own repos=2E it = would extremely cursed if it's like pkg here is but i don't have real solution for this it just did bite my ass when i was playing around with altroot in a dir an= d local repo, when i found i have good set, i wanted to save it and with %n= i indeed did eventually=2E that made me list of packages i would be able t= o feed into install, doesn't matter which version they are that was a wtf so i looked around why and the freebsd- prefix is also understandable but hmm typing that in is h= uge hassle=2E of course i have copy and paste and scripts but still so yeah, those were first impressions of pkgbase from someone who never tr= ied it before but knows it=2E imagine if you know less=2E i immediately wen= t to pkg-query manpage to see for name only var so i can build a list i never installed any ports there but if one uses pkg info (maybe with -q)= , it doesn't help to see that there's also 49 "bases" installed=2E but i do= n't know what's fix either=2E=2E=2E