From nobody Wed Jan 31 14:45:29 2024 X-Original-To: freebsd-hackers@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 4TQ4bj0Zltz58fw0; Wed, 31 Jan 2024 14:46:09 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) (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 4TQ4bg6pjRz3x4y; Wed, 31 Jan 2024 14:46:07 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b="Msb/dDNC"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::52c as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-55f19a3ca7aso1850199a12.1; Wed, 31 Jan 2024 06:46:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706712366; x=1707317166; 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=a2HbxWPGtCb3J4yT1cBIValySXAmSIL7eDlOsAGreRM=; b=Msb/dDNCtls/v/wAp4AY4OjJKGU5W+79Zw0cKZ4/sRtIRxXXeIeyruunYYrkpG2ra4 6wdT9AROU8Qr2lp9IxEqKdVFnKkN2L/fHcqyX0xKIyJhW9z1EIOr3h6HEA+u/DRHjN50 Gr4oTFPk+f92wEClgXSEjwV2Dqp7p9jw3NNsA1rN2kGzPffJPrOIUnKJ/TY0dUMAFbw5 ZCN27TmILEAMLVeZGy2Dy3f+xIdK8Qf801yJzHLG7832MLeGu6Ic/MRfAHbjoMWaJ2qG 3zpSeGBoSWk3etK+m/yjZX236Ql/DvOReydBQfeksQtZLJrxavsfo6yG9REo+FWrrVFM DWKg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706712366; x=1707317166; 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=a2HbxWPGtCb3J4yT1cBIValySXAmSIL7eDlOsAGreRM=; b=cm/lR1Z/0XeLhQJcxkTSHdDoyENIGP3Y9iA9H2vHgQQfekxBmb21FjLyeXq94ZIAjV SBKbAOKXj1+V85Azs8yH2ehX/3NoqWVXZ3jUVav+YD69/KKq8vQ8XyJ7ZSsAAo6t5CoH hkYXE+CJ2GrUdWoX1Bz09y8OC62VSJYB5D4vHSCVql0AUYQCJdcnBRgqlN0khK75lw3r +GvwCmRkOQ5r6sp0bWQpBsg3d7GMv6o8nSPSmRxGLjrDVqJSjjaDalPchF2K/wv/Olj3 zRjKa0nwHYQWmBIBxTlY1IlP6TexSjAGX8esQYF0zgH8bKNmRXo0Pwbj/aQNIUIXzVIy e5fw== X-Gm-Message-State: AOJu0Yw7KrIj2zZqXDFZdIV7cfzBpvGGWNOHZwd443lLRu6v0d1niAxo 8DmCzc6pfrCqawaCrQ2Ac6i3aFC+pADDzanEcV4yVCJ/m9daVdDJqG5HcN2Kt8gdEe2DRsmq3Er nExcf78AGMMpcvpMmoqCQAjW3T84= X-Google-Smtp-Source: AGHT+IE5gPZ1u2GN3oEnRTl2IzFn8pMeu4vgb5IPz/aTghalsg1Ugj/levpJ2LpKfTC2MGdCuE9FCnUuhQA6Yk6g+mE= X-Received: by 2002:a17:906:254a:b0:a23:5939:759e with SMTP id j10-20020a170906254a00b00a235939759emr1646604ejb.26.1706712366202; Wed, 31 Jan 2024 06:46:06 -0800 (PST) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@freebsd.org MIME-Version: 1.0 References: <80d527f-df83-5657-6a2a-262156e08440@puchar.net> <202401311216.40VCGZSo001051@donotpassgo.dyslexicfish.net> In-Reply-To: From: Mario Marietto Date: Wed, 31 Jan 2024 15:45:29 +0100 Message-ID: Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. To: Jamie Landeg-Jones Cc: wojtek@puchar.net, freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Content-Type: multipart/alternative; boundary="00000000000052417506103ef0f6" X-Spamd-Bar: --- X-Spamd-Result: default: False [-3.77 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-0.77)[-0.772]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36:c]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; TO_DN_SOME(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; ARC_NA(0.00)[]; FREEMAIL_FROM(0.00)[gmail.com]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmail.com]; MISSING_XM_UA(0.00)[]; MIME_TRACE(0.00)[0:+,1:+,2:~]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::52c:from]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org,freebsd-hackers@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_THREE(0.00)[4]; TO_MATCH_ENVRCPT_SOME(0.00)[]; RCVD_TLS_LAST(0.00)[]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; MID_RHS_MATCH_FROMTLD(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+] X-Rspamd-Queue-Id: 4TQ4bg6pjRz3x4y --00000000000052417506103ef0f6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Can you tell me where should be stored the references to pipefail ? Maybe I will try to remove them manually. Maybe your command does not work out of the box. On Wed, Jan 31, 2024 at 3:31=E2=80=AFPM Mario Marietto wrote: > Jamie, > > I ran your script and it gave no error message,BUT I still got the error = : > > root@marietto:/usr/ports/ports-mgmt/pkg # make > set: illegal option -o pipefail.... > > ? > > On Wed, Jan 31, 2024 at 1:16=E2=80=AFPM Jamie Landeg-Jones > wrote: > >> Mario Marietto wrote: >> >> > What I haven't understood is why you are talking about newer ports whe= n >> the >> > only thing I do is to update ports using the same FreeBSD version,in >> this >> > case 10.4. I mean,upgrading ports without upgrading the version of >> > FreeBSD,can't mean to use newer ports,since I don't use a newer versio= n >> of >> > the OS. >> >> The ports infrastucture (under /usr/ports/Mk) now contains scripts that >> set >> the "pipefail" option - these scripts are updated when you update the >> ports >> tree. >> >> I had an old out-of-date box for a while, and used this quick hack to ge= t >> it to work. >> >> You need to run this after you update the ports tree: >> >> sed -i.bak '/^[[:space:]]*set [+-]o pipefail/d' /usr/ports/Mk/Scripts/* >> >> It removes the references to pipefail. This can mean that some build >> errors >> are potentially not trapped, but if that's the case you're likely to >> notice >> the failure anyway. >> >> Still best to update your system or your /bin/sh though! >> >> Cheers, Jamie >> > > > -- > Mario. > --=20 Mario. --00000000000052417506103ef0f6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Can you tell me where should be stored the references to p= ipefail ? Maybe I will try to remove them manually. Maybe your command does= not work out of the box.

