From nobody Sun Mar 5 20:08:16 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 4PVCT01TLrz3tv4l for ; Sun, 5 Mar 2023 20:08:36 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from h1.out2.mxs.au (h1.out2.mxs.au [110.232.143.236]) (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 4PVCSz2tjFz3sVT for ; Sun, 5 Mar 2023 20:08:33 +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 out2.mxs.au (Halon) with ESMTPS id 7b79e7e9-bb91-11ed-8a38-00163c1ebd60; Mon, 06 Mar 2023 07:08:23 +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=FD8U8daOhonx9vaqOnUaiqMEwMx3NMF0ZKnKwfs2OGo=; b=SuaQLZaPQaG9zN7UPz9xtr1/cn TzLzAfPG10y4Y6lttmOTjP0YfbQ3XFkRLGAGE/Hd02cXfjqcPSsu67mByswzq8c9mhQmem8ZAYb0E Go62pdrHLDoehQWLkWdiWbrDTjXNTHk1SORApVFN2fwzTxn/t2ZO1Q0l4vyODO9T199nUZKIc0lJo DRwsJ44l6cdMamvw5v2ehTFjdF0m4+1DdC1wdalcebXcEXvkOI93iNA8HCIehFew8g656h/tN0mWl L1zb+ItMl1y50QXnIaDy910PdkzwKjnjxcHKhduZPu9sxRx/cHjCqzAeWiQTkLpC2gzS8pHW00lpt Ksm8QM+g==; Received: from [1.144.248.113] (port=47626 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 1pYued-003ayz-0C; Mon, 06 Mar 2023 07:08:23 +1100 Date: Mon, 06 Mar 2023 07:08:16 +1100 User-Agent: K-9 Mail for Android 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> <8d8d515f-5ecf-c838-a17a-cc6cbb3218b9@langille.org> 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: Dan Langille ,bapt@freebsd.org CC: questions@freebsd.org From: Ian Smith Message-ID: <0051EA50-A86D-492B-AA90-062790FF4BCC@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: 4PVCSz2tjFz3sVT 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 6 March 2023 5:48:05 am AEDT, Dan Langille wrote: > Ian Smith wrote on 3/5/23 12:36 PM: > > 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: > > > > > > > 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