GNU bug report logs - #49149
[PATCH 0/7] Add deb format for guix pack.

Previous Next

Package: guix-patches;

Reported by: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Date: Mon, 21 Jun 2021 06:11:02 UTC

Severity: normal

Tags: patch

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#49149: closed ([PATCH 0/7] Add deb format for guix pack.)
Date: Tue, 29 Jun 2021 19:21:02 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 29 Jun 2021 15:20:21 -0400
with message-id <87czs4v5oq.fsf_-_ <at> gmail.com>
and subject line Re: bug#49149: [PATCH 0/7] Add deb format for guix pack.
has caused the debbugs.gnu.org bug report #49149,
regarding [PATCH 0/7] Add deb format for guix pack.
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
49149: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49149
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: guix-patches <at> gnu.org
Cc: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
Subject: [PATCH 0/7] Add deb format for guix pack.
Date: Mon, 21 Jun 2021 02:10:39 -0400
Hello Guix!

This patch set adds support to produce Debian archives (.deb packages) via
guix pack.  It's rudimentary but functional.  You can try a simple example
like so:

$ ./pre-inst-env guix pack -f deb -C xz hello -S /usr/bin/hello=bin/hello

Copy the generated .deb to your dpkg-based distribution of choice, then:

$ sudo apt install ./91ypmi1j5py9qk034kki5wrgy0n52yz9-hello-deb-pack.deb

$ realpath $(which hello)
/gnu/store/lk9cmjjhgxpkxxi7m54y0jlv3rqvpb2n-hello-2.10/bin/hello
$ hello
Hello, world!

Fun, no?  We can now distribute software built with Guix transparently to any
Debian-based distribution.

Maxim Cournoyer (7):
  pack: Extract builder code from self-contained-tarball.
  pack: Factorize base tar options.
  pack: Fix typo.
  pack: Improve naming of the packs store file names.
  pack: Prevent duplicate files in tar archives.
  tests: pack: Fix compressor extension.
  pack: Add support for the deb format.

 .dir-locals.el              |   1 +
 Makefile.am                 |   1 +
 doc/guix.texi               |   5 +
 gnu/system/file-systems.scm |  56 +++--
 guix/build/pack.scm         |  52 ++++
 guix/docker.scm             |  20 +-
 guix/scripts/pack.scm       | 471 +++++++++++++++++++++++++-----------
 tests/file-systems.scm      |   7 +-
 tests/pack.scm              |  77 +++++-
 9 files changed, 506 insertions(+), 184 deletions(-)
 create mode 100644 guix/build/pack.scm

-- 
2.32.0



[Message part 3 (message/rfc822, inline)]
From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: Maxime Devos <maximedevos <at> telenet.be>
Cc: 49149-done <at> debbugs.gnu.org
Subject: Re: bug#49149: [PATCH 0/7] Add deb format for guix pack.
Date: Tue, 29 Jun 2021 15:20:21 -0400
Hello!

Maxime Devos <maximedevos <at> telenet.be> writes:

> Maxim Cournoyer schreef op do 24-06-2021 om 00:40 [-0400]:
>> +            (define (gnu-machine-type->debian-machine-type type)
>> +              "Translate machine TYPE from the GNU to Debian terminology."
>> +              ;; Debian has its own jargon, different from the one used in GNU, for
>> +              ;; machine types (see data/cputable in the sources of dpkg).
>> +              (match type
>> +                ("i686" "i386")
>> +                ("x86_64" "amd64")
>
> I'd add i586->i386 here as well, to allow the "i586-gnu" target (for the Hurd).
> (Debian has a Hurd port: https://www.debian.org/ports/hurd/).
> Maybe more is needed for proper Hurd support though.
>
> For completeness, I'd also add i486->i386,
> to allow "guix pack hello --target=i486-linux-gnu --format=tarball"
> as well. Ok, i486-linux-gnu isn't a ‘supported’ cross-target, but why not?

Done.

Series pushed in commit 6396f0c235231d4d41d11fffa021251ea6aa90a7.
Thanks for the review!

Maxim


This bug report was last modified 4 years and 42 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.