diff options
author | Efraim Flashner <efraim@flashner.co.il> | 2016-12-13 10:04:11 +0200 |
---|---|---|
committer | Efraim Flashner <efraim@flashner.co.il> | 2016-12-13 11:15:32 +0200 |
commit | e90a706e1686aaf3a1004683be8a3f3a4cbaf22e (patch) | |
tree | 89020748f82a38617e2c302ee1cd883d68dd6052 /gnu/packages | |
parent | 61dd253f8e54101869fc2853934a8b4b8a28c0f2 (diff) | |
download | guix-e90a706e1686aaf3a1004683be8a3f3a4cbaf22e.tar.gz |
gnu: libjpeg-turbo: Fix build on mips.
* gnu/packages/image.scm (libjpeg-turbo)[arguments]: Add substitution to set variable type before use.
Diffstat (limited to 'gnu/packages')
-rw-r--r-- | gnu/packages/image.scm | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/gnu/packages/image.scm b/gnu/packages/image.scm index 4967f83ed9..7429e9b649 100644 --- a/gnu/packages/image.scm +++ b/gnu/packages/image.scm @@ -1068,7 +1068,17 @@ PNG, and performs PNG integrity checks and corrections.") (native-inputs `(("nasm" ,nasm))) (arguments - `(#:test-target "test")) + '(#:test-target "test" + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'set-env-on-MIPS + ;; This is borrowed from Debian's patchset for libjpeg + ;; https://sources.debian.net/data/main/libj/libjpeg-turbo/1:1.5.1-2/debian/patches/0001-Declare-env-on-MIPS-on-first-use-Courtesy-of-Aurelie.patch + (lambda _ + (substitute* "simd/jsimd_mips.c" + (("env = getenv\\(\"JSIMD_FORCEDSPR2") + "char *env = getenv\(\"JSIMD_FORCEDSPR2")) + #t))))) (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 |