From nobody Wed Mar  8 05:33:36 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 4PWgwH2MgMz3x949
	for <questions@mlmmj.nyi.freebsd.org>; Wed,  8 Mar 2023 05:33:51 +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 4PWgwG3vCsz3N4J
	for <questions@freebsd.org>; Wed,  8 Mar 2023 05:33:50 +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 c81dc2f7-bd72-11ed-9cc9-00163c1ebd60;
	Wed, 08 Mar 2023 16:33:39 +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=ERh0QS3mMmiyLXHUd7CTjgHn98KIOQ3mvTEC4l38WEc=; b=rbrhlKi3/M5hH+xHs/iQ9JSEw8
	YJinNKsmrpbIkJ53PH+49reAEwR4QvHbULx2VoBhWLeMEdUiMaaKx69Odat1Uxq+7g3fiTYAuW6BV
	lSAzJsxfkpUatYxOAvzw9945xmmmkp7IGIn8m6dGBKf4dotPr7xw+ONbTnMd3Z81W0BhF9ZTj9Kw0
	7ssOh8H4eZra1CRPENmT+oYQl2+p79pVOBiPiaE9Wrgtrb1MJ5YyArVb8+7RHkp3negLdJdM35b5i
	kECUzHmcv1xnEjWEfcn01j9NhDV7Z9ApT+2N2VjiHo51VRqCpTAsc8WCp16OPwt5+9RVnL5eWRG/r
	BZtyf9pA==;
Received: from [1.144.247.4] (port=57162 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 <smithi@nimnet.asn.au>)
	id 1pZmQl-003ld1-1T;
	Wed, 08 Mar 2023 16:33:39 +1100
Date: Wed, 08 Mar 2023 16:33:36 +1100
User-Agent: K-9 Mail for Android
In-Reply-To: <3edcd50d-18de-4cd6-82e6-9d9014ab0aae@app.fastmail.com>
References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> <257260d9-1812-3ce5-5d9a-907e2b1ec13e@langille.org> <61D4795C-9A44-4956-9D95-2114D1C9F5AD@nimnet.asn.au> <3edcd50d-18de-4cd6-82e6-9d9014ab0aae@app.fastmail.com>
List-Id: User questions <freebsd-questions.freebsd.org>
List-Archive: https://lists.freebsd.org/archives/freebsd-questions
List-Help: <mailto:questions+help@freebsd.org>
List-Post: <mailto:questions@freebsd.org>
List-Subscribe: <mailto:questions+subscribe@freebsd.org>
List-Unsubscribe: <mailto:questions+unsubscribe@freebsd.org>
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 <dan@langille.org>
CC: questions@freebsd.org
From: Ian Smith <smithi@nimnet.asn.au>
Message-ID: <1900BC4E-A5EE-4BC1-9409-2EFA5E8E227A@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: 4PWgwG3vCsz3N4J
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 7:23:04 am AEDT, Dan Langille <dan@langille=2Eorg> wrote:
 > On Tue, Mar 7, 2023, at 3:03 PM, Ian Smith wrote:

[=2E=2E=2E]

 > > Dan, could you confirm whether the first one also installed pkg(8),
 > so=20
 > > subsequent 'pkg info' would show (only) pkg?
 >=20
 > Please ignore my testing=2E It was invalid and did not have the correct
 > configuration=2E
 >=20
 > Sorry=2E I did not set 'path =3D ' in my jail - I think it was using th=
e
 > host=2E

At least we're all a bit confused :)

 > The above mentioned commands all attempt to install pkg when run in=20
 > a properly configured jail=2E
 >=20
 > root@empty_tester:/ # hostname
 > empty_tester=2Eint=2Eunixathome=2Eorg
 > root@empty_tester:/ # pkg info -l
 > The package management tool is not yet installed on your system=2E
 > Do you want to fetch and install it now? [y/N]: n
 > root@empty_tester:/ # 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]: n=20
 > root@empty_tester:/ #=20

 > > If so, would 'pkg -N config ABI' have done the same?  Or failed?=20
 > > Or shown the ABI?
 >=20
 > root@empty_tester:/ # pkg -N config ABI
 > pkg: pkg is not installed
 > root@empty_tester:/ # c
=20
 > > That is - given that pkg(7) must know $ABI to resolve url: in=20
 > > Whatever=2Econf to install pkg(8) - is it necessary to bootstrap pkg
 > to=20
 > > determine ABI via pkg(7)?
 >=20
 > Yes, I think it is, based on my testing so far=2E

Thanks for confirmation=2E

cheers, Ian