Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 08 Mar 2023 15:47:47 +1100
From:      Ian Smith <smithi@nimnet.asn.au>
To:        Mel Pilgrim <list_freebsd@bluerosetech.com>,Dan Langille <dan@langille.org>
Cc:        questions@freebsd.org
Subject:   Re: How do I determine the ABI string used by pkg?
Message-ID:  <003C53C2-F622-4E5A-9682-A88416482750@nimnet.asn.au>
In-Reply-To: <f6d61b89-43a9-ccf6-e04d-cafec39d7f72@bluerosetech.com>
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> <f6d61b89-43a9-ccf6-e04d-cafec39d7f72@bluerosetech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 8 March 2023 11:35:51 am AEDT, Mel Pilgrim <list_freebsd@bluerosetech=2E=
com> wrote:
 > On 2023-03-05 9:36, Ian Smith wrote:
 > > 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:
 > >=20
 > >   > >   > 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
 > >=20
 > >   > Will that install pkg "when there are no pkgs installed", the
 > key
 > >   > requirement of the question?
 > >=20
 > > 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:
 > >=20
 > > ABI =3D "FreeBSD:12:amd64";
 > > ALTABI =3D "FreeBSD:12:x86:64";
 > >=20
 > > cheers, Ian  (ports@ removed from ccs)

 > On a fresh jail with just base installed:
 >=20
 > # which pkg
 > /usr/sbin/pkg
 > # pkg config ABI
 > The package management tool is not yet installed on your system=2E
 > Do you want to fetch and install it now? [y/N]:
 > # pkg -N
 > pkg: pkg is not installed
 > # pkg -N -vv
 > pkg: pkg is not installed
 >=20
 > The functionality you, Dan, et al are quoting is only available after
 > bootstraping pkg=2E  Yes, once it's bootstrapped getting the ABI string
 > is easy=2E
 >=20
 > Maybe "when there are no pkgs installed" wasn't clear?

It was clear to me Mel, and I assumed you had some reason to not install p=
kg=2E

But I was mistaken believing that -N -vv should still print values from pk=
g=2Econf=2E

For me, this comes from getting bsdconfig(8) packages working to install p=
ackages from dvd1when not online, but I clearly don't yet grok it completel=
y=2E

See /usr/share/bsdconfig/packages/musthavepkg=2Esubr ( with patched ASSUME=
_ALWAYS_YES=3DYES )

cheers, Ian



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?003C53C2-F622-4E5A-9682-A88416482750>