From nobody Thu Feb 1 12:07:49 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 4TQd3K1pNZz58W9b; Thu, 1 Feb 2024 12:08:29 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x635.google.com (mail-ej1-x635.google.com [IPv6:2a00:1450:4864:20::635]) (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 4TQd3J74Qrz4KdV; Thu, 1 Feb 2024 12:08:28 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ej1-x635.google.com with SMTP id a640c23a62f3a-a29c4bbb2f4so93984666b.1; Thu, 01 Feb 2024 04:08:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1706789307; x=1707394107; 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=QCeb6GvWnqzD7N77n8QHgYwhIoz8TiUmAwTeizfWkmA=; b=OEnamUYPpfMnP4viwgvgN6T3l3/ArGccWo3hEOLU/gi/8ufeT7UMznM9DQjCIllV+A fTsmgfMKOk2SIIWhmttyQiAhPgk0V89UykCntOpqKP7+pi2FRYgV66Y08fwWkxWuIAdZ ykIbfgxix5VK/uwYBx0+4msMFMGzJGZ685euL0Kh6uUOEEqDgDh85f2Rkedmh12kIO+R m3DChwmTWWzLJbhtj9Xn6+hgigwAeRuo2hKPDhloC1a5E21jpxRlv2vXxQxBrWGYmjsC yt01U+zdbZJ5hUm99++PKqr1oZwlp+eLOJVSlO3uKKs5drnKClu+UYyTyP29Oc6mDfYI ufpQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706789307; x=1707394107; 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=QCeb6GvWnqzD7N77n8QHgYwhIoz8TiUmAwTeizfWkmA=; b=tSAf1uKek+x4+cP+A+7YzquVc0f22vzGZeKLFzzGqtfzH3nFiMdf4ZDZ7hxbWhzmVP uXw0k4IxbdQYV8zpBxAOJXe/oJwpfIaaT1hrjFY4k7Cqq7cYfP90xwNU0pHWN4ggcmfT n+YfIa/d9C9bu0lPmxCGuZA6cZVmU3FHVvJBGmM4FJmjXLTnQ2UNlOiq1KclP+Cs8b/r SewvLDQdVIy4MWsArY6wtrxNhK6sk8Kukx4lpeNMjjQkGAiYRfQZN1LucF9rzu5FnlMu D1sLyMIi+rGRVmcYpKNCjsrIrK4oua2tix2ezOdEaRoXjMCU6dm0RQ6FUFVa3vkQzPQD VnHg== X-Gm-Message-State: AOJu0YwK5R/iFNV+qK3UXEJVdM8PjxStj5c0MUyYAOIutPJkqe/sXVtu 8N+IBE3sKydZVyLjCdGbfno6pIMoZYEdqBwCPkyMdoPXWJyq1pAlQarTdJyaQczC/WX00cMkeKJ PX8cEjAD/srWuu38R1VdmN4jqEXueVGHY X-Google-Smtp-Source: AGHT+IGMetaR9cu9qWIZj5VPBHupg5T7VFeLpwzCBZjnUZaGBVkcyhhjSnzCZFTV7BaHp1V9CjhTfYCQlFDqorvNCew= X-Received: by 2002:a17:906:c457:b0:a36:71c1:468c with SMTP id ck23-20020a170906c45700b00a3671c1468cmr3192547ejb.62.1706789306523; Thu, 01 Feb 2024 04:08:26 -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> <202402011141.411Bfq9W057810@donotpassgo.dyslexicfish.net> In-Reply-To: <202402011141.411Bfq9W057810@donotpassgo.dyslexicfish.net> From: Mario Marietto Date: Thu, 1 Feb 2024 13:07:49 +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="000000000000526765061050daf8" X-Rspamd-Queue-Id: 4TQd3J74Qrz4KdV 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] --000000000000526765061050daf8 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello Jamie, thanks. I don't know if you read my last email,but I have cut the problem at the root,by using the old version of the Mk Scripts,to be sure that it didn't have the pipefail parameter. I did like this because your script probably didn't remove some of those references and I got the same error. Unfortunately,when I tried to upgrade the port "pkg" to 1.20.9 I got a compilation error. I'm not able to upgrade the whole system until I'm not able to upgrade it. The error that I need to fix is : Invoked as: ./configure --prefix=3D/usr/local Tclsh: /usr/ports/ports-mgmt/pkg/work/pkg-1.20.9/jimsh0 Failed: cc -O2 -pipe -Wno-error -fstack-protector-strong -fno-strict-aliasing -c conftest__.c -o conftest__.o cc: error: unknown argument: '-fstack-protector-strong' =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The failed code was: #include int main(void) { return 0; } =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D On Thu, Feb 1, 2024 at 12:42=E2=80=AFPM Jamie Landeg-Jones wrote: > Mario Marietto wrote: > > > 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. > > I juat tested it on an old 11.1 box and it worked. The various files are > the > ones listed in the command, under /usr/ports/Mk/Scripts - there are about > 22 > that contain mentions of pipefail, though not all will be relevent to you= r > particilar cases. > > Yes, you can manually just delete the "set +o pipefail" and "set -o > pipefail" > commands as you find them, not forgetting the caveat mentioned in the > previous mail that you may miss some errors that may occur during buildin= g. > --=20 Mario. --000000000000526765061050daf8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hello=C2=A0Jamie,

thanks. I = don't know if you read my last email,but I have cut the problem at the = root,by using the old version of the Mk Scripts,to be sure that it didn'= ;t have the pipefail parameter. I did like this because your script probabl= y didn't remove some of those references and I got the same error. Unfo= rtunately,when I tried to upgrade the port "pkg" to 1.20.9 I got = a compilation error. I'm not able to upgrade the whole system until I&#= 39;m not able to upgrade it. The error that I need to fix is :
Invoked as: ./configure --prefix=3D/usr/local
Tclsh: /usr/p= orts/ports-mgmt/pkg/work/pkg-1.20.9/jimsh0
Failed: cc -O2 -pipe -Wno-err= or -fstack-protector-strong -fno-strict-aliasing -c conftest__.c -o conftes= t__.o
cc: error: unknown argument: '-fstack-protector-strong'=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
The failed code was:
#include &= lt;stdlib.h>
int main(void) {

return 0;
}
=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D

On Thu, Feb 1, 2024 at 12:42=E2=80=AFPM Jamie= Landeg-Jones <ja= mie@catflap.org> wrote:
Mario Marietto <marietto2008@gmail.com> wrote:

> Can you tell me where should be stored the references to pipefail ? Ma= ybe I
> will try to remove them manually. Maybe your command does not work out= of
> the box.

I juat tested it on an old 11.1 box and it worked. The various files are th= e
ones listed in the command, under /usr/ports/Mk/Scripts - there are about 2= 2
that contain mentions of pipefail, though not all will be relevent to your<= br> particilar cases.

Yes, you can manually just delete the "set +o pipefail" and "= ;set -o pipefail"
commands as you find them, not forgetting the caveat mentioned in the
previous mail that you may miss some errors that may occur during building.=


--
Mario.
--000000000000526765061050daf8--