From nobody Sun Jan 28 00:54:03 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 4TMtHF4RPfz59HQ3 for ; Sun, 28 Jan 2024 00:54:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-wr1-x42a.google.com (mail-wr1-x42a.google.com [IPv6:2a00:1450:4864:20::42a]) (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 4TMtHF2ZjNz4Xjx for ; Sun, 28 Jan 2024 00:54:17 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-33ae51f8111so494842f8f.2 for ; Sat, 27 Jan 2024 16:54:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1706403255; x=1707008055; 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=TgcIyJVSuTI4S68jtho2tQ2CWuN9mK3zirsN7YtfiPU=; b=yCT7qBPTHBUGMqvSmgnqryVPChOJAMHuXdb1rw+fEOtn5h8KpK/uzVVgZD4vm21830 rsegMuzFG7osyFoym1yPUhFAb02UMGMKUpIPoXu3wEMAS4GYX0tTA9XhgXPXb0sdHj/8 SO24NxhqIhnWh7TAwBR3fOmAWUYW8YAclGo8mxSdhFX6MosHPo2RFPGCumoini2TMTnq LIqZeeo1DkbdWDRSAfnBSeUFLOY/TSZKWy+lg2gU2x+cYPE5Zi6/QMlGh1aq0gaMvOwu /wpghVr9kQHuZ2jm21Uf6tDg0Fzkojnbr3YXIUOXqfuHUZ34jYdRff3dX3JewGuIEF28 IWYg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706403255; x=1707008055; 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=TgcIyJVSuTI4S68jtho2tQ2CWuN9mK3zirsN7YtfiPU=; b=PIzGqKk3QOBEzj1iZx9hfh5GKEwo1oirTQXcGdCck+5773TOPKOf0xUlDpRFRt9yUi gODDi2xmmK09Tumu8kPO9aWZZ3P3AGhlwNvPMFKqEyQBkQAcMbq5Z/bfhPCMwMZkbRXG Ph8R/KBKHBrkF6BrE1S3eFZssf0kMhWwrecRhOj7xpP4b532QZbzgc5zalGqeiyv13ES YC20dm0zHm1fBxSAlLRIoereX1fD/z/AGpWSABzgaWpN4PUyXLpHMac5qcVrNppittxl rpQVwCmxgq0odgPJF/Q4l4ImKwfDKXlWSuWsFaZtvaruHlf1i52swZl1LEIikbHy5lPW CX8w== X-Gm-Message-State: AOJu0YxuClunnIjgI14Nr2hw+4wgivzMJL6z0kQ79Sv2Xtthg4OoZTof tz3VMd+8VnHSiavcQPLeqfR2D/wU3LPkPG6kyzjQ/Hj6rHjo/JI/HfftIMkFsQhstV64eJ2qeLC o/7w7CtpL7EiRFTdH1Qc1UFf0pPJrxQlvhB+oUA== X-Google-Smtp-Source: AGHT+IFX/5VfjMweeMip0kGNKkkzjCgueOgTvxjKDB9cKmHyNTgnTOz+GIeQ5ws7+6DUUD6DXL8rGDi0RH+s7ejidqM= X-Received: by 2002:a5d:484a:0:b0:337:5a16:bef6 with SMTP id n10-20020a5d484a000000b003375a16bef6mr1446817wrs.40.1706403254818; Sat, 27 Jan 2024 16:54:14 -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: Warner Losh Date: Sat, 27 Jan 2024 17:54:03 -0700 Message-ID: Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. To: Mario Marietto Cc: FreeBSD Mailing List , freebsd-hackers Content-Type: multipart/alternative; boundary="000000000000d8ee86060ff6f7b9" X-Rspamd-Queue-Id: 4TMtHF2ZjNz4Xjx 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] --000000000000d8ee86060ff6f7b9 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 onl= y > one version that can compile some of the old arm 32 bit code I need to us= e > for one of my projects. As you already know,packages don't work at all,bu= t > 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 it /destdir. Also mkdir /destdir/bin too. Then make install DESTDIR=3D/destdir. You may need to do this as root. 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 upgrade again. I think 12 has pipefail. I dont think 11 does. 13 definitely has it. The error message is from the shell. Warner --000000000000d8ee86060ff6f7b9 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


On Sat, Jan 27, 2024, 5:12=E2=80=AFPM Mario M= arietto <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 :

<= p>

# 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.

Warner= =C2=A0

--000000000000d8ee86060ff6f7b9--