On Wed, Jan 31, 2024 at 3:31=E2=80=AFPM Mario= Marietto <marietto2008@gmail.= com> wrote:
Jamie,

I ran your script = and it gave no error message,BUT I still got the error :=C2=A0
root@marietto:/usr/ports/ports-mgmt/pkg # make
s= et: illegal option -o pipefail....

?

On W= ed, Jan 31, 2024 at 1:16=E2=80=AFPM Jamie Landeg-Jones <jamie@catflap.org> wrote:
=
Mario Marietto <= marietto2008@gm= ail.com> wrote:

> What I haven't understood is why you are talking about newer ports= when the
> only thing I do is to update ports using the same FreeBSD version,in t= his
> case 10.4. I mean,upgrading ports without upgrading the version of
> FreeBSD,can't mean to use newer ports,since I don't use a newe= r version of
> the OS.

The ports infrastucture (under /usr/ports/Mk) now contains scripts that set=
the "pipefail" option - these scripts are updated when you update= the ports
tree.

I had an old out-of-date box for a while, and used this quick hack to get it to work.

You need to run this after you update the ports tree:

sed -i.bak '/^[[:space:]]*set [+-]o pipefail/d' /usr/ports/Mk/Scrip= ts/*

It removes the references to pipefail. This can mean that some build errors=
are potentially not trapped, but if that's the case you're likely t= o notice
the failure anyway.

Still best to update your system or your /bin/sh though!

Cheers, Jamie


--
Mario.


--
Mario.
--00000000000052417506103ef0f6--