From nobody Wed Mar 08 04:47:47 2023 X-Original-To: questions@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 4PWfvX5y8bz3x6NB for ; Wed, 8 Mar 2023 04:48:08 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from h1.out4.mxs.au (h1.out4.mxs.au [110.232.143.238]) (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 4PWfvX1CBzz3Hf4 for ; Wed, 8 Mar 2023 04:48:07 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Authentication-Results: mx1.freebsd.org; none Received: from s121.syd3.hostingplatform.net.au (s121.syd3.hostingplatform.net.au [103.27.34.4]) by out4.mxs.au (Halon) with ESMTPS id 6175eaf6-bd6c-11ed-92ae-00163c87da3f; Wed, 08 Mar 2023 15:47:50 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=nimnet.asn.au; s=default; h=Message-ID:From:CC:To:Subject: Content-Transfer-Encoding:Content-Type:MIME-Version:References:In-Reply-To: Date:Sender:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help: List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=SegU8Ao6pW3jtOXloBiTDptAHVt88HnDWC3oTMySI5c=; b=FOtuyshanpMYSi0GjvUKZC7VDJ vL3eIxTVuHI7TNvWXzISDJFmaOmI+OhZZ7lzyGJ8Vsp6gSANEbuoAY5bRZxn0K6MsMsJ/GG/hnwp8 UmdlGKaI+h0H8d36Me5POTOvLto4lWneSDPx6db84/6lauoUwwA4h6DSkz/XMMEXtsTbrCY087Zf1 dTSlohhizJJOk2T+0tfTaL4u6+u1x1kFocAjC1/A0iCAVFrd3H6Ii3GxKj10tNhevTyvNrrc6KL0O kwg8EnKmYol8x2+214t3faT6pKWUmkIapU6BZL961mnPW95IA7nOpMz/XzIhya8Ui+rYrrjIpUJSa 6faPJ+bA==; Received: from [1.144.247.146] (port=57110 helo=Galaxy-J5-Pro) by s121.syd3.hostingplatform.net.au with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.96) (envelope-from ) id 1pZliQ-001qSo-1I; Wed, 08 Mar 2023 15:47:50 +1100 Date: Wed, 08 Mar 2023 15:47:47 +1100 User-Agent: K-9 Mail for Android In-Reply-To: References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-questions@freebsd.org X-BeenThere: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Subject: Re: How do I determine the ABI string used by pkg? To: Mel Pilgrim ,Dan Langille CC: questions@freebsd.org From: Ian Smith Message-ID: <003C53C2-F622-4E5A-9682-A88416482750@nimnet.asn.au> X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - s121.syd3.hostingplatform.net.au X-AntiAbuse: Original Domain - freebsd.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - nimnet.asn.au X-Get-Message-Sender-Via: s121.syd3.hostingplatform.net.au: authenticated_id: smithi@nimnet.asn.au X-Authenticated-Sender: s121.syd3.hostingplatform.net.au: smithi@nimnet.asn.au X-Source: X-Source-Args: X-Source-Dir: X-Rspamd-Queue-Id: 4PWfvX1CBzz3Hf4 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:45638, ipnet:110.232.140.0/22, country:AU] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 8 March 2023 11:35:51 am AEDT, Mel Pilgrim wrote: > On 2023-03-05 9:36, Ian Smith wrote: > > On 6 March 2023 3:03:23 am AEDT, Dan Langille > wrote: > > > Ian Smith wrote on 3/5/23 12:09 AM: > > > > On 2 March 2023 6:50:13 pm AEDT, Mel Pilgrim > > > 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