From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 30 15:20:09 2021 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 To: zimoun Subject: Re: [bug#49149] [PATCH 0/7] Add deb format for guix pack. 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-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: 49149 Cc: Ludovic =?utf-8?Q?Court=C3=A8s?= , 49149@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) 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