From nobody Sun Jan 28 08:47:00 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 4TN4nR1DTbz588QC; Sun, 28 Jan 2024 08:47:39 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x531.google.com (mail-ed1-x531.google.com [IPv6:2a00:1450:4864:20::531]) (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 4TN4nQ42GMz4RF1; Sun, 28 Jan 2024 08:47:38 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x531.google.com with SMTP id 4fb4d7f45d1cf-55a179f5fa1so1707791a12.0; Sun, 28 Jan 2024 00:47:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706431657; x=1707036457; 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=iPeCItWhOlt9LdOUU7LJyCEx/VPMvoUq7/10G/XVlrw=; b=g0/3Et+fv/4gdrkHRhsQNCx1qz3cZsTxETx+2EconUgkZde0BZgYyS7OsN1ZTiuSRn dEMzzYyqgQuZOOj6harJ/Qm7j22FJym8urS/f13pjb4psjc95zvGbETWv3HqfXVH0Aq7 nXcpjMVbkbwBnpn4vL3Bzdxx6wHiLpJ6cggt8xlzcJLu62cPfuv3FXKfYrBDjwOBq94B By29+98phrX8npWeO2miOCQbpzP4FD3I2RUPSv4vZBS65XJIn7CrSozlGaho7jecN7yz nH7QX4zARrsPqK7lT96HLqWXEug4Aq2Ml1GAGAddBv5vDCP5NEPRyBmoTOpHNu112UzO Ffdw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706431657; x=1707036457; 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=iPeCItWhOlt9LdOUU7LJyCEx/VPMvoUq7/10G/XVlrw=; b=c+sgFtnQV6ya9lET1ecs7dDVNyHKwxJwbO5nKZJZZVC26NbvkFCFsVYVEbsuxIhegv x53k1IAXYfXnYUQwH3SBQan4E2TDC6MV3wdr7NhTcLHRt10qm/N6i8eONzjuN7fmzr3i zGI5bs+rUoE2s6rhGk9qWAgcgLq7/Asnz0REzkwDS2aiezzQHuWFRsUjIutllCsAHZwG r5jwp8PKyl6wCQLnmw60zYpKzBgk6EIloT7uMTCuG8Y9w0Q7dqoYTQ65fU7nYCDnMbzW CFKEYePqdTBNDz9hy6bzhuQz4d8WLOBQdx+AbjV5Pgpa161lQuMYMXmxQEzjuoWNOXsI p/1g== X-Gm-Message-State: AOJu0YxkegEhUIgf2y75GNLUFu9IMsSb2eNRv3stSmuWs/pnKcREA8Dc T4ijhE0sDKEiZwI9IAIM+Ijp2ElgP1LDr5kISbKjvsFLvdmkNGv9CT6mr9RugKmJswfCVYTPh6z DA8EPIg7jtkJnAycEjpOF0FhwK94= X-Google-Smtp-Source: AGHT+IEvfZBqfwarc1hS21MNDWTNM1LhBC9nczG3IeY8DkpceaHIfmpyJNuVhmb6k52Q5iIcdleRHacQCIvgNp8WUn4= X-Received: by 2002:a17:906:774f:b0:a35:4ee9:7f12 with SMTP id o15-20020a170906774f00b00a354ee97f12mr1557459ejn.50.1706431656806; Sun, 28 Jan 2024 00:47:36 -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: Mario Marietto Date: Sun, 28 Jan 2024 09:47:00 +0100 Message-ID: Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. To: Warner Losh Cc: FreeBSD Mailing List , freebsd-hackers Content-Type: multipart/alternative; boundary="000000000000bcce7b060ffd943b" X-Rspamd-Queue-Id: 4TN4nQ42GMz4RF1 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] --000000000000bcce7b060ffd943b Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable # set -o pipefail set : variable name must begin with a letter. On Sun, Jan 28, 2024 at 5:43=E2=80=AFAM Warner Losh wrote: > > > On Sat, Jan 27, 2024, 5:54=E2=80=AFPM Warner Losh wrote: > >> >> >> On Sat, Jan 27, 2024, 5:12=E2=80=AFPM Mario Marietto >> wrote: >> >>> Hello. >>> >>> I'm trying to upgrade as much as I can FreeBSD 10.4 because it is the >>> only one version that can compile some of the old arm 32 bit code I nee= d to >>> use for one of my projects. As you already know,packages don't work at >>> all,but ports almost work. I was trying to install xfce4 from ports,but= the >>> compilation stopped when it didn't accept this file : >>> >>> >>> http://distcache.FreeBSD.org/ports-distfiles/trousers-0.3.14.tar.gz >>> >>> >>> at this point,I decided to upgrade the system with : >>> >>> >>> # freebsd-update fetch >>> # freebsd-update install >>> >>> >>> and the ports tree with : >>> >>> >>> # portsnap fetch extract >>> # portsnap fetch update >>> >>> >>> At this point it asked me to update pkg,so I did : >>> >>> >>> # cd /usr/ports/ports-mgmt/pkg >>> # make >>> >>> >>> but unfortunately I got this error that I'm not able to fix : >>> >>> >>> set : illegal option -o pipefail >>> >>> >>> and I can't do anything anymore. I'm stuck here. Can someone help me to >>> fix it ? thanks. >>> >> >> Save a copy of /bin/sh. Check out stable/13 (or 12 if the following >> fails). Cd to src/bin/sh. Type make all. You may need -m >> /path/to/src/share/mk if make complains. Create a test area, I'll call i= t >> /destdir. Also mkdir /destdir/bin too. Then make install DESTDIR=3D/des= tdir. >> You may need to do this as root. Ignore the failures for the man pages a= nd >> maybe tests. You should have a /destdir/bin/sh. See if it runs. If so co= py >> it to /bin and try the upgrade again. >> >> I think 12 has pipefail. I dont think 11 does. 13 definitely has it. The >> error message is from the shell. >> > > > The command "set -o pipefail" is how you'll know if it will work.... or > stands a good chance of working. > > > Warner >> >> --=20 Mario. --000000000000bcce7b060ffd943b Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
# set -o pipefail
set : variable name must = begin with a letter.

