Date: Tue, 22 Aug 2023 13:59:02 +0200 From: Mario Marietto <marietto2008@gmail.com> To: Trenton Schulz <trenton@norwegianrockcat.com> Cc: Felix Palmen <zirias@freebsd.org>, emulation@freebsd.org, ports@freebsd.org Subject: Re: Building a Linuxulator userland from source Message-ID: <CA%2B1FSig=VQeifFnSLZscchK1OsTgDHCKtDmG-FbRUZ5DgrnDEg@mail.gmail.com> In-Reply-To: <87jztn5ogj.fsf@norwegianrockcat.com> References: <xcztahm3vu3bjghjqqxuoy2xabyjmyfq22jw6mkaaaqo7wa36s@fdq7dlvpuhlk> <d1fdffa65d8d83018448ea2565bee397@Leidinger.net> <pusevat67254zxani3p26zpktfozyeopw6nm2gxbkjvq7o4d5h@573vplxfsmsq> <67ea2b0e1f9ed5c695fb50c3d9a1d378@Leidinger.net> <nvl3etkac6d6miv4axj2mjbdtkkzc7rqrcqbco4f5uzljz5ryk@vlp2l4mirabf> <87jztn5ogj.fsf@norwegianrockcat.com>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --] CentOS has been replaced already successfully with Ubuntu and Devuan. On the FreeBSD forums there are a couple of nice tutorials. BTW if we can use even different user lands,we will be even happier. On Tue, Aug 22, 2023 at 1:04 PM Trenton Schulz <trenton@norwegianrockcat.com> wrote: > > 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 > > -- Mario. [-- Attachment #2 --] <div dir="ltr">CentOS has been replaced already successfully with Ubuntu and Devuan. On the FreeBSD forums there are a couple of nice tutorials. BTW if we can use even different user lands,we will be even happier. <br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Aug 22, 2023 at 1:04 PM Trenton Schulz <<a href="mailto:trenton@norwegianrockcat.com" target="_blank">trenton@norwegianrockcat.com</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"><br> Felix Palmen <<a href="mailto:zirias@freebsd.org" target="_blank">zirias@freebsd.org</a>> writes:<br> <br> ><br> > I assume/hope that's a minor risk. /usr/local is not in the <br> > standard<br> > search paths of the toolchain, so, must be added explicitly. A <br> > build<br> > system doing that without being requested to do so would be <br> > pretty much<br> > broken. Furthermore, the toolchain is built <br> > --with-sysroot=/compat/linux<br> > so prepends that to all the system search paths.<br> ><br> > Configure scripts finding *tools* in FreeBSD's /usr/local <br> > *might* be a<br> > risk. Not an issue building with poudriere (the build jail will <br> > only<br> > have what we want), but maybe an issue when someone builds the <br> > ports in<br> > a live system.<br> ><br> > Well, we will see :) At least, I already have the first ports <br> > building<br> > fine using shell and make from the Linux userland, e.g. here:<br> > <a href="https://github.com/Zirias/zfbsd-ports/blob/linux/sysutils/linux-man-db/Makefile" rel="noreferrer" target="_blank">https://github.com/Zirias/zfbsd-ports/blob/linux/sysutils/linux-man-db/Makefile</a><br> <br> This is really fascinating work, and I see value in this even if <br> some other way of doing things eventually replaces the Centos-7 items.<br> <br> Some of this has a bit of overlap with Gentoo prefix <br> (<a href="https://wiki.gentoo.org/wiki/Project:Prefix" rel="noreferrer" target="_blank">https://wiki.gentoo.org/wiki/Project:Prefix</a>), where one puts the <br> bare bones of a Gentoo distro under a "prefix" (for example, <br> /compat/linux), but then you can use Gentoo's portage <br> infrastructure to build the other parts of the system.<br> <br> I imagine, you are maybe thinking of your own set of linux-* in <br> the ports tree, but this might also be useful area to borrow from?<br> <br> Anyway, I'll lurk back into the shadows to see how this develops.<br> <br> Best regards,<br> <br> -- <br> Trenton<br> <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%2B1FSig=VQeifFnSLZscchK1OsTgDHCKtDmG-FbRUZ5DgrnDEg>
