From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id OF0zMveh3GDeBQEAgWs5BA (envelope-from ) for ; Wed, 30 Jun 2021 18:55:19 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MD/vLfeh3GCOKAAAB5/wlQ (envelope-from ) for ; Wed, 30 Jun 2021 16:55:19 +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 2DA0B19F2E for ; Wed, 30 Jun 2021 18:55:19 +0200 (CEST) Received: from localhost ([::1]:56638 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lydUb-0007dY-JL for larch@yhetil.org; Wed, 30 Jun 2021 12:55:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55634) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lydUM-0007cU-HH for guix-patches@gnu.org; Wed, 30 Jun 2021 12:55:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47083) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lydUM-0005pa-9a for guix-patches@gnu.org; Wed, 30 Jun 2021 12:55:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lydUM-0007fp-9y for guix-patches@gnu.org; Wed, 30 Jun 2021 12:55:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#49149] [PATCH 0/7] Add deb format for guix pack. Resent-From: Maxim Cournoyer Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 30 Jun 2021 16:55:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 49149 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: zimoun Cc: Ludovic =?UTF-8?Q?Court=C3=A8s?= , 49149@debbugs.gnu.org Received: via spool by 49149-submit@debbugs.gnu.org id=B49149.162507205829440 (code B ref 49149); Wed, 30 Jun 2021 16:55:02 +0000 Received: (at 49149) by debbugs.gnu.org; 30 Jun 2021 16:54:18 +0000 Received: from localhost ([127.0.0.1]:58629 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lydTe-0007em-2d for submit@debbugs.gnu.org; Wed, 30 Jun 2021 12:54:18 -0400 Received: from mail-qk1-f179.google.com ([209.85.222.179]:42854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lydTb-0007eV-UO for 49149@debbugs.gnu.org; Wed, 30 Jun 2021 12:54:16 -0400 Received: by mail-qk1-f179.google.com with SMTP id v139so3112868qkb.9 for <49149@debbugs.gnu.org>; Wed, 30 Jun 2021 09:54:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:references:date:in-reply-to:message-id :user-agent:mime-version:content-transfer-encoding; bh=AwjM61sjTzr/PYNPRVmOAkMsus5BbsppyHuJ278qXaU=; b=E8hwyYX/rOKjIfe/txSSoXGAlV2Tz76BflxPkah26Wok/WWQKUOzXDAmP3YiuxCY5x /4UsOcHxWx3NGGEi36ZLLbCtpqBcxgSv43ugb9QaBqKYY2mKuab1naj5oQyrKiUwRkgp o8G9AJAsIEttzd1oBj9SSmZ1yvffvMf0tFEJJCd4w4dZCbwbscCW5NrnoiOxBgCwvR3x wFZswR7n9OODgOB3eKadWZerJH4fSTov4GdabXlE+a2iHfkE2/yWGI/L3n3Q7Sov6X0o R1XelI1d9SzkoaTIE4BKeCbj7al+zCDRlWxE2ATCqldUL2ar22aHbM8xQxUeU8wd8/eS iecg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:references:date:in-reply-to :message-id:user-agent:mime-version:content-transfer-encoding; bh=AwjM61sjTzr/PYNPRVmOAkMsus5BbsppyHuJ278qXaU=; b=lsQcnx2QA0p9hv/YmDFsRcRV/0k/ovp2nvl2S+G91hUwYwG3VPJ4a8mpLBu5g+anrb P4ycJjzhQVYdSh2kySM8TixHOKzjCOalr7bPBThyBKsUs04z68AG8lyt2TnE7AFBl27P cd0q0Hx26jWCk7aD6hFoNNmR5rbWQgTEgqa4aCKNYz6Be7n+i5TEx+kgTRq2GZ6+Bpih n4i0/vB0z6PnmaCDqLmkkAr5TqJ2Qmss5o8XM0V37LwKMrKCfui2WNP7rxWKc/l3KqSb fwueBOmuKVxVqOeNSk4Td+q4BixiApniA3+2qz0NLQbXW/jnxe/IsLYgH6ZGE3EwYGat V+4Q== X-Gm-Message-State: AOAM533LU60aSwSwu9PkWX0FEMvVaKlRnY3Ixm8MrCtv2IrIBDAOAxwV ZwARY1yfQY/aMhOurKXh8+jeqwj+IMbTeA== X-Google-Smtp-Source: ABdhPJwd97UR/7FirPuZoKUYMNRTlwvVBQ/2xcbrkRZjtizkZODki/yS8JVeBYD/IecDdWRmOd433Q== X-Received: by 2002:a37:7b02:: with SMTP id w2mr22929526qkc.52.1625072050308; Wed, 30 Jun 2021 09:54:10 -0700 (PDT) Received: from hurd (dsl-150-149.b2b2c.ca. [66.158.150.149]) by smtp.gmail.com with ESMTPSA id h19sm3593545qto.4.2021.06.30.09.54.09 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 09:54:09 -0700 (PDT) From: Maxim Cournoyer References: <20210621061039.31557-1-maxim.cournoyer@gmail.com> <87eecsuv85.fsf@gnu.org> <87k0mcv9wh.fsf_-_@gmail.com> <87bl7npvbg.fsf@gnu.org> <86tulf799s.fsf@gmail.com> Date: Wed, 30 Jun 2021 12:54:09 -0400 In-Reply-To: <86tulf799s.fsf@gmail.com> (zimoun's message of "Wed, 30 Jun 2021 15:49:03 +0200") Message-ID: <87sg0z47ke.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1625072119; 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: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=AwjM61sjTzr/PYNPRVmOAkMsus5BbsppyHuJ278qXaU=; b=NveaQ7+LFEXIvmbhhSYbGZt2SgjAQAnfhuluX7ARFPPHE00Lk5iPyWvJNB8hC6RiLGZWFC C9uOdldJQGe/Qd+phsJtc5+LFPaHuIVSKeVpERC/8YzJLlGIFPiVrszZiWLv3+HzdEiLqD tsZ0d9FRsexJglAhxeMU9JRu7EsB1Zwa9DDBexJdy1SnHG7ngdd8AkBNUTirQpBs2N1GWJ rR79P2YveKLUDitM4RkZwoev3cwoKaeP2hUAG2qdFZGmaGb966XgLdJ9LbnMb8/UdJfnwi P96Y5R7CdZzrfMslp3livGVFubSV/cbYh8ZloB4P3cWZwvB1+Pu0ixTxqka40A== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625072119; a=rsa-sha256; cv=none; b=VzxL5gaRx0JsHPU1KQfoeufdOewwwlvvDUObbIKsXsjluccgqjyoCb/oy/hjqd7jn+e2wt iHi4QrQ4cini3b0lIO7ptqBbQ2jcSPk+p87UGH+9R4SSMDTe0QdhZZBOiGUqFZ+N0Tmf2R E0YaNIYPvsXsTxWeaWiwFNKuAZh6JtU1KLjA2OtPgPkNjKWLAAMaTMUDO6rFPnrkgzPcLT 4BifOTnFa0vnebjJkfythaA3huLWOiPV2L5T76PAoty1HMpDCYzJurtu9is91n2N02dZ5X bqsG0+9FHZJzkt90Z8X3Yn0Pi67LCLhDNvn4CEOkychVDjswGqZSekHIZJnsVw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="E8hwyYX/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: 0.18 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b="E8hwyYX/"; dmarc=fail reason="SPF not aligned (relaxed)" header.from=gmail.com (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 2DA0B19F2E X-Spam-Score: 0.18 X-Migadu-Scanner: scn1.migadu.com X-TUID: zYvlYrPHrudA Hi Zimoun, zimoun writes: > Hi, > > I am a bit late to the party. > > Thanks for this good idea of pack. Neat! > > > On Wed, 30 Jun 2021 at 11:15, Ludovic Court=C3=A8s wrote: > >> Also, what happens if you do: >> >> sudo apt install guix >> guix install stuff =E2=80=A6 >> sudo apt install ./guix-pack-generated.deb >> >> ? >> >> Will that overwrite things in /gnu/store? After thinking it out some more, yes! This is because the files are not part of another deb, so dpkg will just claim ownership of the files. >> Admittedly it makes little sense to do something like this, but that=E2= =80=99s >> something one could do. Indeed. I'll a disclaimer in the manual. > The simple scenario: > > scp \ > $(guix pack -f deb hello -C xz -S /usr/bin/hello=3Dbin/hello) \ > remote:/tmp/ > ssh remote > sudo apt install /tmp/=E2=80=A6-hello-deb-pack.deb > realpath $(which hello) > /gnu/store/=E2=80=A6-hello-2.10/bin/hello > > works fine. Then, I am probably doing wrong: > > sudo apt remove hello > hello > -bash: hello: command not found > > guix help > bash: /home/simon/.config/guix/current/bin/guix: /gnu/store/=E2=80=A6-= guile-wrapper/bin/guile: bad interpreter: No such file or directory So uninstalling the hello deb caused all the files "owned" by that debian package to be removed, breaking the guix installed on that same system. It's becoming obvious that the deb-packs are not to be used on systems where Guix is already installed nor mixed with other non-deb packs. That's unfortunate, but there doesn't seem to be much we can do other than document these shortcomings. > I have not investigated. Just a quick test for this nice new feature. Thanks for the feedback! Maxim