From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id cCG7JuXE3GAJRAEAgWs5BA (envelope-from ) for ; Wed, 30 Jun 2021 21:24:21 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id CGJVIuXE3GArMgAAbx9fmQ (envelope-from ) for ; Wed, 30 Jun 2021 19:24:21 +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 4CD0D20E2B for ; Wed, 30 Jun 2021 21:24:21 +0200 (CEST) Received: from localhost ([::1]:42516 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lyfop-0002S2-SV for larch@yhetil.org; Wed, 30 Jun 2021 15:24:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56090) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lyfle-0007jN-9k for guix-patches@gnu.org; Wed, 30 Jun 2021 15:21:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47199) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lyfle-0004yF-1g for guix-patches@gnu.org; Wed, 30 Jun 2021 15:21:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1lyfld-0002k4-Ps for guix-patches@gnu.org; Wed, 30 Jun 2021 15:21:01 -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 19:21:01 +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.162508080910458 (code B ref 49149); Wed, 30 Jun 2021 19:21:01 +0000 Received: (at 49149) by debbugs.gnu.org; 30 Jun 2021 19:20:09 +0000 Received: from localhost ([127.0.0.1]:58745 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyfkm-0002ic-TK for submit@debbugs.gnu.org; Wed, 30 Jun 2021 15:20:09 -0400 Received: from mail-qk1-f176.google.com ([209.85.222.176]:43735) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lyfkl-0002iL-SH for 49149@debbugs.gnu.org; Wed, 30 Jun 2021 15:20:08 -0400 Received: by mail-qk1-f176.google.com with SMTP id q16so3593562qke.10 for <49149@debbugs.gnu.org>; Wed, 30 Jun 2021 12:20:07 -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; bh=RUwT5HpickvBqFLjXD7LhQ17u3TQqyUyP4v9I7L7018=; b=Jju9nR2PmfxiZ4KzUZ0pgkshzvjN090ObhDMv4zS9M1c2j5FM1W0Pxoigi1gnaRU8e f0mQ1t0hL2AQjOW4ohAZdveXBQKJCgdq+hCOvPb2Em2XnJboA8eW4ZIUKBa69smHRPrq ymiZPgw5cDZpbuf6L6dheJNjQh8ggR8QbwH0G71sxqHQtJu/qXY7ezyHsmGRSwY8v+HK YVJTL6JqsVrsKqDqZ+MoXQSOxPWYoPMg0n+4zW6A7gBvb6hOtRELlzu1xWL40Uevp0KH A2DmvNasvYsVtX2xXqhaOEixrbWXBg5COcWomg5Z0tvHvCJTgT1EfRsJJWJHl/JU7MnR rPrQ== 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; bh=RUwT5HpickvBqFLjXD7LhQ17u3TQqyUyP4v9I7L7018=; b=Yquyv+gNHragjdWsBnaTAGofTZEzi7Ke2zpdsFdYeVY+XIDAtSOslhiTEQFEysyUyh mn5drYbTVLdZdBtv0Naz37a1NsZSM+WWBCBEos7E7BubXKNeXa1AWKkndSZB+9NCiqGf DPKAH4wxigLEqqo9dlDzakMfEPCRd0n8jOaa/4G8Xg4GIB16I2sfPbDjoKXt1OaGWITc UPrubsS3Y5iaauprJkLKyi30xXpaWMjJgVdHJlrSqDGEovXgU98wlnWi+Ws6AXz98oK5 r93w5RmcNZbONHMQBfHkPZqhQZAXKIpYkLm7/BujuogFwrEbNYKTELKrIBPSIwCc2aVp 9G3w== X-Gm-Message-State: AOAM533NYs6vjg2k1TaZY9Gn1ODxgjCKNF/fPGEYAhDT4ohnf1PbYaGH SR2/wC281Y3bf27jK0teaDbm5Kizjmbulw== X-Google-Smtp-Source: ABdhPJzIed3uhuC1gxb/lxjtvTk4Io+JCZujbjhW7iHTVR5d2YAKA7iRrj20nCz2LNz0vHbCQnvALg== X-Received: by 2002:ae9:ef88:: with SMTP id d130mr33659458qkg.166.1625080802300; Wed, 30 Jun 2021 12:20:02 -0700 (PDT) Received: from hurd (dsl-150-149.b2b2c.ca. [66.158.150.149]) by smtp.gmail.com with ESMTPSA id j13sm14727398qko.9.2021.06.30.12.20.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Jun 2021 12:20:01 -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> <87k0mb45zu.fsf@gmail.com> <86czs36y7l.fsf@gmail.com> Date: Wed, 30 Jun 2021 15:20:00 -0400 In-Reply-To: <86czs36y7l.fsf@gmail.com> (zimoun's message of "Wed, 30 Jun 2021 19:47:58 +0200") Message-ID: <87y2ar2m8v.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain 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=1625081061; 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: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=RUwT5HpickvBqFLjXD7LhQ17u3TQqyUyP4v9I7L7018=; b=UwSV1i7FMiV/JggTArr8AzgUFl0g+WevpenhMiP1icBWLFcLbEEMwlVLPOc0/PAaP8jdhF 6jn6VjgX6QMIknVCByfaowBXMpd0jNKuiYF6RRGoPJhZJtmywKL8SOaa98e3HQsCRQbu5W 7Al4VQ4zrKjQnZbGMNiww6itHD8HrxrI9B3LZz/ulZ2GpwDubscn/pzQOh6V9fitR2tPcJ 8NqUhvwik3yNmvlFqgul6t1KIhzXrPwEN9KtgBqBKiZaEdmhXLgGkJK8D2P+Wl9gJlJaNr JpZBY2E2aYCd+bhMhzOQQ9Byaer9rfpjT0APoKByg/ov3S14HtcUUHwAWlrz3w== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1625081061; a=rsa-sha256; cv=none; b=eu4I0M/5hBi8PhwUYt5r04d6sTFNdiQ79oRR6oopt8x16h7WivhiovN5dZ9xPSEL5MRWCr IwEP8+MtZy3YyoKDOD15BkzvkPlXD/4USZwAef+7UhVkDsX6NfKBejwoO7Mz3h1CoNfvJY JL0KRcQaJMytXFAhqCktaNf8Oq8sAz6gV9ycXsDiUsMuTNIkHie79vbISWwpI6Yl52CWbd Z+ULgjYGXslXw3y63xtvhTvwO6MiBFpw6O/fYfAoYhRGHCU60LWvkKk/HSjbnIUmEtroBE nt/msB5bgbtj1+oXQLyAY3wDUccKw22T9t5fxaNZ5XQvqd6nRWnBPWWYaTzVhw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Jju9nR2P; 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: -1.32 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=gmail.com header.s=20161025 header.b=Jju9nR2P; 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: 4CD0D20E2B X-Spam-Score: -1.32 X-Migadu-Scanner: scn0.migadu.com X-TUID: VLoyZKKtfOVZ Hi Simon, zimoun writes: > Hi Maxim, > > On Wed, 30 Jun 2021 at 13:28, Maxim Cournoyer wrote: >> --8<---------------cut here---------------start------------->8--- >> doc: Add a note and warning regarding the usage of deb packs. > > [...] > >> +@item deb >> +This produces a Debian archive (a package with the @samp{.deb} file >> +extension) containing all the specified binaries and symbolic links, >> +that can be installed on top of any dpkg-based GNU/Linux distribution. >> + >> +@quotation Note >> +Because archives produced with @command{guix pack} contain a collection >> +of store items and because each @command{dpkg} package must not have >> +conflicting files, in practice that means you likely won't be able to >> +install more one such archive on the same system. >> +@end quotation >> + >> +@quotation Warning >> +@command{dpkg} will assume ownership of any files contained in the pack >> +that it does @emph{not} know about. It is unwise to install >> +Guix-produced @samp{.deb} files on a system where @file{/gnu/store} is >> +shared by other software, such as a Guix installation or other, non-deb >> +packs. >> +@end quotation >> + >> @end table >> >> @cindex relocatable binaries >> --8<---------------cut here---------------end--------------->8--- > > The pack does not fully respect the FHS from the Debian Policy, right? > > Hum, the disclaim LGTM. Although, it appears to me a severe limitation > to be able to install only one Guix-generated .deb pack on a Debian-like > system, IIUC. :-) Thanks! It is! One thing that would be possible is react to a user passing the -R(R) (relocatable) option and keep the deb pack contents under a named prefix, such as /opt/deb-packs/name/gnu/store/[...] to keep them from conflicting. I won't be pursuing it myself but it shouldn't be too difficult to do! Maxim