Date: Sat, 27 Jan 2024 17:54:03 -0700 From: Warner Losh <imp@bsdimp.com> To: Mario Marietto <marietto2008@gmail.com> Cc: FreeBSD Mailing List <freebsd-questions@freebsd.org>, freebsd-hackers <freebsd-hackers@freebsd.org> Subject: Re: set : illegal option -o pipefail error while trying to upgrade pkg. Message-ID: <CANCZdfqTdrPqswGPiku5f4ror2pxUr8MwpQPDqC15uYY8MkfkQ@mail.gmail.com> In-Reply-To: <CA%2B1FSijXJUDtkmf0KKEtCJ_cFhg4Htc_a=q1BWt9mtGV1T7oLw@mail.gmail.com> References: <CA%2B1FSijXJUDtkmf0KKEtCJ_cFhg4Htc_a=q1BWt9mtGV1T7oLw@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <marietto2008@gmail.co= m> 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 <div dir=3D"auto"><br><br><div class=3D"gmail_quote" dir=3D"auto"><div dir= =3D"ltr" class=3D"gmail_attr">On Sat, Jan 27, 2024, 5:12=E2=80=AFPM Mario M= arietto <<a href=3D"mailto:marietto2008@gmail.com" target=3D"_blank" rel= =3D"noreferrer">marietto2008@gmail.com</a>> wrote:<br></div><blockquote = class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc solid= ;padding-left:1ex"><div dir=3D"ltr"><div style=3D"max-width:800px"><div><p>= Hello.</p><p>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 :</p><p><br></p= ><p><a href=3D"http://distcache.FreeBSD.org/ports-distfiles/trousers-0.3.14= .tar.gz" rel=3D"noopener nofollow ugc noreferrer noreferrer" target=3D"_bla= nk">http://distcache.FreeBSD.org/ports-distfiles/trousers-0.3.14.tar.gz</a>= </p><p><br></p><p>at this point,I decided to upgrade the system with :</p><= p><br></p><pre><code># freebsd-update fetch # freebsd-update install </code></pre><p><br></p><p>and the ports tree with :</p><p><br></p><pre><co= de># portsnap fetch extract # portsnap fetch update </code></pre><p><br></p><p>At this point it asked me to update pkg,so I did= :</p><p><br></p><pre><code># cd /usr/ports/ports-mgmt/pkg # make </code></pre><p><br></p><p>but unfortunately I got this error that I'm = not able to fix :</p><p><br></p><pre><code>set : illegal option -o pipefail </code></pre><p><br></p><p>and I can't do anything anymore. I'm stu= ck here. Can someone help me to fix it ? thanks.</p></div></div></div></bl= ockquote></div><div dir=3D"auto"><br></div><div dir=3D"auto">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.</div><div dir=3D"auto"><br></div><div dir=3D"auto">I think 12 has= pipefail. I dont think 11 does. 13 definitely has it. The error message is= from the shell.</div><div dir=3D"auto"><br></div><div dir=3D"auto">Warner= =C2=A0</div><div dir=3D"auto"><br></div><div class=3D"gmail_quote" dir=3D"a= uto"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-le= ft:1px #ccc solid;padding-left:1ex"> </blockquote></div></div> --000000000000d8ee86060ff6f7b9--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfqTdrPqswGPiku5f4ror2pxUr8MwpQPDqC15uYY8MkfkQ>