GNU bug report logs -
#49149
[PATCH 0/7] Add deb format for guix pack.
Previous Next
Full log
View this message in rfc822 format
[Message part 1 (text/plain, inline)]
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 49149 <at> debbugs.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)]
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
[Message part 3 (message/rfc822, inline)]
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
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.