Subject: bug#49149: closed (Re: bug#49149: [PATCH 0/7] Add deb format for guix pack.)

From: [email-masked] (GNU bug Tracking System)
Date: Tue, 29 Jun 2021 19:21:02 +0000

Your bug report

#49149: [PATCH 0/7] Add deb format for guix pack.

which was filed against the guix-patches package, has been closed.

The explanation is attached below, along with your original report.
If you require more details, please reply to [email-masked].

-- 
49149: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=49149
GNU Bug Tracking System
Contact [email-masked] with problems

Subject: Re: bug#49149: [PATCH 0/7] Add deb format for guix pack.
From: Maxim Cournoyer <[email-masked]>
To: Maxime Devos <[email-masked]>
Cc: [email-masked]
Date: Tue, 29 Jun 2021 15:20:21 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

Hello!

Maxime Devos <[email-masked]> 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

Subject: [PATCH 0/7] Add deb format for guix pack.
From: Maxim Cournoyer <[email-masked]>
To: [email-masked]
Cc: Maxim Cournoyer <[email-masked]>
Date: Mon, 21 Jun 2021 02:10:39 -0400
List-Id: <debbugs-submit.debbugs.gnu.org>

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