Date: Mon, 06 Mar 2023 07:08:16 +1100 From: Ian Smith <smithi@nimnet.asn.au> To: Dan Langille <dan@langille.org>,bapt@freebsd.org Cc: questions@freebsd.org Subject: Re: How do I determine the ABI string used by pkg? Message-ID: <0051EA50-A86D-492B-AA90-062790FF4BCC@nimnet.asn.au> In-Reply-To: <8d8d515f-5ecf-c838-a17a-cc6cbb3218b9@langille.org> References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> <b3e9f8a6-e91e-e2dc-0bc4-36df118fdffe@langille.org> <C238B683-4BBD-46F3-94DA-043ADA8BD2ED@nimnet.asn.au> <8d8d515f-5ecf-c838-a17a-cc6cbb3218b9@langille.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 6 March 2023 5:48:05 am AEDT, Dan Langille <dan@langille=2Eorg> wrote: > Ian Smith wrote on 3/5/23 12:36 PM: > > On 6 March 2023 3:03:23 am AEDT, Dan Langille <dan@langille=2Eorg> > wrote: > > > Ian Smith wrote on 3/5/23 12:09 AM: > > > > On 2 March 2023 6:50:13 pm AEDT, Mel Pilgrim > > > <list_freebsd@bluerosetech=2Ecom> wrote: > > > > > > > I need to determine the ABI string pkg uses on a given > system, > > > and > > > > > need to do so when there are no pkgs installed=2E > > > > > > > > # pkg -N -vv | grep ABI > > > > > Will that install pkg "when there are no pkgs installed", the > key > > > requirement of the question? > > > > No; using 'pkg -N' when no packages are installed, /usr/sbin/pkg > won't attempt to bootstrap (i=2Ee=2E install pkg*=2Epkg as > /usr/local/sbin/pkg) but -vv still prints, here: > > > > ABI =3D "FreeBSD:12:amd64"; > > ALTABI =3D "FreeBSD:12:x86:64"; > Perhaps OP meant when pkg is not installed, because that's what I=20 > thought was intended=2E >=20 > root@empty_tester:/ # pkg -N -vv | grep ABI > pkg: pkg is not installed Oh=2E Now I'm thoroughly confused=2E Without -N, /usr/sbin/pkg should use by default /etc/pkg/FreeBSD=2Econf to= first install pkg(8), but how can FreeBSD=2Econf resolve ${ABI} unless tha= t's already set? Without -N, does that install pkg for you? And then emit pkg -vv stuff in= cl=2E ABI? Bapt, can you please help resolve this thread, starting at https://lists=2Efreebsd=2Eorg/archives/freebsd-questions/2023-March/002896= =2Ehtml Note the list archives threading is still busted, as we discussed months a= go, so you must back out to the index foreach=2E cheers, Ian
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?0051EA50-A86D-492B-AA90-062790FF4BCC>