From nobody Sun Jan 28 04:42:51 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 4TMzMF2yT4z57jfT for ; Sun, 28 Jan 2024 04:43:05 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (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 4TMzMD4L1wz3wpP for ; Sun, 28 Jan 2024 04:43:04 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=bsdimp-com.20230601.gappssmtp.com header.s=20230601 header.b=z5ZLlGoP; dmarc=none; spf=none (mx1.freebsd.org: domain of wlosh@bsdimp.com has no SPF policy when checking 2a00:1450:4864:20::529) smtp.mailfrom=wlosh@bsdimp.com Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-557dcb0f870so1317780a12.2 for ; Sat, 27 Jan 2024 20:43:04 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1706416983; x=1707021783; 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=YHnQVpK16v579K1Vn33YP44OwS1kkObmfkOi9Zbb8x0=; b=z5ZLlGoPruIIc2ocJ8w5p2L0iDhI41f4L5dD2LC/mEsvcOrtTFUqtYxX4rf+ed471w jpli1zyap/JC7/vY9sSbyM215ezaWTDzYGGup3STuL7ag44Zqhw0VgvZ5bb4T1BE9858 1rvxX2GLeVLbnDr7SlubABEJuI0d1zd54KREz1YZAz6R/VhV2l0PV1atOOEZMsqrpGFI p63YmVDVd2tnennnvFPPYBbONdYy0LpjiOOqXIwdQbyy6Qj7LUTFMErHj3MRw+gkbPAs TaGFzQ3DEmwY1Fx56RxYh1knjv5DlAjqb5uMXvb0e26LT5QIcJ+IYAnSUz23+4Kj0Uv8 Ro0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706416983; x=1707021783; 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=YHnQVpK16v579K1Vn33YP44OwS1kkObmfkOi9Zbb8x0=; b=e/hA9a3VfX8G7VdFXp6nVLRpiYRDT/K2kNX8Rm/kIlqvoaV61NnDL+XWZkoeDoX8Nm 7JPzvjkFAlyAN8uYKcN2MqT28v3D7MZmM0yHQ+ndyhf6pvCmvtauAdsQ5EyPmIZLvSZh Efr+Fwxs7Lnat4hqh3Wkj7mfQXet2qjffRMDv6+KQ8DZvLQsR0VIeuMO86u8V8tqXR0z 0Kqr6LuPf1AoIAMMJ90kFJOV8IQbBMxlfiQZipL2lm+EOepYJgkrGygGCRMYiidufE04 LccCS7ksal5mmQ9C9sKyPcdlEsfpaxNyHxXS2/w6FiSy8ZcbbqIMRL3PNQZwGvjjgDR/ t/UQ== X-Gm-Message-State: AOJu0YwE3+8a+1ocTQqUP2fHdzLIVEnnlFX/0Bmy7p6PPvpkUgchtTEp oRvnRb1MOaggXo2RJJBNjS+MnFefLBLd3+8azV3R818jTtjh/rHBYN5mHayTysLpjoTmpZpWnqt hsqxMaecAGhMAcG7z7cW3/2nWCv4S3vFcOfrhamTw3n1jICrn X-Google-Smtp-Source: AGHT+IFHQJoswM1GSzEQkzHfy9vc5k3rJjraJgcO8atm/Pf1qNpxeq8Cdsd3qrW4+FTeW7mIpVeeceBZ35lATDBD/Js= X-Received: by 2002:a05:6402:2692:b0:55d:394f:2598 with SMTP id w18-20020a056402269200b0055d394f2598mr1896548edd.3.1706416982801; Sat, 27 Jan 2024 20:43:02 -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 21:42:51 -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="000000000000194f6f060ffa2ade" X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; FORGED_SENDER(0.30)[imp@bsdimp.com,wlosh@bsdimp.com]; R_DKIM_ALLOW(-0.20)[bsdimp-com.20230601.gappssmtp.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; RCVD_COUNT_ONE(0.00)[1]; R_SPF_NA(0.00)[no SPF record]; MIME_TRACE(0.00)[0:+,1:+,2:~]; ARC_NA(0.00)[]; MISSING_XM_UA(0.00)[]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::529:from]; DMARC_NA(0.00)[bsdimp.com]; FREEMAIL_TO(0.00)[gmail.com]; RCVD_TLS_LAST(0.00)[]; FROM_NEQ_ENVFROM(0.00)[imp@bsdimp.com,wlosh@bsdimp.com]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[3]; TO_MATCH_ENVRCPT_SOME(0.00)[]; TO_DN_ALL(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; DKIM_TRACE(0.00)[bsdimp-com.20230601.gappssmtp.com:+] X-Rspamd-Queue-Id: 4TMzMD4L1wz3wpP --000000000000194f6f060ffa2ade Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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 need= 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 it > /destdir. Also mkdir /destdir/bin too. Then make install DESTDIR=3D/dest= dir. > You may need to do this as root. Ignore the failures for the man pages an= d > maybe tests. You should have a /destdir/bin/sh. See if it runs. If so cop= y > 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 > > --000000000000194f6f060ffa2ade Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable


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


On Sat, Jan 27, 2= 024, 5:12=E2=80=AFPM Mario Marietto <marietto2008@gmail.c= om> 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

--000000000000194f6f060ffa2ade--