From nobody Tue Aug 22 10:55:51 2023 X-Original-To: ports@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 4RVRL76ZRYz4ql28; Tue, 22 Aug 2023 11:03:59 +0000 (UTC) (envelope-from trenton@norwegianrockcat.com) Received: from mailtransmit04.runbox.com (mailtransmit04.runbox.com [IPv6:2a0c:5a00:149::25]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4RVRL74yxCz3NSS; Tue, 22 Aug 2023 11:03:59 +0000 (UTC) (envelope-from trenton@norwegianrockcat.com) Authentication-Results: mx1.freebsd.org; none Received: from mailtransmit03.runbox ([10.9.9.163] helo=aibo.runbox.com) by mailtransmit04.runbox.com with esmtps (TLS1.2) tls TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 (Exim 4.93) (envelope-from ) id 1qYPAx-00HI54-8k; Tue, 22 Aug 2023 13:03:55 +0200 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=norwegianrockcat.com; s=selector2; h=Content-Type:MIME-Version:Message-ID: In-reply-to:Date:Subject:Cc:To:From:References; bh=wSqZTaKJexY+5hSTs7lw+d2SmDqUUVtkdRDtmaiYklA=; b=BRTCWerz1543u8zi/j4Bsx9YiU UUR3kLUfSpqo/Cbew6QRv+h1eLgr0Dtb/4nCWa2j17U7XWFBxxrjKmN2oYrcNsGIOj3L6PQ2mCegg ACW5zRoIy5VIWO6SxCZqfmHJsL0TbISed05CgtuX6uZ9A+jK/SFDMi3dGYHtunaNhkJdkPGNqYlTm lN+eMSTZKDIwBLkeHuOKdr5ups1X/rDAit3x0p1JRQsE43dXMLFD8Jfz4N/w+Q87kNRQfhbc85juv UjSpgGLtyCJVs4BDrIvIbJWSVF1aKCxk90Ui9c2A4WRgRVZep2Twqnlh6Aki3UrVS+n1Wn8S5ozRi Z9ClhxfA==; Received: from [10.9.9.73] (helo=submission02.runbox) by mailtransmit03.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1qYPAw-0007y5-QS; Tue, 22 Aug 2023 13:03:55 +0200 Received: by submission02.runbox with esmtpsa [Authenticated ID (786124)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1qYPAj-0007F3-R4; Tue, 22 Aug 2023 13:03:41 +0200 References: <67ea2b0e1f9ed5c695fb50c3d9a1d378@Leidinger.net> User-agent: mu4e 1.10.6; emacs 29.1 From: Trenton Schulz To: Felix Palmen Cc: emulation@freebsd.org, ports@freebsd.org Subject: Re: Building a Linuxulator userland from source Date: Tue, 22 Aug 2023 12:55:51 +0200 In-reply-to: Message-ID: <87jztn5ogj.fsf@norwegianrockcat.com> List-Id: Porting software to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-ports List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-ports@freebsd.org X-BeenThere: freebsd-ports@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; format=flowed X-Rspamd-Queue-Id: 4RVRL74yxCz3NSS 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:50304, ipnet:2a0c:5a00::/29, country:NO] 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=/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