unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH] gnu: compression: Add pigz
@ 2015-09-28 21:55 Jeff Mickey
  2015-09-29 21:42 ` Ludovic Courtès
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Mickey @ 2015-09-28 21:55 UTC (permalink / raw)
  To: guix-devel

[-- Attachment #1: Type: text/plain, Size: 86 bytes --]

Hi folks,

This patch adds the parallel gzip implementation for guix.

  //  codemac


[-- Attachment #2: 0001-gnu-Add-pigz.patch --]
[-- Type: text/x-patch, Size: 2792 bytes --]

From 0eadbc2557621939b29bd4cfbb562bc396871ec8 Mon Sep 17 00:00:00 2001
From: Jeff Mickey <j@codemac.net>
Date: Mon, 28 Sep 2015 14:53:28 -0700
Subject: [PATCH] gnu: Add pigz

* gnu/packages/compression.scm (pigz): New variable.
---
 gnu/packages/compression.scm | 41 +++++++++++++++++++++++++++++++++++++++++
 1 file changed, 41 insertions(+)

diff --git a/gnu/packages/compression.scm b/gnu/packages/compression.scm
index fbe5ba4..66b8726 100644
--- a/gnu/packages/compression.scm
+++ b/gnu/packages/compression.scm
@@ -6,6 +6,7 @@
 ;;; Copyright © 2015 Eric Bavier <bavier@member.fsf.org>
 ;;; Copyright © 2015 Ricardo Wurmus <rekado@elephly.net>
 ;;; Copyright © 2015 Leo Famulari <leo@famulari.name>
+;;; Copyright © 2015 Jeff Mickey <j@codemac.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -586,3 +587,43 @@ It is intended to be used for archival use, for live CDs, and for embedded
 systems where low overhead is needed.  This package allows you to create and
 extract such filesystems.")
     (license license:gpl2+)))
+
+(define-public pigz
+  (package
+    (name "pigz")
+    (version "2.3.3")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "http://zlib.net/pigz/" name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "172hdf26k4zmm7z8md7nl0dph2a7mhf3x7slb9bhfyff6as6g2sf"))))
+    (build-system gnu-build-system)
+    (arguments
+     `(#:phases
+       (modify-phases %standard-phases
+         (delete 'configure)
+         (replace 'install
+                  (lambda* (#:key outputs #:allow-other-keys)
+                    (let* ((out (assoc-ref outputs "out"))
+                           (bin (string-append out "/bin"))
+                           (man (string-append out "/share/man/man1")))
+                      (mkdir-p bin)
+                      (copy-file "pigz" (string-append bin "/pigz"))
+                      (symlink
+                       (string-append bin "/pigz")
+                       (string-append bin  "/unpigz"))
+                      (mkdir-p man)
+                      (copy-file "pigz.1" (string-append man "/pigz.1")))
+                    #t)))
+       #:make-flags (list "CC=gcc")
+       #:test-target "tests"))
+    (inputs `(("zlib" ,zlib)))
+    (home-page "http://zlib.net/pigz/")
+    (synopsis "Parallel implementation of gzip for multi-processor,
+multi-core machines")
+    (description "A parallel implementation of gzip that is a fully functional
+replacement for gzip that exploits multiple processors and multiple cores when
+compressing data. pigz was written by Mark Adler, and uses the zlib and
+pthread libraries.")
+    (license license:bsd-3)))
-- 
2.5.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* Re: [PATCH] gnu: compression: Add pigz
  2015-09-28 21:55 [PATCH] gnu: compression: Add pigz Jeff Mickey
@ 2015-09-29 21:42 ` Ludovic Courtès
  2015-09-29 21:46   ` Jeff Mickey
  0 siblings, 1 reply; 3+ messages in thread
From: Ludovic Courtès @ 2015-09-29 21:42 UTC (permalink / raw)
  To: Jeff Mickey; +Cc: guix-devel

Jeff Mickey <jm@igneous.io> skribis:

> From 0eadbc2557621939b29bd4cfbb562bc396871ec8 Mon Sep 17 00:00:00 2001
> From: Jeff Mickey <j@codemac.net>
> Date: Mon, 28 Sep 2015 14:53:28 -0700
> Subject: [PATCH] gnu: Add pigz
>
> * gnu/packages/compression.scm (pigz): New variable.

Committed with small changes: I used the new ‘install-file’ procedure
instead of ‘copy-file’, simplified the synopsis and description, and
fixed the license (it’s mainly ASL 2.0.)

Thanks!

Ludo’.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH] gnu: compression: Add pigz
  2015-09-29 21:42 ` Ludovic Courtès
@ 2015-09-29 21:46   ` Jeff Mickey
  0 siblings, 0 replies; 3+ messages in thread
From: Jeff Mickey @ 2015-09-29 21:46 UTC (permalink / raw)
  To: Ludovic Courtès; +Cc: guix-devel

[-- Attachment #1: Type: text/plain, Size: 876 bytes --]

Thank you!

I appreciate when you make those small changes, really helps speed up
contributions and I don't take your efforts lightly. Thanks!

Also - I'm seeing now what you're talking about with the licensing.. thanks
for looking deeper.

  //  mickey


On Tue, Sep 29, 2015 at 2:42 PM, Ludovic Courtès <ludo@gnu.org> wrote:

> Jeff Mickey <jm@igneous.io> skribis:
>
> > From 0eadbc2557621939b29bd4cfbb562bc396871ec8 Mon Sep 17 00:00:00 2001
> > From: Jeff Mickey <j@codemac.net>
> > Date: Mon, 28 Sep 2015 14:53:28 -0700
> > Subject: [PATCH] gnu: Add pigz
> >
> > * gnu/packages/compression.scm (pigz): New variable.
>
> Committed with small changes: I used the new ‘install-file’ procedure
> instead of ‘copy-file’, simplified the synopsis and description, and
> fixed the license (it’s mainly ASL 2.0.)
>
> Thanks!
>
> Ludo’.
>

[-- Attachment #2: Type: text/html, Size: 1355 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-09-29 21:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-28 21:55 [PATCH] gnu: compression: Add pigz Jeff Mickey
2015-09-29 21:42 ` Ludovic Courtès
2015-09-29 21:46   ` Jeff Mickey

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).