Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 22 Aug 2023 12:55:51 +0200
From:      Trenton Schulz <trenton@norwegianrockcat.com>
To:        Felix Palmen <zirias@freebsd.org>
Cc:        emulation@freebsd.org, ports@freebsd.org
Subject:   Re: Building a Linuxulator userland from source
Message-ID:  <87jztn5ogj.fsf@norwegianrockcat.com>
In-Reply-To: <nvl3etkac6d6miv4axj2mjbdtkkzc7rqrcqbco4f5uzljz5ryk@vlp2l4mirabf>
References:  <xcztahm3vu3bjghjqqxuoy2xabyjmyfq22jw6mkaaaqo7wa36s@fdq7dlvpuhlk> <d1fdffa65d8d83018448ea2565bee397@Leidinger.net> <pusevat67254zxani3p26zpktfozyeopw6nm2gxbkjvq7o4d5h@573vplxfsmsq> <67ea2b0e1f9ed5c695fb50c3d9a1d378@Leidinger.net> <nvl3etkac6d6miv4axj2mjbdtkkzc7rqrcqbco4f5uzljz5ryk@vlp2l4mirabf>

next in thread | previous in thread | raw e-mail | index | archive | help

Felix Palmen <zirias@freebsd.org> writes:

>
> I assume/hope that's a minor risk. /usr/local is not in the 
> standard
> search paths of the toolchain, so, must be added explicitly. A 
> build
> system doing that without being requested to do so would be 
> pretty much
> broken. Furthermore, the toolchain is built 
> --with-sysroot=/compat/linux
> so prepends that to all the system search paths.
>
> Configure scripts finding *tools* in FreeBSD's /usr/local 
> *might* be a
> risk. Not an issue building with poudriere (the build jail will 
> only
> have what we want), but maybe an issue when someone builds the 
> ports in
> a live system.
>
> Well, we will see :) At least, I already have the first ports 
> building
> fine using shell and make from the Linux userland, e.g. here:
> https://github.com/Zirias/zfbsd-ports/blob/linux/sysutils/linux-man-db/Makefile

This is really fascinating work, and I see value in this even if 
some other way of doing things eventually replaces the Centos-7 items.

Some of this has a bit of overlap with Gentoo prefix 
(https://wiki.gentoo.org/wiki/Project:Prefix), where one puts the 
bare bones of a Gentoo distro under a "prefix" (for example, 
/compat/linux), but then you can use Gentoo's portage 
infrastructure to build the other parts of the system.

I imagine, you are maybe thinking of your own set of linux-* in 
the ports tree, but this might also be useful area to borrow from?

Anyway, I'll lurk back into the shadows to see how this develops.

Best regards,

-- 
Trenton



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?87jztn5ogj.fsf>