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
--000000000000c76177060381bab6 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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=E2=80=AFPM Trenton Schulz <trenton@norwegianro= ckcat.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=3D/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/Ma= kefile > > 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 > > --=20 Mario. --000000000000c76177060381bab6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"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=3D"gmail_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Tu= e, Aug 22, 2023 at 1:04=E2=80=AFPM Trenton Schulz <<a href=3D"mailto:tre= nton@norwegianrockcat.com" target=3D"_blank">trenton@norwegianrockcat.com</= a>> wrote:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0p= x 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><b= r> Felix Palmen <<a href=3D"mailto:zirias@freebsd.org" target=3D"_blank">zi= rias@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=3D/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=3D"https://github.com/Zirias/zfbsd-ports/blob/linux/sysutils/l= inux-man-db/Makefile" rel=3D"noreferrer" target=3D"_blank">https://github.c= om/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=3D"https://wiki.gentoo.org/wiki/Project:Prefix" rel=3D"noreferrer"= target=3D"_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=3D"all"><br><span class=3D"gmail_signature_pre= fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d= iv> --000000000000c76177060381bab6--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSig=VQeifFnSLZscchK1OsTgDHCKtDmG-FbRUZ5DgrnDEg>