diff mbox

[1/2] gnu: Add libjpeg-turbo.

Message ID 20161127201707.3789-1-me@tobias.gr
State New
Headers show

Commit Message

Tobias Geerinckx-Rice Nov. 27, 2016, 8:17 p.m. UTC
* gnu/packages/image.scm (libjpeg-turbo): New variable.
---
 gnu/packages/image.scm | 31 +++++++++++++++++++++++++++++++
 1 file changed, 31 insertions(+)

Comments

Leo Famulari Nov. 27, 2016, 8:55 p.m. UTC | #1
On Sun, Nov 27, 2016 at 09:17:06PM +0100, Tobias Geerinckx-Rice wrote:
> * gnu/packages/image.scm (libjpeg-turbo): New variable.

Can you double-check that there are no unpatched named bugs in this
version?

https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=turbo

Otherwise LGTM
Tobias Geerinckx-Rice Nov. 27, 2016, 9:12 p.m. UTC | #2
Leo,

On 27/11/16 21:55, Leo Famulari wrote:
> Can you double-check that there are no unpatched named bugs in this
> version?

Already did ;-)

According to [1], there are three known CVEs, all fixed by 1.4.2.

I didn't find any third party security patches being applied anywhere,
either.

Do you have suspicions otherwise?

Kind regards,

T G-R

[1]: https://cve.mitre.org/cgi-bin/cvekey.cgi?keyword=libjpeg-turbo
Leo Famulari Nov. 27, 2016, 9:36 p.m. UTC | #3
On Sun, Nov 27, 2016 at 10:12:13PM +0100, Tobias Geerinckx-Rice wrote:
> On 27/11/16 21:55, Leo Famulari wrote:
> > Can you double-check that there are no unpatched named bugs in this
> > version?
> 
> Already did ;-)
> 
> According to [1], there are three known CVEs, all fixed by 1.4.2.
> 
> I didn't find any third party security patches being applied anywhere,
> either.
> 
> Do you have suspicions otherwise?

Nope! Just wanted to be sure :)
diff mbox

Patch

diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm
index 526c87c..d513684 100644
--- a/gnu/packages/image.scm
+++ b/gnu/packages/image.scm
@@ -31,6 +31,7 @@ 
 (define-module (gnu packages image)
   #:use-module (gnu packages)
   #:use-module (gnu packages algebra)
+  #:use-module (gnu packages assembly)
   #:use-module (gnu packages autotools)
   #:use-module (gnu packages boost)
   #:use-module (gnu packages compression)
@@ -1016,3 +1017,33 @@  also converts external formats (BMP, GIF, PNM and TIFF) to optimized
 PNG, and performs PNG integrity checks and corrections.")
     (home-page "http://optipng.sourceforge.net/")
     (license license:zlib)))
+
+(define-public libjpeg-turbo
+  (package
+    (name "libjpeg-turbo")
+    (version "1.5.1")
+    (source (origin
+              (method url-fetch)
+              (uri (string-append "mirror://sourceforge/" name "/" version "/"
+                                  name "-" version ".tar.gz"))
+              (sha256
+               (base32
+                "0v365hm6z6lddcqagjj15wflk66rqyw75m73cqzl65rh4lyrshj1"))))
+    (build-system gnu-build-system)
+    (native-inputs
+     `(("nasm" ,nasm)))
+    (arguments
+     `(#:test-target "test"))
+    (home-page "http://www.libjpeg-turbo.org/")
+    (synopsis "SIMD-accelerated JPEG image handling library")
+    (description "libjpeg-turbo is a JPEG image codec that accelerates baseline
+JPEG compression and decompression using SIMD instructions: MMX on x86, SSE2 on
+x86-64, NEON on ARM, and AltiVec on PowerPC processors.  Even on other systems,
+its highly-optimized Huffman coding routines allow it to outperform libjpeg by
+a significant amount.
+libjpeg-turbo implements both the traditional libjpeg API and the less powerful
+but more straightforward TurboJPEG API, and provides a full-featured Java
+interface.  It supports color space extensions that allow it to compress from
+and decompress to 32-bit and big-endian pixel buffers (RGBX, XBGR, etc.).")
+    (license (list license:bsd-3        ; jsimd*.[ch] and most of simd/
+                   license:ijg))))      ; the rest