On Sun, Jan 28, 2024 at 5:43=E2=80=AFAM Warne= r Losh <imp@bsdimp.com> wrote:<= br>


On Sat, Jan 27, 2024, 5:54=E2=80=AFPM Warner Losh <imp@bsdimp.com> wrote:
=

On Sat, Jan 27, 2024, 5:12=E2=80=AFPM Mario Marietto <marietto2008@gmail.com> wrote:

Hello.

I'm trying to upgrade as much as I can FreeBSD 10.4 because it is the only one version that can compile some of the old arm 32 bit code I need to use=20 for one of my projects. As you already know,packages don't work at=20 all,but ports almost work. I was trying to install xfce4 from ports,but=20 the compilation stopped when it didn't accept this file :


http://distcache.FreeBSD.org/ports-distfiles/trousers-0.3.14= .tar.gz


at this point,I decided to upgrade the system = with :


# freebsd-update fetch
# freebsd-update install


and the ports tree with :


# portsnap fetch extract
# portsnap fetch update


At this point it asked me to update pkg,so I did= :


# cd /usr/ports/ports-mgmt/pkg
# make


but unfortunately I got this error that I'm = not able to fix :


set : illegal option -o pipefail


and I can't do anything anymore. I'm stu= ck here. Can someone help me to fix it ? thanks.


Save a copy of= /bin/sh. Check out stable/13 (or 12 if the following fails). Cd to src/bin= /sh. Type make all. You may need -m /path/to/src/share/mk if make complains= . Create a test area, I'll call it /destdir. Also mkdir /destdir/bin to= o. Then make install=C2=A0 DESTDIR=3D/destdir. You may need to do this as r= oot. Ignore the failures for the man pages and maybe tests. You should have= a /destdir/bin/sh. See if it runs. If so copy it to /bin and try the upgra= de again.

I think 12 has= pipefail. I dont think 11 does. 13 definitely has it. The error message is= from the shell.

=

The command "set -= o pipefail" is how you'll know if it will work.... or stands a goo= d chance of working.

Warner=C2=A0=

<= blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-l= eft:1px solid rgb(204,204,204);padding-left:1ex">


--
Mario.
--000000000000bcce7b060ffd943b--