From nobody Sun Jan 28 22:04:26 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 4TNQTb6qw7z59Nqv; Sun, 28 Jan 2024 22:05:07 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (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 4TNQTb077pz4Rtx; Sun, 28 Jan 2024 22:05:07 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-a26fa294e56so244128666b.0; Sun, 28 Jan 2024 14:05:06 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706479503; x=1707084303; 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=f9aVle2O8kh1AdPtupWJjUEq7fGeFlItbAjeluY2IgI=; b=WNAPQ7560tkB21Oq4ZBoFzcjiTpW62+gGi7fBjUPHDwuXvDbGvxC3x8lCTNBs3dQQ6 GwoTtO6qlQui03xFm34TZ6u3DdS/gTGJmeYPFXiWqH82hjeSrADBsXppB78pfNRWroSB djhocabRjIwh8BzxozjnxkcN5h90Io4kjHyIdhuNiDuvrP0rCtPdzWuUte9C9lfXUmS5 jTb9qzH2RESyMnuJTCwg7y+P6gatVmZRrSj/LVc8ZZ7lDR8MCtN9YhX3UZAxR97kUYW2 72vSonr/RObCD04C8mXyZCKhZ/XWhz8+W8FYJYIm6TsCY35/0yG8YL20vSIbCUsDbzbB EI9g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706479503; x=1707084303; 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=f9aVle2O8kh1AdPtupWJjUEq7fGeFlItbAjeluY2IgI=; b=I430lq7hANjwpXFVa9KkGqZNqX5lOfGSFE6OoiPZ54kPse8fqqAL9ZDzcaBwhgPM6D hOi9F08TiSBANU16KBOGHTrdX/30XmZApbeqc+35GkuN17+IDqq6mvSmhacBktOZSGxl Uh6vPj/XohVe6FC88cUyQI8JOScSjwcs8VjU2P7KAQXuZut8+2+e+U/VqbJ0kL0UJDRw tXi7y0WgMjF02xRfy5RaTaApJI57iZtDHC/sQyKb3ZYeqxc8Rb74rxKvzVschpYUhc19 hKuJIfc0N5JvsAEPVgQWKHoq9HZQb5Gp9BiAd6JiBwDqSQMjZWjey/SFIU+ocAZfD7fC rQew== X-Gm-Message-State: AOJu0YyOMAtDEJ+79Av906+Xp/0BggtRgXISkdkAtp4cgBicSMzp8LLS ADxF+oMNPSAXPmduCP9uKou8Vi9FfRCz7eNnSAPg9cqsDZyKhEraYKMXwQvm3Jvo/d36kPEuG5j +taOzRNFLljG2BCbXrm9AAOV2Znkg82r3l8cpxQ== X-Google-Smtp-Source: AGHT+IGnLm2tLSghH1HBGooIvbqrA/XyHEsQFn4EpBWhoTVnn3M31fx9fx1okXULkwEnvQ4CBBgTwW5/+WkkVxUXO7I= X-Received: by 2002:a17:906:c211:b0:a35:70d8:89e9 with SMTP id d17-20020a170906c21100b00a3570d889e9mr2296501ejz.63.1706479503248; Sun, 28 Jan 2024 14:05:03 -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: From: Mario Marietto Date: Sun, 28 Jan 2024 23:04:26 +0100 Message-ID: Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. To: Warner Losh Cc: Craig Leres , FreeBSD Mailing List , freebsd-hackers Content-Type: multipart/alternative; boundary="0000000000009b9191061008b8d1" X-Rspamd-Queue-Id: 4TNQTb077pz4Rtx 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] --0000000000009b9191061008b8d1 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks. You gave me the instructions about how to upgrade pkg on FreeBSD 10 for armV6 ? This will be useful when I will install FreeBSD 10.04 (but I see that I can even install 12.04) on my Chromebook. But at the moment I'm trying to compile the only revision which allows to install FreeBSD on the Chromebook : # svnlite co http://svn.freebsd.org/base/head@269385 /usr/src directly on my old Intel I5 CPU PC,where I have installed FreeBSD 10.4 x64 = bit. So,I would need to understand how to fix the pipefail error necessary to upgrade pkg and to install xfce4 as well as some other useful ports. The idea of using the sh statically linked didn't work. I get a lot of errors and I doubt that I can fix them. Thanks. On Sun, Jan 28, 2024 at 7:18=E2=80=AFPM Warner Losh wrote: > > > On Sun, Jan 28, 2024 at 11:08=E2=80=AFAM Craig Leres = wrote: > >> 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 sourc= es >> > 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. 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 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 th= e > right way). > > Warner > --=20 Mario. --0000000000009b9191061008b8d1 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Thanks.

You gave me the inst= ructions about how to upgrade pkg on FreeBSD 10 for armV6 ? This will be us= eful when I will install FreeBSD 10.04 (but I see that I can even install 1= 2.04) on my Chromebook. But at the moment I'm trying to compile the onl= y revision which allows to install FreeBSD on the Chromebook :

# svnlite co http://svn.freebsd.org/base/head@269385 /usr/src

dir=
ectly on my old Intel I5 CPU PC,where I have installed FreeBSD 10.4 x64 bit=
. 

So,I would need to understand how to fix the pipefail =
error necessary to upgrade pkg
and to install xfce4 as well a=
s some other useful ports.

The idea of using the sh stati=
cally linked didn't work. I get a lot of errors and
I dou=
bt that I can fix them. 

Thanks.

On Sun, Jan 28, 2024 at 7:18=E2=80=AFPM Warner Losh <imp@bsdimp.com> wrote:


On S= un, Jan 28, 2024 at 11:08=E2=80=AFAM Craig Leres <leres@freebsd.org> 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


--
Mario.
--0000000000009b9191061008b8d1--