From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id wPROFd6wzWKEHwAAbAwnHQ (envelope-from ) for ; Tue, 12 Jul 2022 19:35:26 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id wHZpFN6wzWKeeAAAG6o9tA (envelope-from ) for ; Tue, 12 Jul 2022 19:35:26 +0200 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 128DAD553 for ; Tue, 12 Jul 2022 19:35:26 +0200 (CEST) Received: from localhost ([::1]:49516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBJn8-00079p-LX for larch@yhetil.org; Tue, 12 Jul 2022 13:35:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:43576) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oBJmR-00079f-N5 for guix-devel@gnu.org; Tue, 12 Jul 2022 13:34:39 -0400 Received: from cascadia.aikidev.net ([173.255.214.101]:37550) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oBJmP-0000wF-5Y for guix-devel@gnu.org; Tue, 12 Jul 2022 13:34:39 -0400 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:7:77:0:20]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 0ED4D1ABC4; Tue, 12 Jul 2022 10:34:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=debian.org; s=1.vagrant.user; t=1657647270; bh=oAo2HMf3FoFLHS7fqSbSAMx4wfJDJtQy5EISGhV2fqc=; h=From:To:Subject:In-Reply-To:References:Date:From; b=DcQbO8AKhGv9Iq9uhnc+5XMi4s0Rrym2Y8RHYtZLu3uJAZn2IHnoeV13AdH/0ps6X iWGMTNDemfQEcAhxn5XusDo+9rwGLNpErdZpnbmg99hG+2ZlZ4r15E5vAbkI5WfQ1s remua7wvIaDy/En455pVYZWOEi5MR5agzhJkoqBa0/B/thEIShJrX/xGzAacXr4oSW ZTj7vvxTRksALabOzYs0YpVeBJiqydnPtaxVz68V4VdNJGyz+C2drew8Cx+oMfU0p1 zpkDjxqJxM6hZURlfMSMmmQ3tAQkp/lFhN7xaQ+L+JwfytJnGBk2zD2/oRipGGxkbI Lr/anhl7LC/Jw== From: Vagrant Cascadian To: John Kehayias , "guix-devel@gnu.org" Subject: Re: [WIP Patch] Adding an FHS container to guix shell In-Reply-To: References: Date: Tue, 12 Jul 2022 10:34:25 -0700 Message-ID: <87zghejkv2.fsf@contorta> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha512; protocol="application/pgp-signature" Received-SPF: none client-ip=173.255.214.101; envelope-from=vagrant@debian.org; helo=cascadia.aikidev.net X-Spam_score_int: -21 X-Spam_score: -2.2 X-Spam_bar: -- X-Spam_report: (-2.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.082, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1657647326; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=Qazj59yFjr3Pvol4CPagYzS4eSQoMMTzvSOMlLBRZFM=; b=Kg418alYE36wxrBDOVV86NwR16gpIIjuQt7lf9JXHNiYAXPVPk0pFMq0NcKCNkNnjaj+aE BIZLoWJs+kICONuQLy0pKIa/6Y5vUbuPB+SaYvIRHeHDQabLo4Lg3j6lbf5Eku3xFsRN9p 4NPGYFrBvQY1U2yYUH157iS4M1aIPIyLvqHt3nUDKEpVbcWY+E9GVGMTprH+GUUzakUvQI CMvNd0AkaVPM6MW9SUGnU69zi5AZiggrQ/wRXNg6IUBQ2HXgQFiK1yr/16R0lnuvjQYIQh 8ZRoI9vb+vWfcncAvKMEdy3Sgr3Qy54Yj/RcBtOsPD71J/y0ohNfWEHddu//5Q== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1657647326; a=rsa-sha256; cv=none; b=nIOsT7m1BDTLo5KXdBLhfXtjeawNVxiARwNfcIWOaxC1Sa2WPchYFqiGmwiiOn7I75hkNe mHgkely5aYpE6nmInLUhrV5pbfA1ZSkIBZ/BHjiUB5dEWRSMaZH/OzwwQ4ESpFE2XplVNG /T/cHqszoAbnKzTkVCJhrSzVBcVwNTDGbw9gguTu9pcEOw0tPplcQpXQPH4Gl9/vkGs2yj Wk7PUBySAHEfmjfcbKKMIM4/TtBL77pzV25k855ZlLxA64pbYQnAH+CkVxILqAcsRbskYE cpzSFsvdEyLYZ5Vzv/T3mZ5oRxkBvg3W8MV1H8dGff4er+2klIKu7z/PrBeC7g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=debian.org header.s=1.vagrant.user header.b=DcQbO8AK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -7.05 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=debian.org header.s=1.vagrant.user header.b=DcQbO8AK; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: 128DAD553 X-Spam-Score: -7.05 X-Migadu-Scanner: scn1.migadu.com X-TUID: 8gBav4djl4tq --=-=-= Content-Type: text/plain On 2022-07-12, John Kehayias wrote: > Apologies for the long email, so let me start with the punchline: > attached is a diff which adds an '--fhs-container' (or -F) option to > guix shell/environment to set up an FHS-like container. This includes > the usual /lib directory and a glibc which loads (a generated in the > container) /etc/ld.so.cache. This should allow running most things > that expect a more "typical" Linux environment. Give it a try! Nice! > 1. Set up directories like /lib. This is easy enough and can be done > currently, like in roptat's response here [1] by building the profile > first to know where to link to. Note that it is easier to do it within > the environment code since we have access to the profile even if it is > being built for the first time. There are some wrinkles with linking > something like /bin since we currently add a link for sh; see the > comments in my diff. > > Right now I did not handle a multi-arch setup, though that shouldn't > be too difficult. This would probably require an option to build > either all or specified packages for an additional arch, like 32bit in > a 64bit system, and make the libraries available (/lib32 or > something). Though may run into a union-build bug [2]? This might be splitting hairs, but that sounds like a bi-arch setup e.g. "/lib and /lib32" vs. a multi-arch setup "/lib, /lib/aarch64-linux-gnu/ and /lib/i386-linux-gnu" https://wiki.debian.org/Multiarch Not sure how many extra hoops you'd need to jump through to make either work well. live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYs2woQAKCRDcUY/If5cW qqBoAPwO07BYee8VYF2c+uExFoWzytYkwLX1O5ujEqHjjHtO3QD8DDyC3xu3B9h2 Bvp8fJY9EvklGogM0jP0dkORfGqbjgQ= =XhIv -----END PGP SIGNATURE----- --=-=-=--