Date: Wed, 31 Jan 2024 15:31:11 +0100 From: Mario Marietto <marietto2008@gmail.com> To: Jamie Landeg-Jones <jamie@catflap.org> Cc: wojtek@puchar.net, freebsd-questions@freebsd.org, freebsd-hackers@freebsd.org Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. Message-ID: <CA%2B1FSiifR-oyq%2BF=uG-6Lu_meRGvbPSqoKBYeqa3VjBn-1JJmA@mail.gmail.com> In-Reply-To: <202401311216.40VCGZSo001051@donotpassgo.dyslexicfish.net> References: <CA%2B1FSijXJUDtkmf0KKEtCJ_cFhg4Htc_a=q1BWt9mtGV1T7oLw@mail.gmail.com> <80d527f-df83-5657-6a2a-262156e08440@puchar.net> <CA%2B1FSihN7RpC9Wsh5pPnzX1dJHJgFQPsF=dRA6zQoJ5WiBdChQ@mail.gmail.com> <202401311216.40VCGZSo001051@donotpassgo.dyslexicfish.net>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] 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 PM Jamie Landeg-Jones <jamie@catflap.org> wrote: > Mario Marietto <marietto2008@gmail.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 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 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/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. [-- Attachment #2 --] <div dir="ltr"><div>Jamie,</div><div><br></div><div>I ran your script and it gave no error message,BUT I still got the error : </div><div><br></div><div>root@marietto:/usr/ports/ports-mgmt/pkg # make<br></div><div>set: illegal option -o pipefail....</div><div><br></div><div>?<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 31, 2024 at 1:16 PM Jamie Landeg-Jones <<a href="mailto:jamie@catflap.org">jamie@catflap.org</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Mario Marietto <<a href="mailto:marietto2008@gmail.com" target="_blank">marietto2008@gmail.com</a>> wrote:<br> <br> > What I haven't understood is why you are talking about newer ports when the<br> > only thing I do is to update ports using the same FreeBSD version,in this<br> > case 10.4. I mean,upgrading ports without upgrading the version of<br> > FreeBSD,can't mean to use newer ports,since I don't use a newer version of<br> > the OS.<br> <br> The ports infrastucture (under /usr/ports/Mk) now contains scripts that set<br> the "pipefail" option - these scripts are updated when you update the ports<br> tree.<br> <br> I had an old out-of-date box for a while, and used this quick hack to get<br> it to work.<br> <br> You need to run this after you update the ports tree:<br> <br> sed -i.bak '/^[[:space:]]*set [+-]o pipefail/d' /usr/ports/Mk/Scripts/*<br> <br> It removes the references to pipefail. This can mean that some build errors<br> are potentially not trapped, but if that's the case you're likely to notice<br> the failure anyway.<br> <br> Still best to update your system or your /bin/sh though!<br> <br> Cheers, Jamie<br> </blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSiifR-oyq%2BF=uG-6Lu_meRGvbPSqoKBYeqa3VjBn-1JJmA>
