From nobody Tue Aug 22 11:59:02 2023 X-Original-To: emulation@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4RVSZP6JJ5z4qnsd; Tue, 22 Aug 2023 11:59:41 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RVSZP3rnzz3R8M; Tue, 22 Aug 2023 11:59:41 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-ed1-x529.google.com with SMTP id 4fb4d7f45d1cf-525597d891fso5587692a12.3; Tue, 22 Aug 2023 04:59:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1692705580; x=1693310380; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=PNJxVEEufSjIJpy9dQ/De+bqMjk4iMTl84K5jKb2Ed8=; b=er9KsKInaKWetST/LqkBL9LK13nkXekZtAxCVY7CYdHOwGRT9ch8+4E26oAApBsZ1Y WfpTFxiAVbhaoBZQ9x69dwedTD1tP0pNW2fl5cd+qjllOIv4QYZHOA//y2Kko1tQDu9E NLELmsmUvNRi5HruoSw6b2/uF53nPY8RORvBdDlFa5lLN9+PBy38EVnaZbWhRqyfPtgx mywsNjMJAEpY9JJO/Kv/CL9KngfAtAlNSDK8z3vqsqCjAsHYvhKCxq1KODwXNvKAww0f 2GloOaA3dqhY124jKfBC2FijeAlc6ByljN1B3UtXj5g877CItKW8VIaL7kSene8Xxi69 4irg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692705580; x=1693310380; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=PNJxVEEufSjIJpy9dQ/De+bqMjk4iMTl84K5jKb2Ed8=; b=GVDniytYucA4Hp0NBdxaAaakpMn2UdZGuUBFwZck2OzHooKOJNoMm3Y8cHh08mFUFD JHHMUKOEZSfQuKrDG3eUQVnWeygpQX1gxrEnAle/8B1b8ak1IGlmRC5ayP8Jg15kA42E hAJAUKQOFYM7W5jWs2wfnwQ82hEHnIFxTkavrlCPwCDgC+IXcvl5iUT7wSsTzNN0/SH4 488UIGF3iK5GDZ5xUsDeBoKOmEQ8SWQ9b6yoxfL88q3l/EDcFGYleOjTo6cL3Z7hJekd gC+aBhXxkRjCRC5Pb7G9qGikOdW8zBX4YRJ4xLlQmnnVKAiCWfA1OkjGqPDJtzysKqUg yM/Q== X-Gm-Message-State: AOJu0YxGno9DOKZc2/bp/1JuQRFROcuKpeEVEPnajQfroKPXTKlCXOIh sBYjkI+rcylqt4LRIZ3W26qElHrFlmtB3cEpgjLc9pchyWBZjA== X-Google-Smtp-Source: AGHT+IHvTgw+FRlPstH+n+q62qq69diVMKJJK5D0x72zN5peZQA9Ngix5apUcIH3UWQip/PH3fM0jFP7rTDi45Pm4y4= X-Received: by 2002:a17:906:8a55:b0:99b:4bab:2838 with SMTP id gx21-20020a1709068a5500b0099b4bab2838mr7836366ejc.0.1692705579556; Tue, 22 Aug 2023 04:59:39 -0700 (PDT) List-Id: Development of Emulators of other operating systems List-Archive: https://lists.freebsd.org/archives/freebsd-emulation List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-emulation@freebsd.org MIME-Version: 1.0 References: <67ea2b0e1f9ed5c695fb50c3d9a1d378@Leidinger.net> <87jztn5ogj.fsf@norwegianrockcat.com> In-Reply-To: <87jztn5ogj.fsf@norwegianrockcat.com> From: Mario Marietto Date: Tue, 22 Aug 2023 13:59:02 +0200 Message-ID: Subject: Re: Building a Linuxulator userland from source To: Trenton Schulz Cc: Felix Palmen , emulation@freebsd.org, ports@freebsd.org Content-Type: multipart/alternative; boundary="000000000000c76177060381bab6" X-Rspamd-Queue-Id: 4RVSZP3rnzz3R8M X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US] --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 wrote: > > Felix Palmen 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
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 Tu= e, Aug 22, 2023 at 1:04=E2=80=AFPM Trenton Schulz <trenton@norwegianrockcat.com> wrote:
Felix Palmen <zi= rias@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.c= om/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.
--000000000000c76177060381bab6--