From nobody Sun Mar 05 18:48:05 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 4PV9hB6Vl1z3wnhk for ; Sun, 5 Mar 2023 18:48:10 +0000 (UTC) (envelope-from dan@langille.org) Received: from wout2-smtp.messagingengine.com (wout2-smtp.messagingengine.com [64.147.123.25]) (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 4PV9h94wJbz3mVZ for ; Sun, 5 Mar 2023 18:48:09 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm1 header.b=maoD1a3S; dkim=pass header.d=messagingengine.com header.s=fm1 header.b="k aaE+C+"; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 64.147.123.25 as permitted sender) smtp.mailfrom=dan@langille.org; dmarc=pass (policy=none) header.from=langille.org Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailout.west.internal (Postfix) with ESMTP id AE8643200908 for ; Sun, 5 Mar 2023 13:48:07 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute3.internal (MEProxy); Sun, 05 Mar 2023 13:48:07 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc:content-transfer-encoding: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= 1678042087; x=1678128487; bh=/rRrwY/1iEOxHeKv/vw7L7o05byrLxQbeCR MttG3/b8=; b=maoD1a3SEeVLbuToVhDWioVuCmuUgINP2Kf2fcpdkeDnhcLmA8s Qq6VXBWZlWkWDMtoRDe9qtyaZfv4RNFRe0EIOuTKx/hrdNDhDectzGagx53am9Cq QFdvZEdIOX8XmkNsCBA3o5tiO7VtaJBGqClshlcwhRbIL2Op0bsRmWfnWCpZfiSX qV+p2KyvVnQ8OdZ5glkV86LzxWEU7zLo+wuhF0tCqIJ8zpsaglyiZeAfiF4Lxc7i e1CJn1SiFe2LnZ8+BtQB34ztFrmXdMsZuJ/YXT9ZGrwnxgPOhwVoACGP6wFADyyX NHmGZYVDxn0GTUIEt3bpizLruNC9ZNuSlrw== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding: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=1678042087; x= 1678128487; bh=/rRrwY/1iEOxHeKv/vw7L7o05byrLxQbeCRMttG3/b8=; b=k aaE+C+DaiRqvpfX1GDOksQKzmefsqtAqtXe5yOwr3jaCC0C6r97fQDEsbb1jszM+ FGrFGi8+w5Q7XRady2kew9u0kVJc2UqrsfEAPZjUcPgTOnAa9bVBBdhE4zE2PlWZ C4CmJbD6yBfCfnG3w2A1DDQzQvIh8KoNTjskYM9OTsw7nrUc77ptn/tDlBlNryxF eTY5Yt6/Xjtw65ggITqOm6hfWE/QAauXFjl7nk7ib67TclxPApOcXNh6p/UL8FZO ccQXJsOT7weDivF0aqraVA88ByGVmW7PyF14lQDoRuOsG1mBW7I/mDdAPI0zYcsj ch9s38FywAGZP1Q/EivIA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddtgedgudduiecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepuffvfhfhkffffgggjggtgfesth ejredttdefjeenucfhrhhomhepffgrnhcunfgrnhhgihhllhgvuceouggrnheslhgrnhhg ihhllhgvrdhorhhgqeenucggtffrrghtthgvrhhnpefhjeeugedthedvkeeivdejleeghe dutddthefggfevledtteefuddtleejkeetkeenucffohhmrghinheplhgrnhhgihhllhgv rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epuggrnheslhgrnhhgihhllhgvrdhorhhg X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA for ; Sun, 5 Mar 2023 13:48:07 -0500 (EST) Subject: Re: How do I determine the ABI string used by pkg? To: questions@freebsd.org References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> From: Dan Langille Message-ID: <8d8d515f-5ecf-c838-a17a-cc6cbb3218b9@langille.org> Date: Sun, 5 Mar 2023 13:48:05 -0500 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.16; rv:52.0) Gecko/20100101 PostboxApp/7.0.59 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 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Spamd-Result: default: False [-4.10 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; R_SPF_ALLOW(-0.20)[+ip4:64.147.123.25]; R_DKIM_ALLOW(-0.20)[langille.org:s=fm1,messagingengine.com:s=fm1]; MIME_GOOD(-0.10)[text/plain]; RCVD_IN_DNSWL_LOW(-0.10)[64.147.123.25:from]; FREEFALL_USER(0.00)[dan]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; RCVD_COUNT_THREE(0.00)[4]; TO_DN_NONE(0.00)[]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:29838, ipnet:64.147.123.0/24, country:US]; MIME_TRACE(0.00)[0:+]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_TLS_LAST(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[64.147.123.25:from] X-Rspamd-Queue-Id: 4PV9h94wJbz3mVZ X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N 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. > > > > > > # 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.e. install pkg*.pkg as /usr/local/sbin/pkg) but -vv still prints, here: > > ABI = "FreeBSD:12:amd64"; > ALTABI = "FreeBSD:12:x86:64"; > Perhaps OP meant when pkg is not installed, because that's what I thought was intended. root@empty_tester:/ # pkg -N -vv | grep ABI pkg: pkg is not installed -- Dan Langille dan@langille.org : https://langille.org/