From nobody Sat Mar 4 16:44:49 2023 X-Original-To: freebsd-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 4PTW0c3yz7z3wCMw for ; Sat, 4 Mar 2023 16:45:04 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PTW0Z6d7Lz3jyr for ; Sat, 4 Mar 2023 16:45:02 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20210112 header.b=Z4B5P70r; spf=pass (mx1.freebsd.org: domain of michaelsprivate@gmail.com designates 2a00:1450:4864:20::134 as permitted sender) smtp.mailfrom=michaelsprivate@gmail.com; dmarc=pass (policy=none) header.from=gmail.com Received: by mail-lf1-x134.google.com with SMTP id bi9so7468287lfb.2 for ; Sat, 04 Mar 2023 08:45:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=7oBcfJB9uFZhdtsLjVNNkIyEWn3EUKPGlLebh1RVsbo=; b=Z4B5P70rt9dzStbu9SI9OaqVbLjdYX0arfHNuzE9M+CHyBm0NrwAe54x+9etODb2YF ClY3miBYjYNGkua+rHelnOn1Me5fi5wRJPc9cd/gXLzgm5QfVUyBGZqSJMIEUnlaSX96 tO1ci4Q0Dmp/o6QxEOYqqVZq9MIOQBfd14zEUr29Sh7nGi7Ork9l3icG2Jd5ZNZaQlHR eZMtjgc96zCu0rm81sfzxO1Mey8TFKAWFZALyKHUJebmPiHrnrMGxIkZTRgKyfR0x/ix bvEtEbHp9s1IPwXKY4ridpu962MtzcNULuy/ckvvroK40kwkhzjbEM4EUnC0aTr8dMTp WV3g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=7oBcfJB9uFZhdtsLjVNNkIyEWn3EUKPGlLebh1RVsbo=; b=Xy1aYErZL4lbeB+tBe+6+3HstlQPGwyeRfEVFj2/9Q7rq1hLwRhfzhCs/GClKErcUk jCQ3iKWMCmR3TL3LUD3yiVlS3SxU0Mtujpm42XUhjQeQPTBDdpL6RySYiriHdcfvD2hc ymANMugvbedrm/+CVRGKiRMhDjymGk0B1fZ7ucSafxRJBECPhLvkXQpUaa0JUfn2weCu SHbjGpDG8xa7kTkuzdA01U9Qo1JHGY5pTzRB6+ZSsAw1Czmki3tvIY+9vmYIBqLP1BND MykD1tcvYYk3wPuSi+w/zPzmjSRsBXaI6a098K+fXO5aWndlSMO07whxtbvG5QZ3HCd7 T9Mw== X-Gm-Message-State: AO0yUKWkc15uD4yEIDB96GuGLYBNjls5SM8sULYMIJ5cmXvWgNk1GQkk a6FoMBXACzTa1oF7tzCoYDpYBrNWCuWJXxThe18= X-Google-Smtp-Source: AK7set9E04N8Z5UTItxLmSk8MxEY8Skqhb+GhIpu7sTjt4VSY9y4tsKyI8yEFsxO9yw9+ya7IPJH6JyXKsMG5A9ODaE= X-Received: by 2002:ac2:44a3:0:b0:4df:1d72:8e87 with SMTP id c3-20020ac244a3000000b004df1d728e87mr1654534lfm.2.1677948300957; Sat, 04 Mar 2023 08:45:00 -0800 (PST) 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 References: In-Reply-To: From: Michael Schuster Date: Sat, 4 Mar 2023 17:44:49 +0100 Message-ID: Subject: Re: sddm-greeter dumping core on Release after Dec 30 To: "parv/FreeBSD" Cc: freeBSD Mailing List Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-3.79 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.79)[-0.788]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20210112]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; TAGGED_RCPT(0.00)[freebsd]; FREEMAIL_FROM(0.00)[gmail.com]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::134:from]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; FREEMAIL_ENVFROM(0.00)[gmail.com]; DKIM_TRACE(0.00)[gmail.com:+]; TO_DN_ALL(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCPT_COUNT_TWO(0.00)[2]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_LAST(0.00)[]; RCVD_COUNT_TWO(0.00)[2] X-Rspamd-Queue-Id: 4PTW0Z6d7Lz3jyr X-Spamd-Bar: --- X-ThisMailContainsUnwantedMimeParts: N All, sorry that my reply took a while ... "resolution" in a round-about-way belo= w On Mon, Feb 6, 2023 at 4:37=E2=80=AFAM parv/FreeBSD wrote: > > On Sun, Feb 5, 2023 at 1:36 PM parv/FreeBSD wrote: >> >> On Sun, Feb 5, 2023 at 6:49 AM Michael Schuster wrote: > > ... >>> >>> Since the end of December, I haven't been able to get a working desktop= that way, sddm-greeter reproducibly dumps core > > ... >>> >>> How do I go about debugging greeter-core in /var/lib/sddm/ (meaningfull= y)? > > ... >> >> If symbols are missing, then at the very least ssdm > > > Sorry, "ssdm" should have been "sddm". > > > - parv > > >> needs to be locally compiled from The Ports & installed >> without stripping the resulting files. I tried that, and discovered to my chagrin that I must have done something fundamentally wrong when setting up my boot environments/Zpools ... it seems I was affecting the pkg database in non-active BEs when manipulating the active one's. This usually is not a problem when the only direction moving through BEs is "forward" ... Anyway, I re-installed the system, installed the packages, re-set SDDM session to plasma-X11, and I'm back in the game :-) Thx to all Michael --=20 Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion' From nobody Sun Mar 5 05:09:57 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 4PTqXZ3T3Sz3w1Vj for ; Sun, 5 Mar 2023 05:10:22 +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 4PTqXW4Tyyz3phn for ; Sun, 5 Mar 2023 05:10:18 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nimnet.asn.au header.s=default header.b=jKApggoE; spf=pass (mx1.freebsd.org: domain of smithi@nimnet.asn.au designates 110.232.143.238 as permitted sender) smtp.mailfrom=smithi@nimnet.asn.au; dmarc=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 fbaa60ea-bb13-11ed-9580-00163c87da3f; Sun, 05 Mar 2023 16:10:02 +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=wPvuF8iWeqAprVaM2lAc0sS71dyOnMoW0KkWvcEuk2Y=; b=jKApggoEWK20vMpCT3wUj5Ukog Ki0vfOEB4s+C/EU3eLZhJ05wllE5wuZxknM2Au0fXiS8TouzNk7zXOecmWS5YhrORX0Zh8g4S4EfC ON/uw7l0eqeuA5n+nUZ7P6OQGGVlgx31PeG11nfHIZsGR4spS+zDVq2HKFdRf1PWC5TfrlXR22EcF i2Mitt9GLCipyXh1nm4+bBfKOm2vQyLbAVHU68d4yol0eVy7kXixofnVXn+qzqhoiPi0kz3qK0UoA xdLUihSAFQNKhxO5i7aCG1yI23P0xcLRhMkjKZotTxcvDf1NJYJreCNJ4qoapFgQFcXzOyVUkHVOU rYPMzLDA==; Received: from [1.144.249.53] (port=46256 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 1pYgdF-0014uJ-14; Sun, 05 Mar 2023 16:10:01 +1100 Date: Sun, 05 Mar 2023 16:09:57 +1100 User-Agent: K-9 Mail for Android In-Reply-To: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> 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 CC: questions@freebsd.org,ports@freebsd.org From: Ian Smith Message-ID: <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@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-Spamd-Result: default: False [-1.18 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_SPAM_SHORT(0.32)[0.323]; R_SPF_ALLOW(-0.20)[+ip4:110.232.143.0/24]; R_DKIM_ALLOW(-0.20)[nimnet.asn.au:s=default]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_VIA_SMTP_AUTH(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; DMARC_NA(0.00)[nimnet.asn.au]; HAS_X_GMSV(0.00)[smithi@nimnet.asn.au]; ARC_NA(0.00)[]; HAS_X_AS(0.00)[smithi@nimnet.asn.au]; MID_RHS_MATCH_FROM(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; HAS_X_SOURCE(0.00)[]; TO_DN_SOME(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DKIM_TRACE(0.00)[nimnet.asn.au:+]; FROM_EQ_ENVFROM(0.00)[]; HAS_X_ANTIABUSE(0.00)[]; ASN(0.00)[asn:45638, ipnet:110.232.140.0/22, country:AU]; MIME_TRACE(0.00)[0:+]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PTqXW4Tyyz3phn X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N 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 gets you ABI and ALTABI; the former is the amd64 form, the latter x86:64 > I've read through libpkg/pkg_elf=2Ec and I can see how it's reading ELF >=20 > headers from well-known files=2E That's all easy enough to replicate, > but=20 > I'm a bit stuck on how it's determining the arch string for x86=2E I'm just running from a clue by bapt@ and what's on the release DVD, in wh= ich case the ALTABI form is a symlink: freebsd:12:x86:64 -> FreeBSD:12:amd64 and the All packages directory is packages/FreeBSD:12:amd64/All: total 2204897 > How/When does pkg decide to use FreeBSD:13:amd64 instead of=20 > FreeBSD:13:x86:64? Can I safely assume one or the other? You can safely assume the former, that's the usual form=2E The ALTABI for= m _might_ be safe but I've not tried using it=2E cheers, Ian (not subscribed to ports@) From nobody Sun Mar 5 16:03:23 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 4PV6273XdVz3wdJh; Sun, 5 Mar 2023 16:03:27 +0000 (UTC) (envelope-from dan@langille.org) Received: from out2-smtp.messagingengine.com (out2-smtp.messagingengine.com [66.111.4.26]) (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 4PV6271K86z4c3y; Sun, 5 Mar 2023 16:03:27 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; none Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id 751245C012B; Sun, 5 Mar 2023 11:03:26 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Sun, 05 Mar 2023 11:03:26 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc: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= 1678032206; x=1678118606; bh=jRMqMxwC6NQIwLb1GMzIofdy38ZkmzcfW4y JAGI/8qQ=; b=IBNVrZslNDUrlS560ko19z6Avc0dTNOjHdixkX3T+Zs1c4aWGUp jOgqNX1kmrIn6whZHl/zh7P3m+K5DXiPrWtc2Bbc6iVT7I+OQ78VorPkAvqjJ1rJ Xs+5bmxvxs6GPFQltlvaKHr+kl0L5Knu8KHxXMzBsCSae1tekbCcUmHP7XQYiwa0 2o8NE4Fo7mhfVHOxEP4yhdk/RYyW7zwESBHVjpixw9RVAzR9AAnnUwZ3+wUPrBHf uJmTaXkmmTGEt57GoClNRYqp+ZtqtTpMSN1D8nEeGT3bUwzfRxGRtpPDAykdYRp3 +KCp9BgfOdXfWjy2fH62JdH9oZ0mNpzh7IQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= 1678032206; x=1678118606; bh=jRMqMxwC6NQIwLb1GMzIofdy38ZkmzcfW4y JAGI/8qQ=; b=lajd3AwLSVrhDy+7Grq7c4oNgZDlgYACwId8AOcEXYMT9Q9aBfY D77y9VAsnHNOoowZS8zP0SyqsAyXnML/Y9abQy4tjf4vjRlYYIJ0coKfg68lLUuS XklU6BiIl90vAannqerk7glPKBn6qd3vdTGvk70Ea1Bv0ROCBRQ8My6VGGKdtLIv J0hRQZUWlJeed4bPFnsLVtxhyaTzg4lLjO8Zl4ZYrlqMFkB7MVwsf81+1mvcquk+ NltyF0F5yV3WIlLih7lFAReRsMUOM6Ha9TRJGYdjnZYeceA5kyYJBtoBgb3Aw/J4 De30yZn5jn80r1EVOFhkMiaBHvAMP/FwSIg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddtgedgkeefucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvvehfhffkffgfgggjtgfgsehtjeertddtfeejnecuhfhrohhmpeffrghn ucfnrghnghhilhhlvgcuoegurghnsehlrghnghhilhhlvgdrohhrgheqnecuggftrfgrth htvghrnhepgeegteetjeevfedttdduledvteetvedugedvudfhtdeutedvfeeiieefhfev ieehnecuffhomhgrihhnpehlrghnghhilhhlvgdrohhrghenucevlhhushhtvghrufhiii gvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpegurghnsehlrghnghhilhhlvgdrohhr gh X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Sun, 5 Mar 2023 11:03:25 -0500 (EST) Subject: Re: How do I determine the ABI string used by pkg? To: Ian Smith Cc: Mel Pilgrim , questions@freebsd.org, ports@freebsd.org References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> From: Dan Langille Message-ID: Date: Sun, 5 Mar 2023 11:03:23 -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: <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Rspamd-Queue-Id: 4PV6271K86z4c3y X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N 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? -- Dan Langille dan@langille.org : https://langille.org/ From nobody Sun Mar 5 16:08:08 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 4PV67n3Clfz3wdgC; Sun, 5 Mar 2023 16:08:21 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PV67n2pByz4h1D; Sun, 5 Mar 2023 16:08:21 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678032501; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XSASZwVpzp5DrgQARkSf7jIIwJciPoSxuutaLUt5AkI=; b=aYdx7cT4vbUJcyujBpkXxYNXYiFyYaWLdhSi6YiKi9cVrJ/XBwWBnjKtc+e8NJqE52r3ag KrLG78/CRG+Gsk4hQqTW/na0KE4GrGnt6g1USvswrhFb81lgyaNiQhBsm8Gpr/5gF2xC+e mFpRIkeeV5h78nzuEozz6yW4Ul/kqpUzLpx+8pu2dQrSKg+seSqBVO4QgU8naYMQw+Mf9e cJ0SprctySgfGu6h69TAaILNtURICxq1+OBjExjjaT+S9D9qQr0N2CveO2rrP10OJ3yNoB y0+mRaLFx1zuN2MR8hxE6yE2KhYPlFW5+UhpOxUDDultodnGsEc4j8u4MXVHAQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678032501; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=XSASZwVpzp5DrgQARkSf7jIIwJciPoSxuutaLUt5AkI=; b=YTIBi6CQmEKkdPPqeY9WMhHPQtFgEfs3XS2qIABdSiOV6QDS+o5+so/CX4cYnkur1pB7Co Q7Gqghrpt+qVhdhJkATpvZwKwOOFwyIq+ha/7D0TClesF3vLUHWc/Bg6jL0JjcONAX/jc/ a8CM6/7shJINZb8fVX9WlmOw6nsBpLA5jwfDJbDsGz0LZIvxAwBjsAaSmjYXtXTc9TqqNV 8qywwl3gCDdkdYHlvSQXgBHKZGE0VbFgWWN7FkwTeiqx1xH6e0v8l3HhE7AQzgf56inOiP OY7qGBjhQXnWlq0WVmrd3eUFnLLp5UV3p/XPLqev5gyriHs0PIyQotGeZXelKQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678032501; a=rsa-sha256; cv=none; b=ybtrQZtVemfPmU4eu9cr7GZ0E39vlujsm8fTcEm6FAzZiP5IPXtiuZVZw0Cj3JxcD71Ab0 ZQjKtCv59p8PE6cH6thCoW6oAKP0UDIw0hPRGw3TDdwiFCUu1xnWszmAAIwQtgidhRpmKi OEm9sUkO6h/PiFP88+21Ouvg4ibIWfyXH7Sym3RtNKFnyNPe5OLhSmGBj08XYgNCkLmv7i UOPIVs19OHIzQ93mHnhubyCBjbWVq1iiA39I2pIA2uFTPIgttn6ceI+n1txbXU5i7oqk/q xDHga8TfAv7Pup7F32KdHSYNDdWF3uVXzLX/sKMEMVGiyigytCU3GNLVs0AGLg== Received: from mail-qk1-f172.google.com (mail-qk1-f172.google.com [209.85.222.172]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PV67n1kGnzg7R; Sun, 5 Mar 2023 16:08:21 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qk1-f172.google.com with SMTP id bk39so2303625qkb.8; Sun, 05 Mar 2023 08:08:21 -0800 (PST) X-Gm-Message-State: AO0yUKWH3K9N4fcRzQPzrknZZkgnkjxw+YpgSPs4MLAnRJoI4tUc3u8t ljyvfKleTNf2XIHVIYxGkTwuuit8m2YeC1gKoA0= X-Google-Smtp-Source: AK7set9c/GZwoXZlCjK/zxAn7PS7DgM0fTybWmuuTjbKOcjep9VCCy6/3DH1nd5Okrj5fRXAkmcvLhHlFjZ36T8MHSA= X-Received: by 2002:ae9:f109:0:b0:742:76a6:8e90 with SMTP id k9-20020ae9f109000000b0074276a68e90mr2166891qkg.14.1678032500615; Sun, 05 Mar 2023 08:08:20 -0800 (PST) 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 References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> In-Reply-To: <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> From: Kyle Evans Date: Sun, 5 Mar 2023 10:08:08 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How do I determine the ABI string used by pkg? To: Ian Smith Cc: Mel Pilgrim , questions@freebsd.org, ports@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-ThisMailContainsUnwantedMimeParts: N On Sat, Mar 4, 2023 at 11:10=E2=80=AFPM Ian Smith wr= ote: > > 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 > > gets you ABI and ALTABI; the former is the amd64 form, the latter x86:64 > Note the more concising spelling of this if you know the names (or need it for, say, scripting): # pkg config ABI # pkg config ALTABI Thanks, Kyle Evans From nobody Sun Mar 5 16:30:22 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 4PV6dV2BwKz3wfcc for ; Sun, 5 Mar 2023 16:30:38 +0000 (UTC) (envelope-from 4250.82.1d4fb0000dee4a8.56f257839a459008da579bd53c82ae6f@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PV6dV1dcmz3DwK for ; Sun, 5 Mar 2023 16:30:38 +0000 (UTC) (envelope-from 4250.82.1d4fb0000dee4a8.56f257839a459008da579bd53c82ae6f@email-od.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1678033838; x=1680625838; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info:subject:to:from:cc:reply-to; bh=5YswxhFLdHIcLh4x5ejCpLc30b0po1QCXEAg7/AEJyc=; b=itmAe6wwD2Z/37zLJ9h+PbgV9S5r+pJWLFpmB+zfmhNAoR4XAVJOe8511GqOpzCoOuw1kYZSphX5deDa1x83fFJfSL6mTLAsKP/do/ZQY1nCdbcIhocx2AJZw9atWBfmnDcB5+iadbVro2W9LhIMuiKlx/Gtai6PhdBWgwMFEGY= X-Thread-Info: NDI1MC4xMi4xZDRmYjAwMDBkZWU0YTgucXVlc3Rpb25zPWZyZWVic2Qub3Jn Received: from r1.us-west-2.aws.in.socketlabs.com (r1.us-west-2.aws.in.socketlabs.com [142.0.190.1]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 5 Mar 2023 11:30:27 -0500 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r1.us-west-2.aws.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Sun, 5 Mar 2023 11:30:24 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1pYrFe-000H9m-F0; Sun, 05 Mar 2023 16:30:22 +0000 Date: Sun, 5 Mar 2023 16:30:22 +0000 From: Steve O'Hara-Smith To: Kyle Evans Cc: Ian Smith , Mel Pilgrim , questions@freebsd.org, ports@freebsd.org Subject: Re: How do I determine the ABI string used by pkg? Message-Id: <20230305163022.b25a783c58368c9aa8c4a416@sohara.org> In-Reply-To: References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) X-Clacks-Overhead: "GNU Terry Pratchett" 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: 8bit X-Rspamd-Queue-Id: 4PV6dV1dcmz3DwK X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Sun, 5 Mar 2023 10:08:08 -0600 Kyle Evans wrote: > # pkg config ABI > # pkg config ALTABI They're case independent so you don't even need to use the shift key. ✓ steve@steve ~ $ pkg config abi FreeBSD:13:amd64 ✓ steve@steve ~ $ pkg config altabi freebsd:13:x86:64 -- Steve O'Hara-Smith From nobody Sun Mar 5 17:36:08 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 4PV85X41m3z3wjfG for ; Sun, 5 Mar 2023 17:36:32 +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 4PV85X0ZjPz3NLy for ; Sun, 5 Mar 2023 17:36:31 +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 3a098174-bb7c-11ed-8a38-00163c1ebd60; Mon, 06 Mar 2023 04:36:14 +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=hrAr5XzciasQ0hjTM9MTwx0l1hNh2picoPBVEcdvsVU=; b=RpQScPSt/BnfwvZyotnRAEycRs px6YsY9eS7bOxoShmxo7KezYTfTN98/mEc4opN23v3GFwgBNv/adc8/WTKe6XkwQUfownPROlY0yl 5uHregcwFrKytsx1dfS8b5fGt7UKyzwgArT1KtGqqlHbrc0op6hX2lnTvuFt54JTvtWlqcjnU7a4R Vui8tlOlTgbT8Q/de9RuGfo2eq8DbLrAPCAX5Cj+TM4DZ6S9QLUE0W+FOrE3J5o/pIAuVD8DfZGok bGnKpE5jSxxXkiAKByKsQ7aC7W21w3pTqe+Gd4gw93AVzs2qnWwlnhxbfDtHx+M4c+S7fghn75irz di1VIwHg==; Received: from [1.144.245.252] (port=47509 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 1pYsHN-001xgK-2r; Mon, 06 Mar 2023 04:36:14 +1100 Date: Mon, 06 Mar 2023 04:36:08 +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: Dan Langille CC: Mel Pilgrim ,questions@freebsd.org From: Ian Smith Message-ID: 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: 4PV85X0ZjPz3NLy 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 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=20 > requirement of the question? No; using 'pkg -N' when no packages are installed, /usr/sbin/pkg won't att= empt 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"; cheers, Ian (ports@ removed from ccs) From nobody Sun Mar 5 17:49:27 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 4PV8Ns3b2Tz3wkDK for ; Sun, 5 Mar 2023 17:49:49 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from h1.out3.mxs.au (h1.out3.mxs.au [110.232.143.237]) (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 4PV8Nr5wDcz3QCJ for ; Sun, 5 Mar 2023 17:49:48 +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 out3.mxs.au (Halon) with ESMTPS id 16c32cb7-bb7e-11ed-8896-00163c573069; Mon, 06 Mar 2023 04:49:34 +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=EOQnxjH9zKHnaGp8CmNHXPdFTw63+MY/K1fuWAo6jzk=; b=wfD7Qm7PH/OIg2PxQlivnfWJnn FjqaE1wubqgYukR8FAeisLv/Xfj6jF7suIoBMbAkmAAz92LZ6KAicLp57qN3HWkAqbsFGj5prMGdG tzeA+6g6NlWOf4TWfILgQ/yJcd3X0d7f+vfiStp6zF/cXYDFMLy8ydhiCkjMtYx4saHwXuqDmnoTU 6nCi+zovgpK3mEIJyD6Sdfe6MtVCur4LvbdY1bPhQRTSzWOR+7YCXmahrRyPGIjWViz2EiaHz+V93 aW7wgd9IVSdLLhE2Ok2rm3N4WvJGr6W3P249tthHWca6qqvcH7AfFDcLVqKSGEqMnwl1eZ8tWrUh4 6T6Ea9oQ==; Received: from [1.144.247.25] (port=47511 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 1pYsUH-001zeN-2H; Mon, 06 Mar 2023 04:49:33 +1100 Date: Mon, 06 Mar 2023 04:49:27 +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: Kyle Evans CC: Mel Pilgrim ,questions@freebsd.org From: Ian Smith Message-ID: 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: 4PV8Nr5wDcz3QCJ 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 3:08:08 am AEDT, Kyle Evans wrote: > On Sat, Mar 4, 2023 at 11:10=E2=80=AFPM Ian Smith > wrote: > > > > 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 > > > > gets you ABI and ALTABI; the former is the amd64 form, the latter > > x86:64 > Note the more concising spelling of this if you know the names (or > need it for, say, scripting): >=20 > # pkg config ABI > # pkg config ALTABI Quite so, but it needs 'pkg -N config' if no packages are installed, or it= 'll attempt to bootstrap pkg*=2Epkg, according to pkg(7)=2E cheers, Ian From nobody Sun Mar 5 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/ 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 From nobody Mon Mar 6 07:56:22 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 4PVW9h32Ssz3wZGY; Mon, 6 Mar 2023 07:56:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PVW9h295Xz3v6g; Mon, 6 Mar 2023 07:56:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678089384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jDnvusl593XlMhae8u6QVLhe2wSsnbWlcNk7XkW4BKI=; b=MeBhTwFon0jrkn6rXkNRLHIMeCSGmsl+D19Gk+nx7Lqa1uSygNY9/vUadLlw+XENDki6YZ cBzeZy35c4evJB2CzkB9PntfNJhYucea/pyEO0A0PkzxzsMqLekc3BJKzEJ4uwGTCt1iq+ mV54L9tghMEFr3R4YCccGjba3aS45MA0+iEtyFiEK/ctl7HLR6kjc5bCOyHkt+I12berKu NYWyAVoW7bIp5Dw8Gulx1VEWhXeRC0SbDZ5IQW3ysQoYD3uUkIgu57PDGxnqlN7F7dLpjA Hl0/Xj4wnJSW3TiXTMPIKluzFNVOPXHFtIYALSelvvXvXzDn3/qSlIjCFtnRDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678089384; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=jDnvusl593XlMhae8u6QVLhe2wSsnbWlcNk7XkW4BKI=; b=uH2oMRWh7KAaFmQe88DaeoacJMQ4tF24zjKuehJtrn1XqBuwGsJJR+mI6eswjBNYgPlgBM gh3dkRTMsl4rlEvMPunqgQg4Ro8jDADYHb8PrHTI2WTtDIUiIX+BRZFxi7+6wbt2X89xZr 8hInTFsqkeu3ysPQEeHofLGZg6hoyA24vv5z+hR3H3DjgeyB2Iz3IAe5U7mzvKPi30s4ap gF2n8vMU7WqXkA+1iystGMUaXPNkutZgSd8PdIgtmfT7fLv7L0FrVMW4+qTOt+WRGSujwA 5NQA5Jp13I1m05OwJj+ldCQpIZr3DHR5X0TKHE4xFGygpc5kOFKy5A3YltDveg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678089384; a=rsa-sha256; cv=none; b=LIRiO7CtlfFsbRuCrTeTaaU3GqZQySM9FJj5K61UR5Hux0V6VIczDxsBsxclUrLPbpeHWa jFAXtofb/5Sih6GyEHaakyFh6HmyiP4AOflG2KpBGLIa3BKHFqQhXNqWljlqjEchmSiyUt 6QhypRKif6xBzbbLZFaECRHrCfkziWDVZsUPlPLaearbMIZ1yD3mNYYHBYlyFAb1HRaF// Y7Ms6iBPKFjMLpXrenH3z+XNXLthbaj5/hEjEMABB67hxQWJV/kiaYZc7bm+dJA/vtvrqA 4dLQToxZSz+PwNAeTZPS1fGgTESPNFb7eaJBQfk2VUqGwi5SjF7RUXtKHE+c4Q== Received: from aniel.nours.eu (nours.eu [176.31.115.77]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: bapt) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PVW9h0LvPz10l2; Mon, 6 Mar 2023 07:56:24 +0000 (UTC) (envelope-from bapt@FreeBSD.org) Received: by aniel.nours.eu (Postfix, from userid 1001) id ED2AC1C0F65; Mon, 6 Mar 2023 08:56:22 +0100 (CET) Date: Mon, 6 Mar 2023 08:56:22 +0100 From: Baptiste Daroussin To: Mel Pilgrim Cc: ports@freebsd.org, questions@freebsd.org Subject: Re: How do I determine the ABI string used by pkg? Message-ID: <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> 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=us-ascii Content-Disposition: inline In-Reply-To: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> X-ThisMailContainsUnwantedMimeParts: N 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 > > I've read through libpkg/pkg_elf.c and I can see how it's reading ELF > headers from well-known files. That's all easy enough to replicate, but I'm > a bit stuck on how it's determining the arch string for x86. Why, what are you trying to do? > > How/When does pkg decide to use FreeBSD:13:amd64 instead of > FreeBSD:13:x86:64? Can I safely assume one or the other? > Internally pkg always and only uses freebsd:13:x86:64 internally and never FreeBSD:13:amd64. the ALTABI allows fine grain matching of ABI and compatibility between arches. ABI is a more user freindly way to read it. Bapt From nobody Mon Mar 6 09:16:06 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 4PVXy104fWz3wfnt for ; Mon, 6 Mar 2023 09:16:25 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Received: from h1.out3.mxs.au (h1.out3.mxs.au [110.232.143.237]) (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 4PVXxy6Vr6z48m0 for ; Mon, 6 Mar 2023 09:16:22 +0000 (UTC) (envelope-from smithi@nimnet.asn.au) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nimnet.asn.au header.s=default header.b=E5drIg2Q; spf=pass (mx1.freebsd.org: domain of smithi@nimnet.asn.au designates 110.232.143.237 as permitted sender) smtp.mailfrom=smithi@nimnet.asn.au; dmarc=none Received: from s121.syd3.hostingplatform.net.au (s121.syd3.hostingplatform.net.au [103.27.34.4]) by out3.mxs.au (Halon) with ESMTPS id 8a4d089a-bbff-11ed-8896-00163c573069; Mon, 06 Mar 2023 20:16:12 +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=Oe8p8rq25mm+Iv+vJkjRm8HClpglhKhihnDTyvtQs2g=; b=E5drIg2QVwa18TCHI1w24q70LQ pYehIl6tuLGodxUATYn23wCN2dhGpdlygVetCLQr/tiJrWZi/LxIs1gaKO9qhc7otaa6HkLZc2vTs Jn4eXFIi9lX/K9Dssx3uXYmS6qZlfh0JLhvAPSdEPlGevgDiZUp3aG5oFno7ty8bhMyIvu1TqTxWQ 2q3kxXrgX9C7pmdpK+ZByYDodj1vebf2ijQ2QDW8VIVib2YYxxrT+Wdmh7TgEIbpct9/NLIHR4aAy qcOqO/jHCCQR1jaIQdEKRw/fjjU89YA/tN2OYufj1oBIxYLacBMD35yn+TColDkPIKan5+K4Pg2Xh DCCCUENQ==; Received: from [1.144.248.127] (port=48891 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 1pZ6x2-0042Sl-1v; Mon, 06 Mar 2023 20:16:12 +1100 Date: Mon, 06 Mar 2023 20:16:06 +1100 User-Agent: K-9 Mail for Android In-Reply-To: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> 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 CC: questions@freebsd.org From: Ian Smith Message-ID: <53C6AE85-CFEF-4998-909D-15CCF929858C@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-Spamd-Result: default: False [-2.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_SHORT(-1.00)[-1.000]; R_DKIM_ALLOW(-0.20)[nimnet.asn.au:s=default]; R_SPF_ALLOW(-0.20)[+ip4:110.232.143.0/24]; MIME_GOOD(-0.10)[text/plain]; FROM_HAS_DN(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; DMARC_NA(0.00)[nimnet.asn.au]; ARC_NA(0.00)[]; HAS_X_GMSV(0.00)[smithi@nimnet.asn.au]; TO_MATCH_ENVRCPT_SOME(0.00)[]; HAS_X_AS(0.00)[smithi@nimnet.asn.au]; ASN(0.00)[asn:45638, ipnet:110.232.140.0/22, country:AU]; MLMMJ_DEST(0.00)[questions@freebsd.org]; RCVD_COUNT_THREE(0.00)[3]; HAS_X_SOURCE(0.00)[]; TO_DN_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; DKIM_TRACE(0.00)[nimnet.asn.au:+]; HAS_X_ANTIABUSE(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; MIME_TRACE(0.00)[0:+]; FROM_EQ_ENVFROM(0.00)[]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PVXxy6Vr6z48m0 X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N 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=20 > to do so when there are no pkgs installed=2E Hi Mel, Then there's an old-school way maybe =2E=2E=2E #!/bin/sh rel=3D`uname -r` # e=2Eg=2E 2=2E0=2E5-RELEASE :) ABI=3D"`uname -s`:${rel%%\=2E*}:`uname -p`" export ABI # or echo $ABI cheers, Ian From nobody Tue Mar 7 05:36:13 2023 X-Original-To: freebsd-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 4PW41d36rtz3wvg8 for ; Tue, 7 Mar 2023 05:36:21 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (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 4PW41Z6bcyz4Bsm for ; Tue, 7 Mar 2023 05:36:18 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b=m+OciyNJ; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th; dmarc=pass (policy=none) header.from=cs.ait.ac.th Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id BBDB289285 for ; Tue, 7 Mar 2023 12:36:14 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :subject:subject:from:from:received:received:received; s= selector1; t=1678167374; x=1679981775; bh=YbH2QZpHCIC+Fg5qmABzF3 bHPh7RWooMZ9t7pxHHLIg=; b=m+OciyNJwgsVktRWRPECZpHoR3BLMi5pJF1aZ5 JLYWvTDR2ZrXwkQscxiB2f3e4kY+eKo7MTcAaHhzZ68V61CS7xLepZIc8FvH1KQs pkOQhaSb4lQFBLfJ9fnNYYYG0JME5zc7nwz2EwCl9x5zSBJLsM6G+WopTRKekjJj pvtbk= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id YLXlehyxTy3R for ; Tue, 7 Mar 2023 12:36:14 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 20F0889283 for ; Tue, 7 Mar 2023 12:36:14 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 3275aDRh015263; Tue, 7 Mar 2023 12:36:13 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: freebsd-questions@freebsd.org Subject: Driver for FT232H Date: Tue, 07 Mar 2023 12:36:13 +0700 Message-ID: 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 X-Spamd-Result: default: False [-4.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-1.000]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; RCVD_TLS_LAST(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ARC_NA(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; MID_RHS_MATCH_FROMTLD(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; TO_DN_NONE(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-Rspamd-Queue-Id: 4PW41Z6bcyz4Bsm X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N Hi, I was watching a video about the adapter FT232H that permits to have GPIO ports on a PC. All documentation I could find is mentioning Python. I am wondering if there is any library that could use such adapter in C? Best regards, Olivier -- From nobody Tue Mar 7 12:01:29 2023 X-Original-To: freebsd-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 4PWDZJ1SB4z3w4Yy for ; Tue, 7 Mar 2023 12:01:44 +0000 (UTC) (envelope-from tomek@cedro.info) Received: from mail-qt1-x834.google.com (mail-qt1-x834.google.com [IPv6:2607:f8b0:4864:20::834]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PWDZH6Wqqz3mw4 for ; Tue, 7 Mar 2023 12:01:43 +0000 (UTC) (envelope-from tomek@cedro.info) Authentication-Results: mx1.freebsd.org; none Received: by mail-qt1-x834.google.com with SMTP id c19so13881051qtn.13 for ; Tue, 07 Mar 2023 04:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cedro.info; s=google; t=1678190503; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=vpplzxo2PwGDsqUaXDkqn48i9DkJn4EIc9BabaXT/AQ=; b=Wl01PAAOambSu0FEEv34TKd7KDc/BHbwOejUvYLEUk3VKTitdk7vteDpt7+gsf52dm gcb6tZYOKSOD2fBejge3gMymoMzaKb66Lc0Zd7EcyNGJGf9o3BhRbj15/uBmFjT8ZfzE ZRIwVDgiBRBAqRdT4yuL99wbkuCtH62YtF074Uz50GSLejf2yiKhzcfqMt6dum94LtoG b0Y16S4aua0QxMVJKc+w1eeOV45QVT4namnKliJIr7r7M1P9ZGfJ1hdb2lSdiBNXVnKM e+gpW+ku4NIaUYhvoZX1aqTgU25h/DnmRBsY3PaUec8NfsKJLvZhX5WCugEMEln4SKHd UdNg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678190503; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=vpplzxo2PwGDsqUaXDkqn48i9DkJn4EIc9BabaXT/AQ=; b=pX4SdSEmKmK/nrrYSKpwcY1lQnfWqjPTZf7IhtJvHEsBUj9XH/Dnqt4znrLpo/krVj /Z3wh6iFW2YiJQdBvCmIX8G9ULJMwhh5bO+dNWcgoq/hvFw4CXYbLNzZ9gFGYlglhbrO QXhZq+ttTDenJvGG7q3P2bhPc4QS2mB3MAloGyrte0cfcaYeIJpFCXeJBG/2BfsS4X23 c89aU8AckrGqSsbX51BzL/D1/mIXf2d8yYdH/mI2kx5bme3DMLxl29fquGwUF6zDLLx/ h+QuHEKWrCXMgSwS4StMmrlgPWPHvvrVYCIGxEwyyQuH9CCU8aI7CCkk2qNErTgTNGb2 Rg/Q== X-Gm-Message-State: AO0yUKXXnNq3wNdXQ9J5SlJepjZoX8Hxe/iHhJd6Ja0hQW9saBhH0PM7 e4ZFSafn+fni9dZOifxUuRwCht7GZQNuCSaca4A= X-Google-Smtp-Source: AK7set8r4SgOTlEZgbAclohMHV5Kev3o7U75rc7ZSfJ5voiiKTmiQ+aN+c/fHp4y535SsrVIr8FtxA== X-Received: by 2002:a05:622a:284:b0:3bf:d6ba:590b with SMTP id z4-20020a05622a028400b003bfd6ba590bmr24033624qtw.65.1678190502757; Tue, 07 Mar 2023 04:01:42 -0800 (PST) Received: from mail-yw1-f170.google.com (mail-yw1-f170.google.com. [209.85.128.170]) by smtp.gmail.com with ESMTPSA id d1-20020ac85ac1000000b003b9e1d3a502sm9626563qtd.54.2023.03.07.04.01.42 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 07 Mar 2023 04:01:42 -0800 (PST) Received: by mail-yw1-f170.google.com with SMTP id 00721157ae682-5384ff97993so240859847b3.2 for ; Tue, 07 Mar 2023 04:01:42 -0800 (PST) X-Received: by 2002:a81:ac59:0:b0:52e:bb3e:15aa with SMTP id z25-20020a81ac59000000b0052ebb3e15aamr8477478ywj.7.1678190501980; Tue, 07 Mar 2023 04:01:41 -0800 (PST) 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 References: In-Reply-To: From: Tomek CEDRO Date: Tue, 7 Mar 2023 13:01:29 +0100 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: Driver for FT232H To: Olivier Cc: freebsd-questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4PWDZH6Wqqz3mw4 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Tue, Mar 7, 2023 at 6:36=E2=80=AFAM Olivier wrote: > Hi, > I was watching a video about the adapter FT232H that permits to have > GPIO ports on a PC. > All documentation I could find is mentioning Python. > I am wondering if there is any library that could use such adapter in C? > Best regards, > Olivier devel/libftdi1 devel/libftdi https://www.ftdichip.com/old2020/Products/ICs/FT2232H.html it can work in "bitbang mode" that resembles parallel port read write, and "mpsse" multi purpose serial engine than can clock in/out some series of bytes so you can build a serial bus adapter (i.e. spi, i2c, etc) that is faster than bitbanging the bus. note voltages on your target and absolute maximum ratings of the chip. note usb latency that limits the possible operations speed. have fun! :-) --=20 CeDeROM, SQ7MHZ, http://www.tomek.cedro.info From nobody Tue Mar 7 17:09:51 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 4PWMPw4pM9z3wP7v; Tue, 7 Mar 2023 17:09:56 +0000 (UTC) (envelope-from dan@langille.org) Received: from out5-smtp.messagingengine.com (out5-smtp.messagingengine.com [66.111.4.29]) (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 4PWMPv4BnLz4MMQ; Tue, 7 Mar 2023 17:09:55 +0000 (UTC) (envelope-from dan@langille.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=langille.org header.s=fm1 header.b=BHUe1qP6; dkim=pass header.d=messagingengine.com header.s=fm1 header.b=WgnAfTKX; spf=pass (mx1.freebsd.org: domain of dan@langille.org designates 66.111.4.29 as permitted sender) smtp.mailfrom=dan@langille.org; dmarc=pass (policy=none) header.from=langille.org Received: from compute2.internal (compute2.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id C80E45C0164; Tue, 7 Mar 2023 12:09:53 -0500 (EST) Received: from mailfrontend1 ([10.202.2.162]) by compute2.internal (MEProxy); Tue, 07 Mar 2023 12:09:53 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=langille.org; h= cc: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= 1678208993; x=1678295393; bh=KoTPnBcLWnz+brM08ZG55yRwZEiSpglyT+c U/0ZHTlU=; b=BHUe1qP66LF1i7d7jIuMble4AV2RxBVLhFe4rIk8hnlo0gXMfpJ kKgBJCdKyHa30zVRXnhQ1IpTGiwD7u62WC+8TRmKq02EXcupzSy88jOvB3AUpVUu fb3Sqa/sz6l34+cFafDS/LAxadW8OsYL54hSQX0W41Crmd2NNeOsWV6oTjlp4/v6 CbrqCr5bccfERhkIaOhXfgxRMZOzBWq/TYYRkrvUXi4o8A4RK0Tb539wpqHdTWwG 362BqQZQDnzOjUuRa8EZ1JFcCPoyFU7JMCFbp/bva1JeTH8UDGUApLsastArU2Rx nQxjjumNkMUqtXTC3bx1Qha4E9zzrzt3Kow== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc: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= 1678208993; x=1678295393; bh=KoTPnBcLWnz+brM08ZG55yRwZEiSpglyT+c U/0ZHTlU=; b=WgnAfTKXhZASX8Dl6TDrEYijyv//hxE0FX+bWmO8CW3w4Jb1wot dw/xOpGy545JfCiUJmNeNFUHQBtRszkETBy3OMzlvpk1tmJvQ98pAO5Pz4v87pjT ICyPXS/b7Chhry/z6QnvFdJGt7uKw3c5DA6byBksWGgIlpoxmubhCHOMmMTZDqDp 8//Op6/dyq3UGHChSV7X2vfBC8Rldhd2kfSShftOtNkZEQnPIgURLPjP47/M0Ya4 19wMm4q4wz+INwhHtzJSGFppn19KqTtccO1D1zy2+3nY8maeWJWbFYxI3tb/IemV RFidwpeIM9Dt1P+0gS9A7vpa0XBFJFVWC7w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvhedrvddutddgleduucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefuvfevfhfhkffffgggjggtgfesth ejredttdefjeenucfhrhhomhepffgrnhcunfgrnhhgihhllhgvuceouggrnheslhgrnhhg ihhllhgvrdhorhhgqeenucggtffrrghtthgvrhhnpeeggeetteejveeftddtudelvdette evudegvdduhfdtueetvdefieeifefhveeiheenucffohhmrghinheplhgrnhhgihhllhgv rdhorhhgnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilhhfrhhomh epuggrnheslhgrnhhgihhllhgvrdhorhhg X-ME-Proxy: Feedback-ID: ifbf9424e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 7 Mar 2023 12:09:53 -0500 (EST) Subject: Re: How do I determine the ABI string used by pkg? To: Mel Pilgrim Cc: ports@freebsd.org, questions@freebsd.org References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> From: Dan Langille Message-ID: <257260d9-1812-3ce5-5d9a-907e2b1ec13e@langille.org> Date: Tue, 7 Mar 2023 12:09:51 -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: <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> 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]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-1.000]; DWL_DNSWL_LOW(-1.00)[messagingengine.com:dkim]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; DMARC_POLICY_ALLOW(-0.50)[langille.org,none]; R_SPF_ALLOW(-0.20)[+ip4:66.111.4.29]; 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)[66.111.4.29:from]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:19151, ipnet:66.111.4.0/24, country:US]; RCVD_TLS_LAST(0.00)[]; MLMMJ_DEST(0.00)[ports@freebsd.org,questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROM(0.00)[]; FREEFALL_USER(0.00)[dan]; ARC_NA(0.00)[]; DKIM_TRACE(0.00)[langille.org:+,messagingengine.com:+]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_COUNT_THREE(0.00)[4]; RCVD_VIA_SMTP_AUTH(0.00)[] X-Rspamd-Queue-Id: 4PWMPv4BnLz4MMQ X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N 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 Langille dan@langille.org : https://langille.org/ From nobody Tue Mar 7 20:03:44 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 4PWRGw3vrvz3wZVR for ; Tue, 7 Mar 2023 20:04:08 +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 4PWRGw0lBvz3lBM for ; Tue, 7 Mar 2023 20:04: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 out2.mxs.au (Halon) with ESMTPS id 2e4e2f87-bd23-11ed-9cc9-00163c1ebd60; Wed, 08 Mar 2023 07:03:51 +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=2NOhSn1F27aZeN6InxmDlIbIB8L4QM6n9LKSS6d/iWg=; b=iMfEk0UZxkM2xeJmrA0ecGw53U XzjbabLmbTIsx2lj+qPuRNGLe2eTsXo3kxUWrmAIMU7QKbbFIIG8I6Sa8F89XD9khH++l1KEXtfs8 8stjleJOp8BmaofxhFx+e8zn3hnItAMFsZKuAc4sA8iscWuOa7WHYW8mbsfjRsJ4MbmILPa1NBEZg Q9a2ijetc2S895Yi5OPdhK/ltgWTHAi3XBETNC7p8pmMF5WcFUzoqXUjtHzsAd0X5t6KmGVVIQK4n Jbd7A5Oe9s1sGxMAGXQDA+u4pxS5u0V/9z6Jbs53oIVT5n8xSTYcQX5IbSpO/tvcBb3qfJNAXU5j9 boJFGmkg==; Received: from [1.144.248.118] (port=53481 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 1pZdXL-002swt-12; Wed, 08 Mar 2023 07:03:51 +1100 Date: Wed, 08 Mar 2023 07:03:44 +1100 User-Agent: K-9 Mail for Android In-Reply-To: <257260d9-1812-3ce5-5d9a-907e2b1ec13e@langille.org> References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> <257260d9-1812-3ce5-5d9a-907e2b1ec13e@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 ,Mel Pilgrim CC: questions@freebsd.org From: Ian Smith Message-ID: <61D4795C-9A44-4956-9D95-2114D1C9F5AD@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: 4PWRGw0lBvz3lBM 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 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=2E > > pkg config ABI > > pkg config ALTABI > When run in a freshly-created jail: >=20 > [r730-01 dvl ~] % sudo jexec empty_tester > root@:/ # pkg config ABI > FreeBSD:13:amd64 > root@:/ # pkg config ALTABI > freebsd:13:x86:64 > root@:/ # >=20 > Mel: I think this is what you wanted to get? Dan, could you confirm whether the first one also installed pkg(8), so sub= sequent 'pkg info' would show (only) pkg? If so, would 'pkg -N config ABI' have done the same? Or failed? Or shown= the ABI? That is - given that pkg(7) must know $ABI to resolve url: in Whatever=2Ec= onf to install pkg(8) - is it necessary to bootstrap pkg to determine ABI v= ia pkg(7)? Thanks, Ian From nobody Tue Mar 7 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 From nobody Wed Mar 8 00:04:22 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 4PWXcH0JwRz3wqL6; Wed, 8 Mar 2023 00:04:31 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from echo.brtsvcs.net (echo.brtsvcs.net [208.111.40.118]) (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 4PWXcG5GwGz4HLx; Wed, 8 Mar 2023 00:04:30 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Authentication-Results: mx1.freebsd.org; none Received: from chombo.houseloki.net (65-100-43-2.dia.static.qwest.net [65.100.43.2]) by echo.brtsvcs.net (Postfix) with ESMTPS id 9B01E38D09; Wed, 8 Mar 2023 00:04:22 +0000 (UTC) Received: from [10.26.25.100] (ivy.pas.ds.pilgrimaccounting.com [10.26.25.100]) by chombo.houseloki.net (Postfix) with ESMTPSA id 4DB97287AD; Tue, 7 Mar 2023 16:04:22 -0800 (PST) Subject: Re: How do I determine the ABI string used by pkg? To: Dan Langille Cc: ports@freebsd.org, questions@freebsd.org References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <20230306075622.xfzs33fmflc2vmtb@aniel.nours.eu> <257260d9-1812-3ce5-5d9a-907e2b1ec13e@langille.org> From: Mel Pilgrim Message-ID: Date: Tue, 7 Mar 2023 16:04:22 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 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: <257260d9-1812-3ce5-5d9a-907e2b1ec13e@langille.org> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4PWXcG5GwGz4HLx X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:36236, ipnet:208.111.40.0/24, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On 2023-03-07 9:09, 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? Your freshly-created jail has pkg installed. `pkg config ABI` only works if pkg has been bootstrapped. Getting the ABI string with just the /usr/sbin/pkg stub available is another thing entirely, even though that stub program necessarily has the code to determine the ABI string. I ended up writing a small program that replicates the ELF-divining logic in pkg and prints the value of ABI. IMO the stub should have the `pkg config ABI` functionality added to it, but I'm probably alone in thinking that would be useful. From nobody Wed Mar 8 00:35:51 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 4PWYJT2X6pz3wrxX for ; Wed, 8 Mar 2023 00:35:53 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Received: from echo.brtsvcs.net (echo.brtsvcs.net [208.111.40.118]) (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 4PWYJS52Vbz4MV7 for ; Wed, 8 Mar 2023 00:35:52 +0000 (UTC) (envelope-from list_freebsd@bluerosetech.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of list_freebsd@bluerosetech.com designates 208.111.40.118 as permitted sender) smtp.mailfrom=list_freebsd@bluerosetech.com; dmarc=none Received: from chombo.houseloki.net (65-100-43-2.dia.static.qwest.net [65.100.43.2]) by echo.brtsvcs.net (Postfix) with ESMTPS id 7B8DD38D01; Wed, 8 Mar 2023 00:35:51 +0000 (UTC) Received: from [10.26.25.100] (ivy.pas.ds.pilgrimaccounting.com [10.26.25.100]) by chombo.houseloki.net (Postfix) with ESMTPSA id 20CDE2D47B; Tue, 7 Mar 2023 16:35:51 -0800 (PST) Subject: Re: How do I determine the ABI string used by pkg? To: Ian Smith , Dan Langille Cc: questions@freebsd.org References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> From: Mel Pilgrim Message-ID: Date: Tue, 7 Mar 2023 16:35:51 -0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.12.0 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-Language: en-US Content-Transfer-Encoding: 7bit X-Spamd-Result: default: False [-1.73 / 15.00]; SUBJECT_ENDS_QUESTION(1.00)[]; NEURAL_HAM_LONG(-1.00)[-0.999]; NEURAL_HAM_MEDIUM(-0.93)[-0.929]; NEURAL_HAM_SHORT(-0.50)[-0.501]; R_SPF_ALLOW(-0.20)[+mx]; MIME_GOOD(-0.10)[text/plain]; RCVD_VIA_SMTP_AUTH(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; R_DKIM_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; ASN(0.00)[asn:36236, ipnet:208.111.40.0/24, country:US]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; DMARC_NA(0.00)[bluerosetech.com]; MID_RHS_MATCH_FROM(0.00)[]; ARC_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; FROM_HAS_DN(0.00)[]; TO_DN_SOME(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; RCVD_TLS_ALL(0.00)[] X-Rspamd-Queue-Id: 4PWYJS52Vbz4MV7 X-Spamd-Bar: - X-ThisMailContainsUnwantedMimeParts: N 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: > > > > > 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"; > > cheers, Ian (ports@ removed from ccs) On a fresh jail with just base installed: # which pkg /usr/sbin/pkg # 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]: # pkg -N pkg: pkg is not installed # pkg -N -vv pkg: pkg is not installed The functionality you, Dan, et al are quoting is only available after bootstraping pkg. Yes, once it's bootstrapped getting the ABI string is easy. Maybe "when there are no pkgs installed" wasn't clear? From nobody Wed Mar 8 04:07:02 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 4PWf0L29y7z3x4t8 for ; Wed, 8 Mar 2023 04:07:14 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: from smtp.freebsd.org (smtp.freebsd.org [96.47.72.83]) (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-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PWf0L1lsMz3DZf for ; Wed, 8 Mar 2023 04:07:14 +0000 (UTC) (envelope-from kevans@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678248434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J3ActvJBx2mn2VnSdUyI86Sudsbs4VJjhTfA5EsLf7c=; b=O8rk64jaetCBgZbHITGSvqcULdYx04m8Cbk9mUyPYqiRNVHefAJO+p0rmSzwptj6DDkTeC XvOP9w4ZKkjfUOpgzasHrt5gsZ4+lUazR95OO2/xh/UCb1DbiKe4MkmlhkKencdp7bJJvK 5jUR7rLEUxAMhtq2OIzgnaR/KyUdfE71CuLjPX/soCiR54y47gJQfe5mEu7b+IpCXbeGHj 8en9Wl4b3584hIkb5lHzIM02yZvKz0SpjViHfjImJlLYGFQgMUvLd3+SKtMeAEvdHneajn AsoJ2r36NAiUGovDEV+2VCyBY7GYCQIsPhWN+cIMRcTnXA3FLD7amqolMUHpDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1678248434; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=J3ActvJBx2mn2VnSdUyI86Sudsbs4VJjhTfA5EsLf7c=; b=Fr5VaiyQrGs/1fnmMfiTl2Eav6Gp7oqDoxove3cDsF98VM8kCPu5CclSzzF8/AzEiPDIRh GRXrUSN07O1TodjEsk5bwzHsc7yGSxrI1Hl08ichruoFfMd5s403TetnmA3Xhg1TlzwXCg 2pRXqCjCTF01SSlygudQwz+EZhifGemJ16xqWA5ooKBid7u5kLs5czYFBGqEIYUm5F58hY wc9MtPocXnz++LdQcBHWjxBBSWXoLsljX4Iv3zUCZ11KUwD5HTJ2Lb6JmuNButsbukQ5ok bDXczS0XES5S3HHdf91lIrAufPXbfmPlkkx9hnQjFi/Ucnefa0b3TUq3Ak5GTg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1678248434; a=rsa-sha256; cv=none; b=jU7Sj2m96joeTGZ4At089sGkRrlAH2bqDfAXVvEVeY2xEcX6jfcPVM/1MmRxAe8vwNRzz2 S+LC/H3V/0X0k9EMrprRvkf/ojBVeSWRgl4VYALJJm+u3sxOQTrk6/RHIyqG+Zb39lImU6 /DuEVNbP/M7YgL0sQ//G+x6/AmCOpnRHKa9JSO6DZmgGl4X1mmCg4uDuhGhDi8PaQwo0Pw uUGM9Sj5hQxGozWcbc+nHrFXE/kBimMhAfkcaqhO74Hs3YNcDp9l5gsXMljRhnjqvxVrOg AUTum7V9Zbpis1zFrkNvDx+Q/4fhLLJBFAfwp3iyMAVnNJqKGJj+WP5rCLTPbA== Received: from mail-qt1-f175.google.com (mail-qt1-f175.google.com [209.85.160.175]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) (Authenticated sender: kevans) by smtp.freebsd.org (Postfix) with ESMTPSA id 4PWf0L0ZJGzsqY for ; Wed, 8 Mar 2023 04:07:14 +0000 (UTC) (envelope-from kevans@freebsd.org) Received: by mail-qt1-f175.google.com with SMTP id c3so16960687qtc.8 for ; Tue, 07 Mar 2023 20:07:14 -0800 (PST) X-Gm-Message-State: AO0yUKUBWLwr9edID2enIbb1+i6ozLFJYNHViOZe9WeWvozHU+07AwRO z9v8v+3cfkZv0dCTpzcXpd9nbd2RCpKZeDc2N0A= X-Google-Smtp-Source: AK7set8GiqBOF/1cVuWlhT51eoR+xf09AZRMKA1crNXey/GrJBrr/d8Xq64xfRss/V+kiMSMIhGIORQYRv9rKmwdPTU= X-Received: by 2002:aed:2785:0:b0:3bd:1a0b:8ac4 with SMTP id a5-20020aed2785000000b003bd1a0b8ac4mr4856732qtd.1.1678248433463; Tue, 07 Mar 2023 20:07:13 -0800 (PST) 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 References: <32d2e376-3f89-0588-316d-801d4cbf0b44@bluerosetech.com> <4DF870F0-89D5-45AA-B66C-93D2D1C0DD5E@nimnet.asn.au> In-Reply-To: From: Kyle Evans Date: Tue, 7 Mar 2023 22:07:02 -0600 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: How do I determine the ABI string used by pkg? To: Mel Pilgrim Cc: Ian Smith , Dan Langille , questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-ThisMailContainsUnwantedMimeParts: N On Tue, Mar 7, 2023 at 6:35=E2=80=AFPM 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: > > > > > > > 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 =3D "FreeBSD:12:amd64"; > > ALTABI =3D "FreeBSD:12:x86:64"; > > > > cheers, Ian (ports@ removed from ccs) > > On a fresh jail with just base installed: > > # which pkg > /usr/sbin/pkg > # 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]: > # pkg -N > pkg: pkg is not installed > # pkg -N -vv > pkg: pkg is not installed > > The functionality you, Dan, et al are quoting is only available after > bootstraping pkg. Yes, once it's bootstrapped getting the ABI string is > easy. > > Maybe "when there are no pkgs installed" wasn't clear? > Pluralizing it is what got me; I tend to think of 'pkgs' as short-hand for 'packages', a.k.a what you're installing with pkg, rather than pkg itself. From nobody Wed Mar 8 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 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 ; 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 ; 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 ) 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 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 CC: questions@freebsd.org From: Ian Smith 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 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 From nobody Thu Mar 9 07:43:28 2023 X-Original-To: freebsd-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 4PXLlT3Kf1z3wKMf for ; Thu, 9 Mar 2023 07:43:33 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXLlS2jQ1z4Chl for ; Thu, 9 Mar 2023 07:43:32 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; dkim=none; spf=pass (mx1.freebsd.org: domain of guru@unixarea.de designates 178.254.4.101 as permitted sender) smtp.mailfrom=guru@unixarea.de; dmarc=none Received: from [188.174.53.180] (helo=localhost.unixarea.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paAvx-00068L-QU for freebsd-questions@freebsd.org; Thu, 09 Mar 2023 08:43:29 +0100 Received: from localhost.my.domain (localhost [127.0.0.1]) by localhost.unixarea.de (8.16.1/8.14.9) with ESMTPS id 3297hTbc001513 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 9 Mar 2023 08:43:29 +0100 (CET) (envelope-from guru@unixarea.de) Received: (from guru@localhost) by localhost.my.domain (8.16.1/8.14.9/Submit) id 3297hSlq001512 for freebsd-questions@freebsd.org; Thu, 9 Mar 2023 08:43:28 +0100 (CET) (envelope-from guru@unixarea.de) X-Authentication-Warning: localhost.my.domain: guru set sender to guru@unixarea.de using -f Date: Thu, 9 Mar 2023 08:43:28 +0100 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: problem while moving HOME from FreeBSD to MacOS with bsdtar Message-ID: Reply-To: Matthias Apitz Mail-Followup-To: freebsd-questions@freebsd.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-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 13.0-CURRENT r368166 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 188.174.53.180 X-Spamd-Result: default: False [-2.59 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.79)[-0.790]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+ip4:178.254.4.101]; MIME_GOOD(-0.10)[text/plain]; DMARC_NA(0.00)[unixarea.de]; FROM_HAS_DN(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; HAS_XAW(0.00)[]; HAS_XOIP(0.00)[]; RCVD_VIA_SMTP_AUTH(0.00)[]; RWL_MAILSPIKE_POSSIBLE(0.00)[178.254.4.101:from]; TO_DN_NONE(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; RCVD_COUNT_THREE(0.00)[4]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; HAS_REPLYTO(0.00)[guru@unixarea.de] X-Rspamd-Queue-Id: 4PXLlS2jQ1z4Chl X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N I have had to move in my office from a FreeBSD in a VM to a Mac. To not loose my HOME I created a tar archive on FreeBSD and restored it with tar into the Mac (all details about versions see below). The tar archive contains a lot of dirs and file (~30.000) and one dir is guru/Mail where a mbox file guru/Mail/purism exists. It also exists a plain file guru/mail (note: the dir is with capital M). This leads on extract to the problem that guru/Mail is also created as a plain file, not as a directory and afterwards guru/Mail/purism can't created in it. Comments (apart of: don't use Mac)? Note also: Both system use bsdtar :-) matthias FreeBSD: $ uname -a FreeBSD c720-r368166 13.0-CURRENT FreeBSD 13.0-CURRENT #23 r368166M: Thu Dec 17 13:12:37 CET 2020 guru@c720-r368166:/usr/obj/usr/src/amd64.amd64/sys/GENERIC amd64 Mac: $ uname -a Darwin APITZM-1MBPOH 21.6.0 Darwin Kernel Version 21.6.0: Mon Aug 22 20:20:07 PDT 2022; root:xnu-8020.140.49~2/RELEASE_ARM64_T8110 arm64 $ tar tzvf guru-vm-r368166-last.tar.gz | grep -i guru/Mail drwx------ 0 guru wheel 0 27 Sep 2021 guru/Mail/ -rw-r--r-- 0 guru wheel 1013 8 Aug 2013 guru/mailKelpe.txt -rw-r--r-- 0 guru wheel 1508 24 Aug 2017 guru/mails.txt -rw-r--r-- 0 guru wheel 4016 9 Nov 12:36 guru/mail -rw------- 0 guru wheel 3043983 24 Sep 2021 guru/Mail/purism $ tar xzf guru-vm-r368166-last.tar.gz guru/Mail/purism: Could not stat guru/Mail/purism tar: Error exit delayed from previous errors. $ ls -ld guru/Mail guru/mail -rw-r--r-- 1 apitzm xxxx\Domain Users 4016 9 Nov 12:36 guru/Mail -rw-r--r-- 1 apitzm xxxx\Domain Users 4016 9 Nov 12:36 guru/mail $ tar tzvf guru-vm-r368166-last.tar.gz | cat -n | grep -i guru/mail 227 drwx------ 0 guru wheel 0 27 Sep 2021 guru/Mail/ 496 -rw-r--r-- 0 guru wheel 1013 8 Aug 2013 guru/mailKelpe.txt 497 -rw-r--r-- 0 guru wheel 1508 24 Aug 2017 guru/mails.txt 1065 -rw-r--r-- 0 guru wheel 4016 9 Nov 12:36 guru/mail 3583 -rw------- 0 guru wheel 3043983 24 Sep 2021 guru/Mail/purism FreeBSD: $ tar --version bsdtar 3.4.3 - libarchive 3.4.3 zlib/1.2.11 liblzma/5.2.5 bz2lib/1.0.8 libzstd/1.4.5 Mac: $ tar --version bsdtar 3.5.1 - libarchive 3.5.1 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub From nobody Thu Mar 9 07:59:58 2023 X-Original-To: freebsd-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 4PXM6c3rf9z3wL4D for ; Thu, 9 Mar 2023 08:00:08 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (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 4PXM6Z0DSZz4Fxh for ; Thu, 9 Mar 2023 08:00:06 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b=X+Cpk1HW; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th; dmarc=pass (policy=none) header.from=cs.ait.ac.th Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id D1F0F89283; Thu, 9 Mar 2023 15:00:01 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1678348801; x=1680163202; bh=H0tQaMowW SyyTGA9XXk+jQAwu7QQ8ZIoSOrV0MLSmPA=; b=X+Cpk1HW1f3wTGQhZwT/cnrF2 004zE/Gc9vzm+ci/Kiv09s4/wG1WMcqPqhzErAL014zD/EotKyCGJeYwhJN57q0S ZUKGucTYONPt2KDX577qespUSysJ7ymVyl/oRmFLc1vqpG2kowLR3eawhY8uVNiQ Nwi3JQx4t45PeY8cvw= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id tvAjsHbsV7kX; Thu, 9 Mar 2023 15:00:01 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 1879689281; Thu, 9 Mar 2023 15:00:00 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 3297xwCU065272; Thu, 9 Mar 2023 14:59:58 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: Matthias Apitz Cc: freebsd-questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar In-Reply-To: (message from Matthias Apitz on Thu, 9 Mar 2023 08:43:28 +0100) Date: Thu, 09 Mar 2023 14:59:58 +0700 Message-ID: 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 X-Spamd-Result: default: False [-4.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.999]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; R_SPF_ALLOW(-0.20)[+mx]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; MIME_GOOD(-0.10)[text/plain]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; RCPT_COUNT_TWO(0.00)[2]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-Rspamd-Queue-Id: 4PXM6Z0DSZz4Fxh X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N Hi, > with tar into the Mac (all details about versions see below). The tar > archive contains a lot of dirs and file (~30.000) and one dir is > guru/Mail where a mbox file guru/Mail/purism exists. It also exists a > plain file guru/mail (note: the dir is with capital M). This leads on > extract to the problem that guru/Mail is also created as a plain file, > not as a directory and afterwards guru/Mail/purism can't created in it. I have used tar to save/restore/move a lot of user home directory and never seen anything similar. I have little to no experience wit MacOS, are the filenames case insensitive on Mac? Have you tried installing gnutar on Mac? Also, you cound try with a small archive that would only contain one directory and one file, both with the same name (except the capital). Best regards, Olivier From nobody Thu Mar 9 08:18:35 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 4PXMX643tbz3wMK9 for ; Thu, 9 Mar 2023 08:18:46 +0000 (UTC) (envelope-from 4250.82.1d4fb0001966269.968a50529d38fcd452350b9d81fd1224@email-od.com) Received: from s1-b0c6.socketlabs.email-od.com (s1-b0c6.socketlabs.email-od.com [142.0.176.198]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXMX62N7Dz4JJG for ; Thu, 9 Mar 2023 08:18:46 +0000 (UTC) (envelope-from 4250.82.1d4fb0001966269.968a50529d38fcd452350b9d81fd1224@email-od.com) Authentication-Results: mx1.freebsd.org; none DKIM-Signature: v=1; a=rsa-sha256; d=email-od.com;i=@email-od.com;s=dkim; c=relaxed/relaxed; q=dns/txt; t=1678349926; x=1680941926; h=content-transfer-encoding:content-type:mime-version:references:in-reply-to:message-id:subject:cc:to:from:date:x-thread-info:subject:to:from:cc:reply-to; bh=hTZgMgTiq6X3RnOqPI/t9tZksOayX3jfnlJklIIVeRk=; b=mn8Bb5yH8DDTRTlemjm3h2cczlJiJllOpoL8GQjEuF6RwHWL4EJjCXv2WmD1e/4ApSxMd8UwrFrqiFCAFjYaNdoxaSKj1ivgHdxQZ35qG63fWIxu0nkYiwNZXwEc1rXG9wGBMSADTJrF6l/2NreGYW8MoDfBlXq3ZazK4bNbJuM= X-Thread-Info: NDI1MC4xMi4xZDRmYjAwMDE5NjYyNjkucXVlc3Rpb25zPWZyZWVic2Qub3Jn Received: from r2.h.in.socketlabs.com (r2.h.in.socketlabs.com [142.0.180.12]) by mxsg2.email-od.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Thu, 9 Mar 2023 03:18:37 -0500 Received: from smtp.lan.sohara.org (EMTPY [185.202.17.215]) by r2.h.in.socketlabs.com with ESMTP(version=Tls12 cipher=Aes256 bits=256); Thu, 9 Mar 2023 03:18:36 -0500 Received: from [192.168.63.1] (helo=steve.lan.sohara.org) by smtp.lan.sohara.org with smtp (Exim 4.95 (FreeBSD)) (envelope-from ) id 1paBTv-000BQD-BG; Thu, 09 Mar 2023 08:18:35 +0000 Date: Thu, 9 Mar 2023 08:18:35 +0000 From: Steve O'Hara-Smith To: questions@freebsd.org Cc: Matthias Apitz Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar Message-Id: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> In-Reply-To: References: X-Mailer: Sylpheed 3.7.0 (GTK+ 2.24.33; amd64-portbld-freebsd13.0) X-Clacks-Overhead: "GNU Terry Pratchett" 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=US-ASCII Content-Transfer-Encoding: 7bit X-Rspamd-Queue-Id: 4PXMX62N7Dz4JJG X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7381, ipnet:142.0.176.0/22, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, 9 Mar 2023 08:43:28 +0100 Matthias Apitz wrote: > I have had to move in my office from a FreeBSD in a VM to a Mac. > To not loose my HOME I created a tar archive on FreeBSD and restored it > with tar into the Mac (all details about versions see below). The tar > archive contains a lot of dirs and file (~30.000) and one dir is > guru/Mail where a mbox file guru/Mail/purism exists. It also exists a > plain file guru/mail (note: the dir is with capital M). This leads on You seem to have the default case insensitive filesystem setup on MacOS, you can change it - more details here: https://support.apple.com/en-ie/guide/disk-utility/dsku19ed921c/mac -- Steve O'Hara-Smith From nobody Thu Mar 9 08:41:25 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 4PXN2Q635kz3wNw4 for ; Thu, 9 Mar 2023 08:41:34 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXN2Q5T8Pz4N8v for ; Thu, 9 Mar 2023 08:41:34 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; none Received: from [178.254.11.41] (helo=sh4-5.1blu.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paBq9-0001Ic-BM; Thu, 09 Mar 2023 09:41:33 +0100 Date: Thu, 9 Mar 2023 09:41:25 +0100 From: Matthias Apitz To: Steve O'Hara-Smith Cc: questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar Message-ID: <20230309084125.GA9@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 178.254.11.41 X-Rspamd-Queue-Id: 4PXN2Q5T8Pz4N8v X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N El día Donnerstag, März 09, 2023 a las 08:18:35 +0000, Steve O'Hara-Smith escribió: > On Thu, 9 Mar 2023 08:43:28 +0100 > Matthias Apitz wrote: > > > I have had to move in my office from a FreeBSD in a VM to a Mac. > > To not loose my HOME I created a tar archive on FreeBSD and restored it > > with tar into the Mac (all details about versions see below). The tar > > archive contains a lot of dirs and file (~30.000) and one dir is > > guru/Mail where a mbox file guru/Mail/purism exists. It also exists a > > plain file guru/mail (note: the dir is with capital M). This leads on > > You seem to have the default case insensitive filesystem setup on > MacOS, you can change it - more details here: > > https://support.apple.com/en-ie/guide/disk-utility/dsku19ed921c/mac I don't think, that this is the case: APITZM-1MBPOH:~ apitzm$ touch Homework HOMEWORK APITZM-1MBPOH:~ apitzm$ ls -l Homework HOMEWORK -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 Mär 09:37 HOMEWORK -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 Mär 09:37 Homework Note also in my originam mail that both names exist: APITZM-1MBPOH:~ apitzm$ ls -ld guru/Mail guru/mail -rw-r--r-- 1 apitzm OCLC\Domain Users 4016 9 Nov 12:36 guru/Mail -rw-r--r-- 1 apitzm OCLC\Domain Users 4016 9 Nov 12:36 guru/mail but that guru/Mail was created as a plain file, why it is in the tar archive a directory. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub From nobody Thu Mar 9 08:51:39 2023 X-Original-To: freebsd-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 4PXNG8088Kz3wP3X for ; Thu, 9 Mar 2023 08:51:44 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXNG76lTQz4QSv for ; Thu, 9 Mar 2023 08:51:43 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; none Received: from [178.254.11.41] (helo=sh4-5.1blu.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paBzw-0001LF-Ox; Thu, 09 Mar 2023 09:51:40 +0100 Date: Thu, 9 Mar 2023 09:51:39 +0100 From: Matthias Apitz To: Olivier Cc: freebsd-questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar Message-ID: <20230309085139.GB9@sh4-5.1blu.de> Reply-To: Matthias Apitz Mail-Followup-To: Olivier , freebsd-questions@freebsd.org References: 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 178.254.11.41 X-Rspamd-Queue-Id: 4PXNG76lTQz4QSv X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N gnutar show the same problem with the directory guru/Mail created as a plain file, why it is a directory in the archive: $ gtar xzf ../guru-vm-r368166-last.tar.gz gtar: guru/Mail/purism: Cannot open: Not a directory gtar: Exiting with failure status due to previous errors $ ls -ld guru/Mail -rw-r--r-- 1 apitzm xxxx\Domain Users 4016 9 Nov 12:36 guru/Mail $ gtar --version tar (GNU tar) 1.34 This means that the problem is within the created archive. I have at home an identical FreeBSD and will create a small example... matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub From nobody Thu Mar 9 09:34:11 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 4PXPCD6c0tz3wS2N for ; Thu, 9 Mar 2023 09:34:16 +0000 (UTC) (envelope-from pho@FreeBSD.org) Received: from kaskal.pair.com (kaskal.pair.com [209.68.5.173]) (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 4PXPCD4nX0z4V89 for ; Thu, 9 Mar 2023 09:34:16 +0000 (UTC) (envelope-from pho@FreeBSD.org) Authentication-Results: mx1.freebsd.org; none Received: from kaskal.pair.com (localhost [127.0.0.1]) by kaskal.pair.com (Postfix) with ESMTP id 3E5D0D6576E; Thu, 9 Mar 2023 04:34:15 -0500 (EST) Received: from Peters-Air (unknown [94.147.82.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by kaskal.pair.com (Postfix) with ESMTPSA id 79B5CD8D1FC; Thu, 9 Mar 2023 04:34:14 -0500 (EST) Date: Thu, 9 Mar 2023 10:34:11 +0100 From: Peter Holm To: Matthias Apitz Cc: Steve O'Hara-Smith , questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar Message-ID: References: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> <20230309084125.GA9@sh4-5.1blu.de> 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=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230309084125.GA9@sh4-5.1blu.de> X-Scanned-By: mailmunge 3.11 on 209.68.5.173 X-Rspamd-Queue-Id: 4PXPCD4nX0z4V89 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:7859, ipnet:209.68.0.0/18, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Mar 09, 2023 at 09:41:25AM +0100, Matthias Apitz wrote: > El día Donnerstag, März 09, 2023 a las 08:18:35 +0000, Steve O'Hara-Smith escribió: > > > On Thu, 9 Mar 2023 08:43:28 +0100 > > Matthias Apitz wrote: > > > > > I have had to move in my office from a FreeBSD in a VM to a Mac. > > > To not loose my HOME I created a tar archive on FreeBSD and restored it > > > with tar into the Mac (all details about versions see below). The tar > > > archive contains a lot of dirs and file (~30.000) and one dir is > > > guru/Mail where a mbox file guru/Mail/purism exists. It also exists a > > > plain file guru/mail (note: the dir is with capital M). This leads on > > > > You seem to have the default case insensitive filesystem setup on > > MacOS, you can change it - more details here: > > > > https://support.apple.com/en-ie/guide/disk-utility/dsku19ed921c/mac > > I don't think, that this is the case: > > APITZM-1MBPOH:~ apitzm$ touch Homework HOMEWORK > APITZM-1MBPOH:~ apitzm$ ls -l Homework HOMEWORK > -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 Mär 09:37 HOMEWORK > -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 Mär 09:37 Homework > > Note also in my originam mail that both names exist: > > APITZM-1MBPOH:~ apitzm$ ls -ld guru/Mail guru/mail > -rw-r--r-- 1 apitzm OCLC\Domain Users 4016 9 Nov 12:36 guru/Mail > -rw-r--r-- 1 apitzm OCLC\Domain Users 4016 9 Nov 12:36 guru/mail > > but that guru/Mail was created as a plain file, why it is in the tar > archive a directory. > > matthias > > -- > Matthias Apitz, ??? guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub $ touch Homework HOMEWORK $ ls -li | grep -i homework 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 Homework $ ls -l homework HOMEWORK -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 HOMEWORK -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 homework $ ls -li homework HOMEWORK 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 HOMEWORK 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 homework $ - Peter From nobody Thu Mar 9 09:51:11 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 4PXPZt21Jfz3wSds for ; Thu, 9 Mar 2023 09:51:18 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (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 4PXPZs2XgVz4YnX; Thu, 9 Mar 2023 09:51:17 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b=Q3dAMm8R; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th; dmarc=pass (policy=none) header.from=cs.ait.ac.th Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 0A8CC89285; Thu, 9 Mar 2023 16:51:13 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1678355473; x=1680169874; bh=/bSQQgQMG fAdJFRGJFoaSU1ae+XGBBLgDVzzXh/FYxI=; b=Q3dAMm8RDiTaVvQcRWyNXujrE tNSsxeu7UAlnyG/WD7bGT2YfrNyWTsV1iaMfidU6kgLG/iYKosfz5oH8t4CZ/5OU ddrc4kU8IZ+RBK3cfDKWOwAysGCVMIiRdXdD7CKl1K+ZWJPYZb6aE0v/LU1VnG81 RXFQHrSXWuk1qAmsAQ= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id 2xm-CcbG8y7X; Thu, 9 Mar 2023 16:51:13 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 4FA6789283; Thu, 9 Mar 2023 16:51:13 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 3299pBns070801; Thu, 9 Mar 2023 16:51:11 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: Peter Holm Cc: guru@unixarea.de, steve@sohara.org, questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar In-Reply-To: (message from Peter Holm on Thu, 9 Mar 2023 10:34:11 +0100) Date: Thu, 09 Mar 2023 16:51:11 +0700 Message-ID: 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 X-Spamd-Result: default: False [-4.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; MIME_GOOD(-0.10)[text/plain]; ARC_NA(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; TO_DN_SOME(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-Rspamd-Queue-Id: 4PXPZs2XgVz4YnX X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N > $ touch Homework HOMEWORK > $ ls -li | grep -i homework > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 Homework > $ ls -l homework HOMEWORK > -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 HOMEWORK > -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 homework > $ ls -li homework HOMEWORK > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 HOMEWORK > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 homework If I read that correctly, 33069549 is the inode, both files have the same inode? Is that on a Mac? On FreeBSD, both files would be created with a different inode unless maybe one has some file deduplication enabled at the filesystem level: $ touch Homework HOMEWORK $ ls -li | grep -i homework 344941451 -rw-r--r-- 1 on csimstaff 0 Mar 9 16:50 HOMEWORK 344941448 -rw-r--r-- 1 on csimstaff 0 Mar 9 16:50 Homework $ Bests, Olivier From nobody Thu Mar 9 09:52: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 4PXPbr2LVCz3wSh8 for ; Thu, 9 Mar 2023 09:52:08 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from ms-10.1blu.de (ms-10.1blu.de [178.254.4.101]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXPbr0Xy8z4Zf8; Thu, 9 Mar 2023 09:52:08 +0000 (UTC) (envelope-from guru@unixarea.de) Authentication-Results: mx1.freebsd.org; none Received: from [178.254.11.41] (helo=sh4-5.1blu.de) by ms-10.1blu.de with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1paCwP-0004IS-FF; Thu, 09 Mar 2023 10:52:05 +0100 Date: Thu, 9 Mar 2023 10:52:04 +0100 From: Matthias Apitz To: Peter Holm Cc: Steve O'Hara-Smith , questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar Message-ID: <20230309095204.GC9@sh4-5.1blu.de> Reply-To: Matthias Apitz References: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> <20230309084125.GA9@sh4-5.1blu.de> 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-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) X-Con-Id: 51246 X-Con-U: 0-guru X-Originating-IP: 178.254.11.41 X-Rspamd-Queue-Id: 4PXPbr0Xy8z4Zf8 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N El día Donnerstag, März 09, 2023 a las 10:34:11 +0100, Peter Holm escribió: > $ touch Homework HOMEWORK > $ ls -li | grep -i homework > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 Homework > $ ls -l homework HOMEWORK > -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 HOMEWORK > -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 homework > $ ls -li homework HOMEWORK > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 HOMEWORK > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 homework > $ You're fully correct. There are two directory entries, but both point to the same inode and data blocks: $ ls -li Homework HOMEWORK 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 Mär 09:37 HOMEWORK 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 Mär 09:37 Homework $ date > HOMEWORK $ cat Homework Do 9 Mär 2023 10:46:40 CET What is this for a file system idea? I will check, if I can modify this without reinstallation of the complete system. Thanks to pointing me in the right direction. matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub From nobody Thu Mar 9 09:55:30 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 4PXPh02QN9z3wTJV for ; Thu, 9 Mar 2023 09:55:44 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-lf1-x12b.google.com (mail-lf1-x12b.google.com [IPv6:2a00:1450:4864:20::12b]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXPh00Dvnz4bvN; Thu, 9 Mar 2023 09:55:44 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x12b.google.com with SMTP id t11so1552555lfr.1; Thu, 09 Mar 2023 01:55:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678355742; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=v08l2RlCYKwZChvMzozEmZC3Vst/N9waRUcOrd9aQ2Y=; b=NwohqRRRMOPwv3LkX1PqsiWWXEhCpiGyyuDH2lpQD1jOHiCxx6BnegZvrE5u+N+nro AHnuZy5pdgGEX58hrDSHzEOUeJnZbisngblkLsOGXXkp5jwZgVmHoIKZ22/krQb+24Zz zkOF4tY616yHOEj0JuK7WWfHu56cduN9FKOJg/EgJGU/ahsZi01G+ZAIBROg2S5ugFHW G7y2cY2mO1xW+eaJU8AwTdVPGegHXHK0vUKJv1LB5FFpAZGx/7YvSEIuoPgjSUGEvA5y gy9bRfeuo0/lIQWbOAFcZF96g2veBXNzKbtZjXdWoWz1XYgtZWccLWLFUPJfe/vxLC1B y7iw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678355742; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=v08l2RlCYKwZChvMzozEmZC3Vst/N9waRUcOrd9aQ2Y=; b=V6uw4XgTECbyLBI8Q2MgfXm0gsQ2R6AhPwJ54EX5TiKDZhm9ZkBCmr4Hcj9DR4DhKv e3eYJer909PlRBosPuuFF8He+BFIAriufloOzYIflRZAdJE/3URi4VR6W0Va9nJdEYx3 z077Tfqraqxn6vZm3c/5Pk3wH4fyCG7dZ+5akLMT+WYdSPEYZAA4sSf6wXW8itqL94VT qC8LVZEnl7XTqX9mn7Ed0k7B20ZsfhqXHxdSustJTyv0Pwqz1qZVSFmhdUC9aSZbh09r zBNgy7ArfoNcuYSaCgb8iTKtNULlAUuuDGP0tb56vjDvgj+q4m2yTEy14HgHAqo5G/8r aSUQ== X-Gm-Message-State: AO0yUKUrNj8xiIZ+zQPCbYiqSQondhtggGwTSZlDaN2Sf8yqVQpbW8/6 26ayklI5JcgDjtPZgVhisUkir5PHleMYkcMtts9qCSY/idSBag== X-Google-Smtp-Source: AK7set90C7caAA5SCe+pzUvY6KQUjTbACc/kWWD93/nOlGfvwqxtOmLZdGjl9W2q5D+0N1KVP7sCcDZ1L7uCWXBKBL4= X-Received: by 2002:a19:f606:0:b0:4e7:ed3c:68ee with SMTP id x6-20020a19f606000000b004e7ed3c68eemr5835787lfe.4.1678355742023; Thu, 09 Mar 2023 01:55:42 -0800 (PST) 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 References: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> <20230309084125.GA9@sh4-5.1blu.de> <20230309095204.GC9@sh4-5.1blu.de> In-Reply-To: <20230309095204.GC9@sh4-5.1blu.de> From: Michael Schuster Date: Thu, 9 Mar 2023 10:55:30 +0100 Message-ID: Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar To: Matthias Apitz Cc: Peter Holm , "Steve O'Hara-Smith" , questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4PXPh00Dvnz4bvN X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Mar 9, 2023 at 10:52=E2=80=AFAM Matthias Apitz w= rote: > > El d=C3=ADa Donnerstag, M=C3=A4rz 09, 2023 a las 10:34:11 +0100, Peter Ho= lm escribi=C3=B3: > > > $ touch Homework HOMEWORK > > $ ls -li | grep -i homework > > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 Homework > > $ ls -l homework HOMEWORK > > -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 HOMEWORK > > -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 homework > > $ ls -li homework HOMEWORK > > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 HOMEWORK > > 33069549 -rw-r--r-- 1 pho wheel 0 9 Mar 10:30 homework > > $ > > You're fully correct. There are two directory entries, but both point to > the same inode and data blocks: I read that differently: it's a single entry (see 'ls -li' further up), but matches any case: > $ ls -li Homework HOMEWORK > 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 HOME= WORK > 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 Home= work I would assume that you can use any mixture of upper- and lowercase and '*' for ls and will get the same output. regards Michael > $ date > HOMEWORK > $ cat Homework > Do 9 M=C3=A4r 2023 10:46:40 CET > > What is this for a file system idea? I will check, if I can modify this > without reinstallation of the complete system. > > Thanks to pointing me in the right direction. > > matthias > -- > Matthias Apitz, =E2=9C=89 guru@unixarea.de, http://www.unixarea.de/ +49-1= 76-38902045 > Public GnuPG key: http://www.unixarea.de/key.pub > --=20 Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion' From nobody Thu Mar 9 09:57:44 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 4PXPkl2KhSz3wTNh for ; Thu, 9 Mar 2023 09:58:07 +0000 (UTC) (envelope-from gray@nxg.name) Received: from mx2.mythic-beasts.com (mx2.mythic-beasts.com [IPv6:2a00:1098:0:82:1000:0:2:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXPkl0dt8z4cZF for ; Thu, 9 Mar 2023 09:58:07 +0000 (UTC) (envelope-from gray@nxg.name) Authentication-Results: mx1.freebsd.org; none Received: by mailhub-hex-d.mythic-beasts.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1paD2C-00E7XH-2I; Thu, 09 Mar 2023 09:58:04 +0000 From: Norman Gray To: Matthias Apitz Cc: "Steve O'Hara-Smith" , questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar Date: Thu, 09 Mar 2023 09:57:44 +0000 X-Mailer: MailMate (1.14r5818) Message-ID: <955293F5-2223-48E4-AF7B-FEB63D7FEE13@nxg.name> In-Reply-To: <20230309084125.GA9@sh4-5.1blu.de> References: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> <20230309084125.GA9@sh4-5.1blu.de> 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 X-BlackCat-Spam-Score: 0 X-Spam-Status: No, score=-0.1 X-Rspamd-Queue-Id: 4PXPkl0dt8z4cZF X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:44684, ipnet:2a00:1098::/32, country:GB] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Matthias, hello. On 9 Mar 2023, at 8:41, Matthias Apitz wrote: >> You seem to have the default case insensitive filesystem setup on >> MacOS, you can change it - more details here: >> >> https://support.apple.com/en-ie/guide/disk-utility/dsku19ed921c/mac > > I don't think, that this is the case: As Steve says, APFS is by default set to be case-preserving but case-inse= nsitive (that is, if you create a file 'Homework', it'll always be report= ed with that case, but it's deemed to be the same directory entry as 'HOM= EWORK') If I look at the (APFS) filesystem which contains my $HOME, % diskutil info /dev/disk3s1s1 | grep Personality File System Personality: APFS and a separate filesystem which I've created as case-sensitive (for Nix):= % diskutil info /dev/disk3s8 | grep Personality File System Personality: Case-sensitive APFS > APITZM-1MBPOH:~ apitzm$ touch Homework HOMEWORK Here, you're simply touching the same file twice. > APITZM-1MBPOH:~ apitzm$ ls -l Homework HOMEWORK > -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 HOMEWORK > -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 Homework Here, you're simply listing the same file twice, and if you add the -i op= tion, you'll see (as Peter Holm points out) that they are in fact the sam= e file. You mention, though, that > APITZM-1MBPOH:~ apitzm$ ls -ld guru/Mail guru/mail > -rw-r--r-- 1 apitzm OCLC\Domain Users 4016 9 Nov 12:36 guru/Mail > -rw-r--r-- 1 apitzm OCLC\Domain Users 4016 9 Nov 12:36 guru/mail > > but that guru/Mail was created as a plain file, why it is in the tar ar= chive a directory. Odd: I can't reproduce that % tar tvf ../t.tar -rw-r--r-- 0 norman wheel 6 9 Mar 09:22 mail drwxr-xr-x 0 norman wheel 0 9 Mar 09:22 Mail/ -rw-r--r-- 0 norman wheel 6 9 Mar 09:22 Mail/hello % tar xf ../t.tar % ls -F Mail/ % rm -Rf Mail % tar tvf ../t2.tar drwxr-xr-x 0 norman wheel 0 9 Mar 09:22 Mail/ -rw-r--r-- 0 norman wheel 6 9 Mar 09:22 Mail/hello -rw-r--r-- 0 norman wheel 6 9 Mar 09:22 mail % tar xf ../t2.tar mail: Can't replace existing directory with non-directory tar: Error exit delayed from previous errors. % ls -F Mail/ % macos% tar --version bsdtar 3.5.3 - libarchive 3.5.3 zlib/1.2.11 liblzma/5.0.5 bz2lib/1.0.8 So, it's expected that you can't have a file 'mail' and a directory 'Mail= ' together, but it's not clear how you've managed to end up with a file '= mail' and no directory. I'm slightly surprised that the first tar xf abo= ve didn't result in an error, and apparently silently replaced file 'mail= ' with directory 'Mail'. Perhaps this is a bsdtar version issue? The t.tar and t2.tar were created on FreeBSD, with freebsd% tar --version bsdtar 3.6.0 - libarchive 3.6.0 zlib/1.2.12 liblzma/5.2.5 bz2lib/1.0.8 li= bzstd/1.4.8 Best wishes, Norman -- = Norman Gray : https://nxg.me.uk From nobody Thu Mar 9 10:00:58 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 4PXPp75Bbjz3wTYD for ; Thu, 9 Mar 2023 10:01:03 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (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 4PXPp64ywhz3BtN; Thu, 9 Mar 2023 10:01:02 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b="b q42SHC"; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th; dmarc=pass (policy=none) header.from=cs.ait.ac.th Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id 03E7C89285; Thu, 9 Mar 2023 17:00:59 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-transfer-encoding:content-type:content-type:mime-version :message-id:date:date:in-reply-to:subject:subject:from:from :received:received:received; s=selector1; t=1678356059; x= 1680170460; bh=Pm+ekwpe5dLzHyjaulBf9a3oZAFuJP97MnS5hj9l+tk=; b=b q42SHCgj2K5H3oOoXps2cQXbN0RoxkqX4xQqgYPyirASaGXUj3ChIUPr1gdx2e1n QVzQr25ptEsVcpKc3ne0yMQzKwkRnfqZdXWayV4E24/zub8VXxsQoMxKcASOefL4 3JaHV/Vb1vth9aFBGRKHf7z8eWBzG8/IqDv4qc5LTk= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id EVNHOUMwYdMf; Thu, 9 Mar 2023 17:00:59 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 50CDF89283; Thu, 9 Mar 2023 17:00:59 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 329A0wA0071326; Thu, 9 Mar 2023 17:00:58 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: Michael Schuster Cc: guru@unixarea.de, pho@freebsd.org, steve@sohara.org, questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar In-Reply-To: (message from Michael Schuster on Thu, 9 Mar 2023 10:55:30 +0100) Date: Thu, 09 Mar 2023 17:00:58 +0700 Message-ID: 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 X-Spamd-Result: default: False [-4.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-Rspamd-Queue-Id: 4PXPp64ywhz3BtN X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N > I read that differently: it's a single entry (see 'ls -li' further > up), but matches any case: > >> $ ls -li Homework HOMEWORK >> 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 HOM= EWORK >> 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 Hom= ework In Unix parlance, it is called a link (or a hard link): two filenames (possibly in two different directories, but must be in the same file system) sharing a single inode. That is completely normal, but that should not be what is created by tar -x (or by touch) by default. Bests, Olivier From nobody Thu Mar 9 10:01:49 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 4PXPqG5LzHz3wTJB for ; Thu, 9 Mar 2023 10:02:02 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Received: from mail-lf1-x133.google.com (mail-lf1-x133.google.com [IPv6:2a00:1450:4864:20::133]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXPqG4yMKz3CnG; Thu, 9 Mar 2023 10:02:02 +0000 (UTC) (envelope-from michaelsprivate@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-lf1-x133.google.com with SMTP id j11so1514489lfg.13; Thu, 09 Mar 2023 02:02:02 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; t=1678356121; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ciY1swCPVwFlSzZoyekhTJbXVe5o3QzIb9sfpH2qgLI=; b=CHiH7Oewyb1pDpJggCma5+606RNcLzn4MO1/NUf6b3+5ttmGrpq9chfs/MabHvMgIi ESFDHMPTkJqr4TFaBeGAnEW6vS1gxnD2shfMxO0YjWHGOZIUxDPg72pbNUqAC2FCqcbf /LiS/kR5GjOiFo8LzXsrWCoXm1OV7HpqOieuDgkCWHRgcaBmh140KlkEY9cQcmYx7BP0 hkOwl7MwiRxZM+Bx5jFzDNDhKAMeAjAO081a6xaO0pdWBhq9Cx0q5tYmHyDsUm99m53H XXQ5evakHhu9PJbZDKncZ39q9R6BWlIOAp1zq7lOhTvcC0Exlcqd+c9/M/VMXt2Z265g pFHw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1678356121; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=ciY1swCPVwFlSzZoyekhTJbXVe5o3QzIb9sfpH2qgLI=; b=avd/f7emOVM3iIGTCAQY6UNZDewdJF/UeCD+zJIaVR6HJVYcFM+a/nJEdzeoTk60E/ WTC7H6qfCb5iWuqnM/KoAtCXEwG0mUu4vkU5gChdwkuwKyw4s9tQv7rxNWPxvZO5mSyI QnMwMfYzPshHgGjNfX6ggv7azES8oauUFlnbX3/RDONOgYSfnS7alzjMXKv/B1AeA7cE /wr+edD916/ON8Y0S9cmbmNszhBLCQSQ615oNNUhMj5yZenQ3wKJRCpt8TkNiH0iFKv6 Hjd5AQL3m98t3hpbWnutUNyCaNnXofK3wCYbhJLi7BbDbMUeTCHjTGw7UOyd7vso67wB tbPA== X-Gm-Message-State: AO0yUKVi8POpVEnoy6ljisUgz1UMaj7i4RK5iiifM8DwruW7zrhnnWkD S9fSV37CDrvItJNO3kEa4Da6OmJBqq1oj3iRVBE= X-Google-Smtp-Source: AK7set97oJ3iPz2oKswsxTzbx3wxPfN7+D73tA+CdpVuHGLMzXObFmZNJXgIXXCWPkiESwktNprLF0YraOSTgyt5qAQ= X-Received: by 2002:ac2:5312:0:b0:4e1:dbbb:493b with SMTP id c18-20020ac25312000000b004e1dbbb493bmr6781913lfh.4.1678356121071; Thu, 09 Mar 2023 02:02:01 -0800 (PST) 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 References: In-Reply-To: From: Michael Schuster Date: Thu, 9 Mar 2023 11:01:49 +0100 Message-ID: Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar To: Olivier Cc: guru@unixarea.de, pho@freebsd.org, steve@sohara.org, questions@freebsd.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Rspamd-Queue-Id: 4PXPqG4yMKz3CnG X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N On Thu, Mar 9, 2023 at 11:01=E2=80=AFAM Olivier wrote: > > > I read that differently: it's a single entry (see 'ls -li' further > > up), but matches any case: > > > >> $ ls -li Homework HOMEWORK > >> 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 H= OMEWORK > >> 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 H= omework > > In Unix parlance, it is called a link (or a hard link): two filenames > (possibly in two different directories, but must be in the same file > system) sharing a single inode. actually no - the link count is 1. > > That is completely normal, but that should not be what is created by tar > -x (or by touch) by default. > > Bests, > > Olivier --=20 Michael Schuster http://recursiveramblings.wordpress.com/ recursion, n: see 'recursion' From nobody Thu Mar 9 10:04:20 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 4PXPt04d23z3wTM9 for ; Thu, 9 Mar 2023 10:04:24 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Received: from mail.cs.ait.ac.th (mail.cs.ait.ac.th [192.41.170.16]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXPsz6r2yz3FN0; Thu, 9 Mar 2023 10:04:23 +0000 (UTC) (envelope-from Olivier.Nicole@cs.ait.ac.th) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=cs.ait.ac.th header.s=selector1 header.b="h6/xvVuf"; spf=pass (mx1.freebsd.org: domain of Olivier.Nicole@cs.ait.ac.th designates 192.41.170.16 as permitted sender) smtp.mailfrom=Olivier.Nicole@cs.ait.ac.th; dmarc=pass (policy=none) header.from=cs.ait.ac.th Received: from mail.cs.ait.ac.th (localhost [127.0.0.1]) by mail.cs.ait.ac.th (Postfix) with ESMTP id B2F7B89285; Thu, 9 Mar 2023 17:04:21 +0700 (+07) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cs.ait.ac.th; h= content-type:content-type:mime-version:message-id:date:date :in-reply-to:subject:subject:from:from:received:received :received; s=selector1; t=1678356261; x=1680170662; bh=EFaLQ81Ra ESDYTa7W+Yv3xFMUgKtiFvcE8Ii29yMmmA=; b=h6/xvVufitt/tXnAp/jDDn8wt K0KGJxZVB0Y0Hz1kA24ZvP7SMKDRoOjtN1cZu4vIIC+YNvRTuLJRQ1qXX95+W2wj ndIUPq2rTAzGPYDAdmHOJvvi9iTbD3DfVcyZLIyKpRJ+tqzcDmrUl7K9jKZq0Zq+ l0PY4/0j3sXXtNLuMM= X-Virus-Scanned: amavisd-new at cs.ait.ac.th Received: from mail.cs.ait.ac.th ([127.0.0.1]) by mail.cs.ait.ac.th (mail.cs.ait.ac.th [127.0.0.1]) (amavisd-new, port 10026) with ESMTP id gHaVEWJS8IZo; Thu, 9 Mar 2023 17:04:21 +0700 (+07) Received: from banyan.cs.ait.ac.th (banyan.cs.ait.ac.th [192.41.170.5]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.cs.ait.ac.th (Postfix) with ESMTPS id 048D689283; Thu, 9 Mar 2023 17:04:20 +0700 (+07) Received: (from on@localhost) by banyan.cs.ait.ac.th (8.15.2/8.15.2/Submit) id 329A4KRA071513; Thu, 9 Mar 2023 17:04:20 +0700 (ICT) (envelope-from on@banyan.cs.ait.ac.th) From: Olivier To: Michael Schuster Cc: guru@unixarea.de, pho@freebsd.org, steve@sohara.org, questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar In-Reply-To: (message from Michael Schuster on Thu, 9 Mar 2023 11:01:49 +0100) Date: Thu, 09 Mar 2023 17:04:20 +0700 Message-ID: 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 X-Spamd-Result: default: False [-4.70 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; RCVD_DKIM_ARC_DNSWL_MED(-0.50)[]; DMARC_POLICY_ALLOW(-0.50)[cs.ait.ac.th,none]; RCVD_IN_DNSWL_MED(-0.20)[192.41.170.16:from]; R_SPF_ALLOW(-0.20)[+mx:c]; R_DKIM_ALLOW(-0.20)[cs.ait.ac.th:s=selector1]; MIME_GOOD(-0.10)[text/plain]; FROM_EQ_ENVFROM(0.00)[]; FREEMAIL_TO(0.00)[gmail.com]; MLMMJ_DEST(0.00)[questions@freebsd.org]; MIME_TRACE(0.00)[0:+]; ARC_NA(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; MID_RHS_MATCH_FROMTLD(0.00)[]; FROM_HAS_DN(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; DKIM_TRACE(0.00)[cs.ait.ac.th:+]; TO_DN_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_FIVE(0.00)[5]; ASN(0.00)[asn:4767, ipnet:192.41.170.0/24, country:TH] X-Rspamd-Queue-Id: 4PXPsz6r2yz3FN0 X-Spamd-Bar: ---- X-ThisMailContainsUnwantedMimeParts: N > actually no - the link count is 1. Correct! That file system is beyond weird! Bests. Olivier From nobody Thu Mar 9 10:07: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 4PXPxX6bhtz3wTr8 for ; Thu, 9 Mar 2023 10:07:28 +0000 (UTC) (envelope-from gray@nxg.name) Received: from mx2.mythic-beasts.com (mx2.mythic-beasts.com [IPv6:2a00:1098:0:82:1000:0:2:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXPxX671Sz3G13; Thu, 9 Mar 2023 10:07:28 +0000 (UTC) (envelope-from gray@nxg.name) Authentication-Results: mx1.freebsd.org; none Received: by mailhub-hex-d.mythic-beasts.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1paDBG-00EBEE-SP; Thu, 09 Mar 2023 10:07:27 +0000 From: Norman Gray To: Matthias Apitz Cc: Peter Holm , "Steve O'Hara-Smith" , questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar Date: Thu, 09 Mar 2023 10:07:16 +0000 X-Mailer: MailMate (1.14r5818) Message-ID: In-Reply-To: <20230309095204.GC9@sh4-5.1blu.de> References: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> <20230309084125.GA9@sh4-5.1blu.de> <20230309095204.GC9@sh4-5.1blu.de> 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 X-BlackCat-Spam-Score: 0 X-Spam-Status: No, score=-0.1 X-Rspamd-Queue-Id: 4PXPxX671Sz3G13 X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:44684, ipnet:2a00:1098::/32, country:GB] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Matthias, hello. On 9 Mar 2023, at 9:52, Matthias Apitz wrote: > You're fully correct. There are two directory entries, but both point t= o > the same inode and data blocks: > > $ ls -li Homework HOMEWORK > 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 H= OMEWORK > 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M=C3=A4r 09:37 H= omework > No, there's only one directory entry, but you're listing it twice: % ls Homework % ls -li total 0 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 Homework % ls -li Homework HOMEWORK 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 HOMEWORK 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 Homework % ls -li Homework homework HOMEWORK hOmEwOrK 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 HOMEWORK 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 Homework 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 hOmEwOrK 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 homework > What is this for a file system idea? I will check, if I can modify this= > without reinstallation of the complete system. It's just case-insensitive -- a particular design choice. You can create new filesystems in the APFS container, either with Disk Ut= ility or with diskutil, and that's occasionally useful (as I mentioned, N= ix on macOS is installed in a case-sensitive volume). I don't _think_ you can change the 'personality' of an existing volume, t= hough, and if you were to try to install macOS on a non-standard filesyst= em (and if you were to achieve that) I suspect the OS would break enterta= iningly. Best wishes, Norman -- = Norman Gray : https://nxg.me.uk From nobody Thu Mar 9 15:55:48 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 4PXYgc5Yxvz3x51s for ; Thu, 9 Mar 2023 15:55:56 +0000 (UTC) (envelope-from doug@safeport.com) Received: from fledge.watson.org (fledge.watson.org [147.160.157.40]) (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-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "A1-48603", Issuer "A1-48603" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXYgb5yT8z40HT for ; Thu, 9 Mar 2023 15:55:55 +0000 (UTC) (envelope-from doug@safeport.com) Authentication-Results: mx1.freebsd.org; dkim=none; spf=fail (mx1.freebsd.org: domain of doug@safeport.com does not designate 147.160.157.40 as permitted sender) smtp.mailfrom=doug@safeport.com; dmarc=none Received: from fledge.watson.org (doug@localhost [127.0.0.1]) by fledge.watson.org (8.16.1/8.16.1) with ESMTPS id 329FtnAF035189 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NO) for ; Thu, 9 Mar 2023 15:55:49 GMT (envelope-from doug@safeport.com) Received: from localhost (doug@localhost) by fledge.watson.org (8.16.1/8.16.1/Submit) with ESMTP id 329FtmSt035185 for ; Thu, 9 Mar 2023 15:55:49 GMT (envelope-from doug@safeport.com) X-Authentication-Warning: fledge.watson.org: doug owned process doing -bs Date: Thu, 9 Mar 2023 15:55:48 +0000 (UTC) From: doug@safeport.com Reply-To: doug@fledge.watson.org To: questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar In-Reply-To: Message-ID: References: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> <20230309084125.GA9@sh4-5.1blu.de> <20230309095204.GC9@sh4-5.1blu.de> 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=US-ASCII; format=flowed X-Spamd-Result: default: False [-2.09 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; R_SPF_FAIL(1.00)[-all]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.99)[-0.993]; MIME_GOOD(-0.10)[text/plain]; FROM_NO_DN(0.00)[]; MLMMJ_DEST(0.00)[questions@freebsd.org]; DMARC_NA(0.00)[safeport.com]; FROM_EQ_ENVFROM(0.00)[]; MIME_TRACE(0.00)[0:+]; R_DKIM_NA(0.00)[]; ASN(0.00)[asn:6405, ipnet:147.160.157.0/24, country:US]; HAS_REPLYTO(0.00)[doug@fledge.watson.org]; TO_DN_NONE(0.00)[]; RCVD_COUNT_THREE(0.00)[3]; REPLYTO_DN_EQ_FROM_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_LAST(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[questions@freebsd.org]; REPLYTO_DOM_NEQ_FROM_DOM(0.00)[]; HAS_XAW(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; MID_RHS_MATCH_FROM(0.00)[] X-Rspamd-Queue-Id: 4PXYgb5yT8z40HT X-Spamd-Bar: -- X-ThisMailContainsUnwantedMimeParts: N On Thu, 9 Mar 2023, Norman Gray wrote: > > Matthias, hello. > > On 9 Mar 2023, at 9:52, Matthias Apitz wrote: > >> You're fully correct. There are two directory entries, but both point to >> the same inode and data blocks: >> >> $ ls -li Homework HOMEWORK >> 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M?r 09:37 HOMEWORK >> 4016236 -rw-r--r-- 1 apitzm OCLC\Domain Users 0 9 M?r 09:37 Homework >> > > No, there's only one directory entry, but you're listing it twice: > > % ls > Homework > % ls -li > total 0 > 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 Homework > % ls -li Homework HOMEWORK > 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 HOMEWORK > 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 Homework > % ls -li Homework homework HOMEWORK hOmEwOrK > 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 HOMEWORK > 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 Homework > 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 hOmEwOrK > 32687651 -rw-r--r-- 1 norman wheel 0 9 Mar 09:59 homework > >> What is this for a file system idea? I will check, if I can modify this >> without reinstallation of the complete system. > > It's just case-insensitive -- a particular design choice. > > You can create new filesystems in the APFS container, either with Disk > Utility or with diskutil, and that's occasionally useful (as I mentioned, > Nix on macOS is installed in a case-sensitive volume). I don't _think_ > you can change the 'personality' of an existing volume, though, and if > you were to try to install macOS on a non-standard filesystem (and if you > were to achieve that) I suspect the OS would break entertainingly. Best > wishes, I'm one of these [fill in appropriate adjective] guys that uses a native FreeBSD workstation and my partner uses Mac. My experience is that using xterm with tcsh I can ssh into the Mac and pretty much do anything I need to do with my userid on the Mac. On the Mac the file system names are case sensitive with liberal use of blanks. In my experience I have seen no difference between Mac tar and FreeBSD. The mail thing sorta sounded like that was in mbox format, I did not see if that was mentioned. imapsync will move email in any format from machine to machine. Large volumes across the internet will take a while. From nobody Thu Mar 9 16:12:45 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 4PXZ3567d9z3x5gl for ; Thu, 9 Mar 2023 16:12:49 +0000 (UTC) (envelope-from gray@nxg.name) Received: from mx2.mythic-beasts.com (mx2.mythic-beasts.com [IPv6:2a00:1098:0:82:1000:0:2:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4PXZ354W39z42Pb for ; Thu, 9 Mar 2023 16:12:49 +0000 (UTC) (envelope-from gray@nxg.name) Authentication-Results: mx1.freebsd.org; none Received: by mailhub-hex-d.mythic-beasts.com with esmtpsa (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1paIsp-00GAog-Hh; Thu, 09 Mar 2023 16:12:47 +0000 From: Norman Gray To: doug@fledge.watson.org Cc: questions@freebsd.org Subject: Re: problem while moving HOME from FreeBSD to MacOS with bsdtar Date: Thu, 09 Mar 2023 16:12:45 +0000 X-Mailer: MailMate (1.14r5818) Message-ID: In-Reply-To: References: <20230309081835.afddc78d57a7f25b8f92b9aa@sohara.org> <20230309084125.GA9@sh4-5.1blu.de> <20230309095204.GC9@sh4-5.1blu.de> 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 Content-Transfer-Encoding: quoted-printable X-BlackCat-Spam-Score: 24 X-Spam-Status: No, score=2.4 X-Rspamd-Queue-Id: 4PXZ354W39z42Pb X-Spamd-Bar: ---- X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:44684, ipnet:2a00:1098::/32, country:GB] X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-ThisMailContainsUnwantedMimeParts: N Doug, hello. On 9 Mar 2023, at 15:55, doug@safeport.com wrote: > My experience is that using > xterm with tcsh I can ssh into the Mac and pretty much do anything I n= eed > to do with my userid on the Mac. Yup -- my impression is that Apple don't support headless macOS as such, = but that you can pretty much look after a macOS box that way. > On the Mac the file system names are case > sensitive with liberal use of blanks. Are you sure, in a standard install? On my machine % ls /uSeRs Shared/ norman/ so that's case-insensitive. Of course tab-completion won't work in the s= hell, if you don't start the filename with its 'correct' case. Thus /u won't work, only /U, but that's different. > In my experience I have seen no > difference between Mac tar and FreeBSD. Indeed. My understanding is that the macOS userland is very heavily base= d on the FreeBSD userland, with judicious exceptions so that, for example= , 'make' is GNU make, rather than pmake. Also that significant parts of = the Darwin kernel overlap with the FreeBSD one. But although I've seen v= arious remarks on-list that 'yes, Apple and the FreeBSD project are frien= ds', I've never been able to find a document which discusses the relation= ship -- project and code -- in any detail. Best wishes, Norman -- = Norman Gray : https://nxg.me.uk