From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp10.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id QKfcHWu+F2KDRwAAgWs5BA (envelope-from ) for ; Thu, 24 Feb 2022 18:20:43 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp10.migadu.com with LMTPS id gNiGFmu+F2IMKQAAG6o9tA (envelope-from ) for ; Thu, 24 Feb 2022 18:20:43 +0100 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 B21F238E21 for ; Thu, 24 Feb 2022 18:20:42 +0100 (CET) Received: from localhost ([::1]:54206 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nNHnF-0002Dg-Kj for larch@yhetil.org; Thu, 24 Feb 2022 12:20:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:33462) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nNHmG-0002DY-IV for help-guix@gnu.org; Thu, 24 Feb 2022 12:19:40 -0500 Received: from [2001:910:1314:ffff::1] (port=58272 helo=gnutoo.cyberdimension.org) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1nNHmD-0006gI-Mc for help-guix@gnu.org; Thu, 24 Feb 2022 12:19:40 -0500 Received: from gnutoo.cyberdimension.org (localhost [127.0.0.1]) by cyberdimension.org (OpenSMTPD) with ESMTP id 33da2c74 for ; Thu, 24 Feb 2022 17:18:37 +0000 (UTC) Received: from primarylaptop.localdomain (localhost [::1]) by gnutoo.cyberdimension.org (OpenSMTPD) with ESMTP id 765dd2c7 for ; Thu, 24 Feb 2022 17:18:36 +0000 (UTC) Date: Thu, 24 Feb 2022 18:19:50 +0100 From: Denis 'GNUtoo' Carikli To: help-guix@gnu.org Subject: Are Guix and its install script incompatible with guix pack on purpose? Message-ID: <20220224181950.38ea05de@primarylaptop.localdomain> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.31; i686-pc-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/A_1u048/la1ARJZkg/=9Ceo"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Host-Lookup-Failed: Reverse DNS lookup failed for 2001:910:1314:ffff::1 (failed) Received-SPF: pass client-ip=2001:910:1314:ffff::1; envelope-from=GNUtoo@cyberdimension.org; helo=gnutoo.cyberdimension.org X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-guix@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1645723243; 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:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=K5GK/wtTbBZWahbwA57LPadc44Ju0N6UB0UH4xbD/nM=; b=uZlzOqELFrJyKztO96MnyKZWnGu9SmKg+xwsrAGg7YO4sroXbizwp7TiIJ1b+TMWQe6wnh c2e+qaax8h1HbgdgB+4dIgLeDZ6rJNKZS7CokpC+qxDTI3/70HH5Tb1hOJsFQZLNUgJkQB XTRckUBL25wpoGUhWYfIWjwmirWFGPPPENdodfUsgXQtzv1SS0u1Q8UxBGa3LHVNzRDrxZ MAEgnVD1Qf4Kk7euPT/hY+0RQ9S5CWHXNgkW8xO3dDQrh6VaswYidXWNBdClsB60xxXUv2 gfonJeaifQ1COHhA5cT8qGdSsBflkj2xw8Os+dDYepCPW/h6VtHBdfmy2r3Zag== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1645723243; a=rsa-sha256; cv=none; b=YGykc+3XtVOpFDaJ0//fl++RkwMFfwjOapLZ+xUMudv9TLoSLPBibGvrxfv8w0QJNVHwTt cvMW4x9oXKh6PiHLAe4uBig5uWE0WSgbdmKehDHgktKz6flgSCL6haNmwQEYAPh7/n7gBu os3YbKL1CLqrD489G7kPWG2SlIvkmyr/iDLlIHYGUULRTv6JiWVyy59RH7LpXL25j4/t+7 Bp2Hc56kpsESYd+kHBTS8j5tM6cOxn80XJNaFNEtVt1zR0AU4pew/D+QCosp2jcokM5RUl nDoLh0vYFimOafAtUQmEiGWIBEW5sKbkvmBBfxDg+JZ1U7s3U+NBxKv4tDQ2Rg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -4.53 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; spf=pass (aspmx1.migadu.com: domain of "help-guix-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="help-guix-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B21F238E21 X-Spam-Score: -4.53 X-Migadu-Scanner: scn0.migadu.com X-TUID: vqYILkAzH9EB --Sig_/A_1u048/la1ARJZkg/=9Ceo Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi, In the installation script we have: > if [[ -e "/var/guix" || -e "/gnu" ]]; then > _err "${ERR}A previous Guix installation was found. [...] > exit 1 > fi > [...] > mv "${tmp_path}/gnu" / Guix pack also install its files in /gnu, so if we somehow installed something built with guix pack we can't install Guix anymore. I've no idea why it's done in this way though as the git history doesn't tell and there is no comments either.=20 Is installing software made with Guix pack incompatible with Guix on purpose? In the case where we do need both software made with guix pack and guix in parallel what would be the best way to handle that? My use case here is to be able to deploy matterbridge as safely as possible on the Replicant server. To deploy an update I install Guix on that server, build matterbridge with guix pack, and then remove Guix to limit the attack surface, and install then install the update.=20 Here being able to install Guix and produce a package with guix pack, and to test it without having to remove /gnu would be useful. In general, it would also be interesting to be able to test software made with guix pack while still running Guix. I guess that in these two cases, the packed software is probably not handled by guix, so witout --localstatedir, guix gc would get rid of it? And if --localstatedir is passed can both be installed in parallel somehow? I've tried to find information on that and the best I found was commits referencing a bugreport[1] that I didn't understood, so I'm unsure if it's related or not to the issue here. Also how hard would it be to enable packages to run anywhere inside or outside of Guix? There are utilities like chrpath that don't require recompilation but they probably only work for ELF (so not for probably not for .pyc, PE, etc) and it seems to also require an RPATH tag inside the ELF files to work, so I'm unsure if/how it could fit into Guix. References: ----------- [1]https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D32184 Denis. --Sig_/A_1u048/la1ARJZkg/=9Ceo Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEeC+d2+Nrp/PU3kkGX138wUF34mMFAmIXvjYACgkQX138wUF3 4mPGag//cGJ+YQ8wdeQ6aZlNp07Ah0iRpClk+eXI+TO3/q7gmagJGcWDlnaCJNIT vVtDzR4ZLTxviITxdGvgINco27DgSfUPj9ocF/jS/3agh6hn4FUeCFHO4us8dXHl vxTYfeXZpJIzECrCfNvMYOWx9jOMU2HvVY0YFEQEqaFQF1VylVUyxOXyTKpZxujM +W+mbSbXLvsgTNQ4DQwkPi8REUui1dRxv4lPXjZv6A46Y4x0PyhKSv8jG/3CG8Qy IVMrAAbBiL4Az7wn9Jo0PLKTYhp9264N95wOBvRtDx8kNSK17oPXJ8YCzNNLcENz F0AbqjBJMEzi/IEngHwOcaQjazb22ccR03uqb1lL4P1Lg+9QJ2msPBP0s1BVkrze /LCM8iLjoigQlt+elIS/AN7jEJFrznaVqx/FCREf2nyyK6licsM5uM9ZjcNC4ze9 wvSxa4V76EB72k5Xda5aJCdNy7p5H3962TbgwXFKIw7c8tfA5le29oZC0sisWaQO 783p96WH06bDXO1xtT7RHW1Vic6W0f7mUdil2P9nn/EK2Xq3GMJYuP9nnJzZMefQ RS8L7ThU7Y8LyeNT68H3ZyffzFVj5v9u1TRD4OnZNvYhmdDIdLMCs37qZlVSPzNf 7bzI8AqX1qwzU0A2Ph94HvncWivGmdLxyC33XFaLj6WqnoIGst8= =IEyz -----END PGP SIGNATURE----- --Sig_/A_1u048/la1ARJZkg/=9Ceo--