From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id KO+QDCNPtmH7AwAAgWs5BA (envelope-from ) for ; Sun, 12 Dec 2021 20:36:03 +0100 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id iL9aCCNPtmEBGwAA1q6Kng (envelope-from ) for ; Sun, 12 Dec 2021 19:36:03 +0000 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 B3C62E49B for ; Sun, 12 Dec 2021 20:36:02 +0100 (CET) Received: from localhost ([::1]:56198 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwUdd-0005qO-6b for larch@yhetil.org; Sun, 12 Dec 2021 14:36:01 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38126) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mwUct-0005qF-Qu for help-guix@gnu.org; Sun, 12 Dec 2021 14:35:15 -0500 Received: from cascadia.aikidev.net ([173.255.214.101]:44786) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mwUcr-0006qU-MT for help-guix@gnu.org; Sun, 12 Dec 2021 14:35:15 -0500 Received: from localhost (unknown [IPv6:2600:3c01:e000:21:21:21:0:100e]) (Authenticated sender: vagrant@cascadia.debian.net) by cascadia.aikidev.net (Postfix) with ESMTPSA id 8BD271ABE9; Sun, 12 Dec 2021 11:35:07 -0800 (PST) From: Vagrant Cascadian To: Efraim Flashner , Hartmut Goebel Subject: Re: Run .deb or .rpm packages In-Reply-To: References: <87tufjp10l.fsf@gmail.com> <87fsr382nb.fsf@disroot.org> <87ilvyq3qn.fsf@gmail.com> <3124813D-244F-4060-AA72-8778D3B612E2@lepiller.eu> Date: Sun, 12 Dec 2021 11:34:58 -0800 Message-ID: <87h7bdobvh.fsf@ponder> 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: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham 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: , Cc: =?utf-8?Q?Andr=C3=A9_A=2E_Gomes?= , help-guix@gnu.org Errors-To: help-guix-bounces+larch=yhetil.org@gnu.org Sender: "Help-Guix" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1639337762; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc: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; bh=Ax7EpTWXjHZXWcKBpxzQqOZKkqNAuHZXmeeul44FfCQ=; b=Zki/kYQpEVtRzXyC015pXihGmBMq7+DQ2SmyD/y/q6sQncYXvJTFhz2s8BacOX4F9Cpth3 2eW4Ny4AN6YUj+mxmBvqKzjm46D9GpCODuKwHshpa4fGn2OCY5QzU4XRKZw9CdyynGb6mD 3SSx4+XbIvTlTpyVKR7dZFiOTkBkZFR25tP3OOk4xVPeAqzjWbYiNZQGn+sI8EPAbWVxj9 ZPH6UmQPoI5tG+40RbGBi1Cd7ptohl3JEJJxpBi+Nuqv0IVTM6NTChkAtsGdmJws545WTc +H34UmPdAqKi+vqgoinE+a/4aPFHDeOxWoNeK3UvC4rz3ChinlOazhBAt3qU6A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1639337762; a=rsa-sha256; cv=none; b=d1FZEuu9qdqFMIiKVcxT+j9Y78iWFIYTLjYepR0kTS/4AfcmwKqofayOy1cElYSQAv2Uny fUmFttXM1uBuGKN9A5uQzUXv7NZF2voPmxIBsE8uZW6gEsU8QvUZSfZgruVFwSRUUCsDvF LWYBs6dEQuRX+V2qWzPe+bkkJOr+5qhKtKzrd7i9d2UJuwCep63vXj6yxg2HxIg4kbYsEs DjQoVlHll5/llN4UMbFCkeCZ97DcBt71UO+H90QtPLxfNoagD7Ark/pPsFujlPP2h1SfHu JlGskCGqZYBvXgQrMaCapJUjTgDqWG3oc/sx6+yLo2d1sqN8RF8MfkmfpIGoGw== 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.57 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: B3C62E49B X-Spam-Score: -4.57 X-Migadu-Scanner: scn1.migadu.com X-TUID: KICqHfKugN53 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 2021-12-12, Efraim Flashner wrote: > On Fri, Dec 10, 2021 at 10:30:36AM +0100, Hartmut Goebel wrote: >> Le 8 d=C3=A9cembre 2021 14:46:24 GMT-05:00, "Andr=C3=A9 A. Gomes" a =C3=A9crit=C2=A0: >>=20 >> > --8<---------------cut here---------------start------------->8--- >> > $ sudo dpkg -i foo-package.deb >> > dpkg: error: unable to access the dpkg database directory /gnu/store/9= 02w5i1j38r33l6p871dyhng19zj1phk-dpkg-1.20.9/var/lib/dpkg: Read-only file sy= stem >> > --8<---------------cut here---------------end--------------->8--- >> >=20 >> > Any ideas? I don't know much about .deb or .rpm. >>=20 >> Beside Julien's objections: There might be legitimate use of installing = .deb >> or .rpm packages and they might even work. E.g. i one wants to install f= ree >> software provided as a .deb only and at the moment does not have the tim= e to >> create a package definition for it. >>=20 >> So, "dpkg" and "rpm" should at least work :-) >>=20 >> Regarding the error show above: One would need to add "--localstatedir= =3D/var" >> to the config flags (not sure whether this would build, then, since most >> probably "make install" will try to create "/var/lib/dpkg" which will fa= il >> in the build container. >>=20 > > When I packaged dpkg I deliberately didn't "fix" the localstatedir or > any other flags since Guix doesn't support installing packages from .deb > archives. Similar to the rpm package it is primarily used for the other > parts of the package. > > Vagrant has said in the past though that Guix's dpkg can be used to > install packages on Debian based systems. I don't think I would recommend trying that! It *might* technically work with some changes to the guix dpkg package, it seems a bit risky; you'd probably have a "native" dpkg available and I'm not sure I see the benefit then. I mostly found it useful to extract (dpkg-deb --extract PACKAGE.deb, dpkg-deb --control PACKAGE.ded) and inspect .deb packages from Guix System. Whenever I need a Debian environment on Guix System I usually just use debootstrap to create a chroot and work from there. Thanks everyone for Debianing your Guixs and Guixing your Debians! live well, vagrant --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iHUEARYKAB0WIQRlgHNhO/zFx+LkXUXcUY/If5cWqgUCYbZO5gAKCRDcUY/If5cW qgaKAQC6eCgIKpY9ZWRY1sUzqf+8Txkr3efGxS6nbqckMXpqHwEA/lx0ATGzX3TZ KLlVRVkIOOCQeovk34sdWKqu6SGeQg4= =npSC -----END PGP SIGNATURE----- --=-=-=--