From nobody Tue Mar 07 20:23:04 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 4PWRjD2sSQz3wb5r for ; Tue, 7 Mar 2023 20:23:28 +0000 (UTC) (envelope-from dan@langille.org) Received: from wout4-smtp.messagingengine.com (wout4-smtp.messagingengine.com [64.147.123.20]) (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 4PWRjC3qDwz3nJ2 for ; Tue, 7 Mar 2023 20:23:27 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm1 header.b=lF6doyBJ; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=hLfHYVqP; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 64.147.123.20 as permitted sender) smtp.mailfrom=dan@langille.org; dmarc=pass (policy=none) header.from=langille.org Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.west.internal (Postfix) with ESMTP id 9785B32007CF for ; Tue, 7 Mar 2023 15:23:25 -0500 (EST) Received: from imap42 ([10.202.2.92]) by compute5.internal (MEProxy); Tue, 07 Mar 2023 15:23:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm1; t=1678220605; x=1678307005; bh=rm 8V9ya4lrj87LKJ9OrrBR5eQuUhR401xbhpJMKnq1E=; b=lF6doyBJbLSrLoWyCK D2W1ddYf63ZuxXiVVmKSyMuuvjhjtYtgWY1KXKGf9feDvKArwrLYqMmA1LarLh/S q24LPozMfBbk+PgG2bs2lF3nztnkHKO7n5msy8kv6GqWxm1vxS+UGPceIDpG99GJ PQruaFSeiSIW2xgOzfJiFoCZnltNF1KJWU1XlUX+CrWr4/dKCchcpPhkyGwn/bD9 Q6dnIzGHW7KG8fmx/3Yyqrgn6dsoLZHvxwDJkjuPk81m2rxnuWBv7+S+8d2dbaAY 76h1stcP9d7zntWQBfs9k+AYp+GBBaitHm3U35wZ/95/hVPOteW9YtvFKJGETcVu fxIg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; t=1678220605; x=1678307005; bh=rm8V9ya4lrj87 LKJ9OrrBR5eQuUhR401xbhpJMKnq1E=; b=hLfHYVqPquXciyzFF5dqvS5wJLd+9 QQG03vInWRXqaMTG1+KcQnLodNYBjkKx49IPMSfTaQs8+143DiZcXg/RtXmj+438 B9790XJiShWAEscgaAUHhHE+iPKAhEZbZf0ER3hzlCfcXZw6+utz69j+eMMeBt0Q uuCMYawmf+OfI04o6YUja8bIeazLhvZjwpInHxpN8TT8ZvQAS6vRnoc4BIRFxNF7 t6hR/p8aK2eWxKh8kACNTRK0RaFiQm6TW7c9qaSk4vnxnRD7Ad2eNCXYXnHEsx+y ej1QEBZ/aXNuaQgJQToo2dySc9l+NPPeoFJbfMTIVGUwLqUFUq3WA+ABw== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddutddgudeftdcutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmd enucfjughrpefofgggkfgjfhffhffvufgtsehttdertderredtnecuhfhrohhmpedfffgr nhcunfgrnhhgihhllhgvfdcuoegurghnsehlrghnghhilhhlvgdrohhrgheqnecuggftrf grthhtvghrnhephffhhfelgefhhedtheehgfduleeutddvkeefueehgfdvtdeiieffgfet vdekjeeknecuffhomhgrihhnpehunhhigigrthhhohhmvgdrohhrghenucevlhhushhtvg hrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghnsehlrghnghhilhhl vgdrohhrgh X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mailuser.nyi.internal (Postfix, from userid 501) id 004AFBC0078; Tue, 7 Mar 2023 15:23:24 -0500 (EST) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.9.0-alpha0-206-g57c8fdedf8-fm-20230227.001-g57c8fded 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 Message-Id: <3edcd50d-18de-4cd6-82e6-9d9014ab0aae@app.fastmail.com> In-Reply-To: <61D4795C-9A44-4956-9D95-2114D1C9F5AD@nimnet.asn.au> 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> Date: Tue, 07 Mar 2023 15:23:04 -0500 From: "Dan Langille" To: "via questions" Subject: Re: How do I determine the ABI string used by pkg? Content-Type: text/plain X-Spamd-Result: default: False [-3.58 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.987]; MV_CASE(0.50)[]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm1,messagingengine.com:s=fm1]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.20]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.20:from]; MIME_GOOD(-0.10)[text/plain]; XM_UA_NO_VERSION(0.01)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; FREEFALL_USER(0.00)[dan]; RCPT_COUNT_ONE(0.00)[1]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; TO_DN_ALL(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org] X-Rspamd-Queue-Id: 4PWRjC3qDwz3nJ2 X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N On Tue, Mar 7, 2023, at 3:03 PM, Ian Smith wrote: > On 8 March 2023 4:09:51 am AEDT, Dan Langille wrote: > > Baptiste Daroussin wrote on 3/6/23 2:56 AM: > > > On Wed, Mar 01, 2023 at 11:50:13PM -0800, 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. > > > pkg config ABI > > > pkg config ALTABI > > > When run in a freshly-created jail: > > > > [r730-01 dvl ~] % sudo jexec empty_tester > > root@:/ # pkg config ABI > > FreeBSD:13:amd64 > > root@:/ # pkg config ALTABI > > freebsd:13:x86:64 > > root@:/ # > > > > Mel: I think this is what you wanted to get? > > Dan, could you confirm whether the first one also installed pkg(8), so > subsequent 'pkg info' would show (only) pkg? Please ignore my testing. It was invalid and did not have the correct configuration. Sorry. I did not set 'path = ' in my jail - I think it was using the host. The above mentioned commands all attempt to install pkg when run in a properly configured jail. root@empty_tester:/ # hostname empty_tester.int.unixathome.org root@empty_tester:/ # pkg info -l The package management tool is not yet installed on your system. 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. Do you want to fetch and install it now? [y/N]: n root@empty_tester:/ # > If so, would 'pkg -N config ABI' have done the same? Or failed? Or > shown the ABI? root@empty_tester:/ # pkg -N config ABI pkg: pkg is not installed root@empty_tester:/ # c > > That is - given that pkg(7) must know $ABI to resolve url: in > Whatever.conf to install pkg(8) - is it necessary to bootstrap pkg to > determine ABI via pkg(7)? Yes, I think it is, based on my testing so far. -- Dan Langille dan@langille.org