Re: set : illegal option -o pipefail error while trying to upgrade pkg.

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Sun, 28 Jan 2024 22:04:26 UTC
Thanks.

You gave me the instructions about how to upgrade pkg on FreeBSD 10 for
armV6 ? This will be useful when I will install FreeBSD 10.04 (but I see
that I can even install 12.04) on my Chromebook. But at the moment I'm
trying to compile the only revision which allows to install FreeBSD on the
Chromebook :


# svnlite co http://svn.freebsd.org/base/head@269385 /usr/src

directly on my old Intel I5 CPU PC,where I have installed FreeBSD 10.4 x64 bit.

So,I would need to understand how to fix the pipefail error necessary
to upgrade pkg

and to install xfce4 as well as some other useful ports.

The idea of using the sh statically linked didn't work. I get a lot of
errors and

I doubt that I can fix them.


Thanks.


On Sun, Jan 28, 2024 at 7:18 PM Warner Losh <imp@bsdimp.com> wrote:

>
>
> On Sun, Jan 28, 2024 at 11:08 AM Craig Leres <leres@freebsd.org> wrote:
>
>> On 1/28/24 09:55, Warner Losh wrote:
>> > On Sun, Jan 28, 2024 at 10:53 AM Warner Losh <imp@bsdimp.com
>> > <mailto:imp@bsdimp.com>> wrote:
>> >
>> >     OK. On your 10.x arm system, you need to build /bin/sh using sources
>> >     from FreeBSD 13.
>> >     Binaries from 12 or 13 won't work on your 10.x system: libc doesn't
>> >     have the right symbols.
>> >     But source build against a 10.x system should work. That was my
>> >     suggestion. Too bad
>> >     pipefail didn't arrive until 14. So you'll need to build that on
>> >     your 14 system.
>> >
>> > ... need to build stable/14 on your 10.x system this should say. Rather
>> > an important
>> > detail I didn't catch on first proofreading.
>> What about just copying /rescue/sh from a new enough system?
>>
>> My build server is 13.2 but it has a 14.0-RELEASE-p4 poudriere jail and
>> the sh from that runs on 13.2 at least (and has pipefail). I tried to
>> test with an older version of FreeBSD but it looks like my spare machine
>> is too new for its usb keyboard to work with FreeBSD 10 or 11...
>>
>
> /rescue/sh will have system calls embedded in it that the old FreeBSD 10
> kernel will not understand. Between FreeBSD 11 and 12 we moved to
> 64bit inode sizes, adding a bunch of system calls that we don't fall back
> to the old versions of. Plus we've added a bunch of *at system calls that
> we now use always (they are more general than the old system calls, so
> those have changed into library routines that call the *at function in the
> right way).
>
> Warner
>


-- 
Mario.