From nobody Sun Jan 28 18:18:47 2024 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 4TNKSh42Y5z59357 for ; Sun, 28 Jan 2024 18:19:00 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x533.google.com (mail-ed1-x533.google.com [IPv6:2a00:1450:4864:20::533]) (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 4TNKSg5PgMz4bk9 for ; Sun, 28 Jan 2024 18:18:59 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x533.google.com with SMTP id 4fb4d7f45d1cf-55c2c90c67dso1673794a12.1 for ; Sun, 28 Jan 2024 10:18:59 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1706465938; x=1707070738; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0/TaGX4Gtwyq3d1FpnTHX5na6+Nrxh5W9DvqG0fJQVw=; b=0vZAiABkB3lQRIJly1MrbbhfI7337WVomAJOe4HjbUaGaMK+KZ4+ZTjgy3WFscmDWf tOf8eFXRPCsFTX5VyNE4cTuj0iAwp1q++bEiBRTtmTF6107/5w8xMh7DKcwE7TyewLwW IZEU0hOecO2chaAcvfSrDowQq9xgLvCmwbtkrQ4vIAXx2YuawjFJIcO0Rl5FcJmPIHrI ZF4VAl7mXbRTsfryTLmJr/KvDNUNIFWBqbkNgEaGrMoeYCYD2s+LE5vm72xRhSB8INjD sSkZQVjBzmcmW5gLW+AeDAhFJHCK9l1fKpwYdmqE92/rgsLjuRPtmSZOXNSMVwqpDJLn m+2Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706465938; x=1707070738; h=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=0/TaGX4Gtwyq3d1FpnTHX5na6+Nrxh5W9DvqG0fJQVw=; b=LihsT1RDZUBCzMFCJh++fDa0biaH+njiLtu+NtsERw0tFgFwPlWffZaOVxcbYK2z3Q i34AMM7j2PAhbhM9otQx8HoKS0fZ4qi1Z91f+/fNAzqOtXeIyugNNFpzv0oKVn0UJhPV Ssf7bGj22ff+CAhafhGJbLNBsMXzdYnUImEOI/gv3pvnLNX8JgGdNLmOweWFWaayG0uW ajwz5BVWLd0u6AANX7AqURvqCAnhGxDnWOWCPFpM2l3mQ6Wu/tKGfv1+x4nvOWj5uPXl CX5jygMfxeHVFpF4CNFcCPChP92ao0Y9vAj9NAi/FVyoHfWDD0s3T1wGKe68RyNbYSZl liLA== X-Gm-Message-State: AOJu0YyZ3rI53XaUyBklVurt71AQ6vp8aOnjbi6N45Sz/HlPb0HSiUda BUgE5N+dMuCNAtGaykekpj1tD6lNhP8qgWCXFi+UU4Akq6g49Se89FMLLQo2TTIJ2Jt6Sf/etr0 5yAwb0uplPRqq+dC2iBxevp5i0AAD+wXNWQXJUQ== X-Google-Smtp-Source: AGHT+IE+jAVp7tfVcMUixq5jpl6sLQ3+wEsNG5U7nP5rKJiiZkElEn9SBI63QVWMoRtrdZYoevf5zbCllxHWDB5Ky1Y= X-Received: by 2002:a05:6402:518b:b0:55e:fe1a:4d2f with SMTP id q11-20020a056402518b00b0055efe1a4d2fmr387852edd.2.1706465937602; Sun, 28 Jan 2024 10:18:57 -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: <2840a1c8-839c-480f-a0db-42235bf7581e@freebsd.org> In-Reply-To: <2840a1c8-839c-480f-a0db-42235bf7581e@freebsd.org> From: Warner Losh Date: Sun, 28 Jan 2024 11:18:47 -0700 Message-ID: Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. To: Craig Leres Cc: Mario Marietto , FreeBSD Mailing List , freebsd-hackers Content-Type: multipart/alternative; boundary="000000000000084d9306100590e1" X-Rspamd-Queue-Id: 4TNKSg5PgMz4bk9 X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --000000000000084d9306100590e1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sun, Jan 28, 2024 at 11:08=E2=80=AFAM Craig Leres wr= ote: > On 1/28/24 09:55, Warner Losh wrote: > > On Sun, Jan 28, 2024 at 10:53=E2=80=AFAM Warner Losh > > wrote: > > > > OK. On your 10.x arm system, you need to build /bin/sh using source= s > > from FreeBSD 13. > > Binaries from 12 or 13 won't work on your 10.x system: libc doesn't > > have the right symbols. > > But source build against a 10.x system should work. That was my > > suggestion. Too bad > > pipefail didn't arrive until 14. So you'll need to build that on > > your 14 system. > > > > ... need to build stable/14 on your 10.x system this should say. Rather > > an important > > detail I didn't catch on first proofreading. > What about just copying /rescue/sh from a new enough system? > > My build server is 13.2 but it has a 14.0-RELEASE-p4 poudriere jail and > the sh from that runs on 13.2 at least (and has pipefail). I tried to > test with an older version of FreeBSD but it looks like my spare machine > is too new for its usb keyboard to work with FreeBSD 10 or 11... > /rescue/sh will have system calls embedded in it that the old FreeBSD 10 kernel will not understand. Between FreeBSD 11 and 12 we moved to 64bit inode sizes, adding a bunch of system calls that we don't fall back to the old versions of. Plus we've added a bunch of *at system calls that we now use always (they are more general than the old system calls, so those have changed into library routines that call the *at function in the right way). Warner --000000000000084d9306100590e1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


=
On Sun, Jan 28, 2024 at 11:08=E2=80= =AFAM Craig Leres <leres@freebsd.or= g> wrote:
On 1/28/24 09:55, Warner Losh wrote:
> On Sun, Jan 28, 2024 at 10:53=E2=80=AFAM Warner Losh <imp@bsdimp.com
> <mailto:imp@bsd= imp.com>> wrote:
>
>=C2=A0 =C2=A0 =C2=A0OK. On your 10.x arm system, you need to build /bin= /sh using sources
>=C2=A0 =C2=A0 =C2=A0from FreeBSD 13.
>=C2=A0 =C2=A0 =C2=A0Binaries from 12 or 13 won't work on your 10.x = system: libc doesn't
>=C2=A0 =C2=A0 =C2=A0have the right symbols.
>=C2=A0 =C2=A0 =C2=A0But source build against a 10.x system should work.= That was my
>=C2=A0 =C2=A0 =C2=A0suggestion. Too bad
>=C2=A0 =C2=A0 =C2=A0pipefail didn't arrive until 14. So you'll = need to build that on
>=C2=A0 =C2=A0 =C2=A0your 14 system.
>
> ... need to build stable/14 on your 10.x system this should say. Rathe= r
> an important
> detail I didn't catch on first proofreading.
What about just copying /rescue/sh from a new enough system?

My build server is 13.2 but it has a 14.0-RELEASE-p4 poudriere jail and the sh from that runs on 13.2 at least (and has pipefail). I tried to
test with an older version of FreeBSD but it looks like my spare machine is too new for its usb keyboard to work with FreeBSD 10 or 11...

/rescue/sh will have system calls embedded in it = that the old FreeBSD 10
kernel will not understand. Between FreeB= SD 11 and 12 we moved to
64bit inode sizes, adding a bunch of sys= tem calls that we don't fall back
to the old versions of. Plu= s we've added a bunch of *at system calls that
we now use alw= ays (they are more general than the old system calls, so
those ha= ve changed into library routines that call the *at function in the
right way).

Warner
--000000000000084d9306100590e1--