summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEric Bavier <bavier@member.fsf.org>2016-01-05 16:09:27 -0600
committerLudovic Courtès <ludo@gnu.org>2016-01-12 21:07:53 +0100
commitc91d3fb7f4f754b56b540d8556d6a3ce6085ef37 (patch)
tree89c7d1ff32dcf730de4c26033b8ea1786395129e
parent3abe8136fddf5bed75219bcb8a552004f078560a (diff)
gnu: boost: Update to 1.60.0.
* gnu/packages/boost.scm (boost): Update to 1.60.0. [source]: Remove patch. * gnu/packages/patches/boost-mips-avoid-m32.patch: Delete patch * gnu-system.am (dist_patch_DATA): Remove patch. Also fix dependent packages: * gnu/packages/patches/csound-header-ordering.patch: New patch. * gnu/packages/audio.scm (csound)[source]: Use it. [arguments]: Add 'set-flags phase. * gnu/packages/patches/libcmis-fix-test-onedrive.patch: New patch. * gnu/packages/libreoffice.scm (libcmis)[source]: Use it. (libreoffice)[arguments]: Add LDFLAGS to #:configure-flags. (librevenge)[inputs]: Move boost from here... [propogated-inputs]: to here. [arguments]: Add LDFLAGS to #:configure-flags. * gnu/packages/patches/openimageio-boost-1.60.patch: New patch. * gnu/packages/graphics.scm (openimageio): Use it. * gnu-system.am (dist_patch_DATA): Add patches.
-rw-r--r--gnu-system.am4
-rw-r--r--gnu/packages/audio.scm14
-rw-r--r--gnu/packages/boost.scm9
-rw-r--r--gnu/packages/graphics.scm3
-rw-r--r--gnu/packages/libreoffice.scm15
-rw-r--r--gnu/packages/patches/boost-mips-avoid-m32.patch15
-rw-r--r--gnu/packages/patches/csound-header-ordering.patch20
-rw-r--r--gnu/packages/patches/libcmis-fix-test-onedrive.patch35
-rw-r--r--gnu/packages/patches/openimageio-boost-1.60.patch47
9 files changed, 135 insertions, 27 deletions
diff --git a/gnu-system.am b/gnu-system.am
index 45487a466a5..fa2f0384020 100644
--- a/gnu-system.am
+++ b/gnu-system.am
@@ -421,7 +421,6 @@ dist_patch_DATA = \
421 gnu/packages/patches/binutils-ld-new-dtags.patch \ 421 gnu/packages/patches/binutils-ld-new-dtags.patch \
422 gnu/packages/patches/binutils-loongson-workaround.patch \ 422 gnu/packages/patches/binutils-loongson-workaround.patch \
423 gnu/packages/patches/bitlbee-configure-doc-fix.patch \ 423 gnu/packages/patches/bitlbee-configure-doc-fix.patch \
424 gnu/packages/patches/boost-mips-avoid-m32.patch \
425 gnu/packages/patches/byobu-writable-status.patch \ 424 gnu/packages/patches/byobu-writable-status.patch \
426 gnu/packages/patches/calibre-drop-unrar.patch \ 425 gnu/packages/patches/calibre-drop-unrar.patch \
427 gnu/packages/patches/calibre-no-updates-dialog.patch \ 426 gnu/packages/patches/calibre-no-updates-dialog.patch \
@@ -434,6 +433,7 @@ dist_patch_DATA = \
434 gnu/packages/patches/cpufrequtils-fix-aclocal.patch \ 433 gnu/packages/patches/cpufrequtils-fix-aclocal.patch \
435 gnu/packages/patches/crda-optional-gcrypt.patch \ 434 gnu/packages/patches/crda-optional-gcrypt.patch \
436 gnu/packages/patches/crossmap-allow-system-pysam.patch \ 435 gnu/packages/patches/crossmap-allow-system-pysam.patch \
436 gnu/packages/patches/csound-header-ordering.patch \
437 gnu/packages/patches/cssc-gets-undeclared.patch \ 437 gnu/packages/patches/cssc-gets-undeclared.patch \
438 gnu/packages/patches/cssc-missing-include.patch \ 438 gnu/packages/patches/cssc-missing-include.patch \
439 gnu/packages/patches/clucene-contribs-lib.patch \ 439 gnu/packages/patches/clucene-contribs-lib.patch \
@@ -533,6 +533,7 @@ dist_patch_DATA = \
533 gnu/packages/patches/libarchive-mtree-filename-length-fix.patch \ 533 gnu/packages/patches/libarchive-mtree-filename-length-fix.patch \
534 gnu/packages/patches/libbonobo-activation-test-race.patch \ 534 gnu/packages/patches/libbonobo-activation-test-race.patch \
535 gnu/packages/patches/libcanberra-sound-theme-freedesktop.patch \ 535 gnu/packages/patches/libcanberra-sound-theme-freedesktop.patch \
536 gnu/packages/patches/libcmis-fix-test-onedrive.patch \
536 gnu/packages/patches/libdrm-symbol-check.patch \ 537 gnu/packages/patches/libdrm-symbol-check.patch \
537 gnu/packages/patches/libevent-dns-tests.patch \ 538 gnu/packages/patches/libevent-dns-tests.patch \
538 gnu/packages/patches/libmtp-devices.patch \ 539 gnu/packages/patches/libmtp-devices.patch \
@@ -604,6 +605,7 @@ dist_patch_DATA = \
604 gnu/packages/patches/nvi-dbpagesize-binpower.patch \ 605 gnu/packages/patches/nvi-dbpagesize-binpower.patch \
605 gnu/packages/patches/nvi-db4.patch \ 606 gnu/packages/patches/nvi-db4.patch \
606 gnu/packages/patches/openexr-missing-samples.patch \ 607 gnu/packages/patches/openexr-missing-samples.patch \
608 gnu/packages/patches/openimageio-boost-1.60.patch \
607 gnu/packages/patches/openjpeg-CVE-2015-6581.patch \ 609 gnu/packages/patches/openjpeg-CVE-2015-6581.patch \
608 gnu/packages/patches/openjpeg-use-after-free-fix.patch \ 610 gnu/packages/patches/openjpeg-use-after-free-fix.patch \
609 gnu/packages/patches/openssl-runpath.patch \ 611 gnu/packages/patches/openssl-runpath.patch \
diff --git a/gnu/packages/audio.scm b/gnu/packages/audio.scm
index ebae5d57d90..3cc5cebc2cf 100644
--- a/gnu/packages/audio.scm
+++ b/gnu/packages/audio.scm
@@ -320,7 +320,8 @@ tools (analyzer, mono/stereo tools, crossovers).")
320 version "/Csound" version ".tar.gz")) 320 version "/Csound" version ".tar.gz"))
321 (sha256 321 (sha256
322 (base32 322 (base32
323 "0a1sni6lr7qpwywpggbkp0ia3h9bwwgf9i87gsag8ra2h30v82hd")))) 323 "0a1sni6lr7qpwywpggbkp0ia3h9bwwgf9i87gsag8ra2h30v82hd"))
324 (patches (list (search-patch "csound-header-ordering.patch")))))
324 (build-system cmake-build-system) 325 (build-system cmake-build-system)
325 (arguments 326 (arguments
326 ;; Work around this error on x86_64 with libc 2.22+: 327 ;; Work around this error on x86_64 with libc 2.22+:
@@ -1081,7 +1082,16 @@ software.")
1081 #:configure-flags 1082 #:configure-flags
1082 (list (string-append "--boost-includes=" 1083 (list (string-append "--boost-includes="
1083 (assoc-ref %build-inputs "boost") 1084 (assoc-ref %build-inputs "boost")
1084 "/include")))) 1085 "/include"))
1086 #:phases (modify-phases %standard-phases
1087 (add-before
1088 'configure 'set-flags
1089 (lambda* (#:key inputs #:allow-other-keys)
1090 ;; See e.g. https://github.com/lvtk/lvtk/issues/21
1091 (setenv "LDFLAGS"
1092 (string-append
1093 "-L" (assoc-ref inputs "boost") "/lib "
1094 "-lboost_system")))))))
1085 (inputs 1095 (inputs
1086 `(("boost" ,boost) 1096 `(("boost" ,boost)
1087 ("lv2" ,lv2))) 1097 ("lv2" ,lv2)))
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm
index d3d0c0339a4..0a644e89408 100644
--- a/gnu/packages/boost.scm
+++ b/gnu/packages/boost.scm
@@ -2,6 +2,7 @@
2;;; Copyright © 2014 John Darrington <jmd@gnu.org> 2;;; Copyright © 2014 John Darrington <jmd@gnu.org>
3;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org> 3;;; Copyright © 2014, 2015 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2015 Andreas Enge <andreas@enge.fr> 4;;; Copyright © 2015 Andreas Enge <andreas@enge.fr>
5;;; Copyright © 2016 Eric Bavier <bavier@member.fsf.org>
5;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org> 6;;; Copyright © 2015 Ludovic Courtès <ludo@gnu.org>
6;;; 7;;;
7;;; This file is part of GNU Guix. 8;;; This file is part of GNU Guix.
@@ -33,7 +34,7 @@
33(define-public boost 34(define-public boost
34 (package 35 (package
35 (name "boost") 36 (name "boost")
36 (version "1.58.0") 37 (version "1.60.0")
37 (source (origin 38 (source (origin
38 (method url-fetch) 39 (method url-fetch)
39 (uri (string-append 40 (uri (string-append
@@ -42,8 +43,7 @@
42 ".tar.bz2")) 43 ".tar.bz2"))
43 (sha256 44 (sha256
44 (base32 45 (base32
45 "1rfkqxns60171q62cppiyzj8pmsbwp1l8jd7p6crriryqd7j1z7x")) 46 "0fzx6dwqbrkd4bcd8pjv0fpapwmrxxwr8yx9g67lihlsk3zzysk8"))))
46 (patches (list (search-patch "boost-mips-avoid-m32.patch")))))
47 (build-system gnu-build-system) 47 (build-system gnu-build-system)
48 (inputs `(("zlib" ,zlib))) 48 (inputs `(("zlib" ,zlib)))
49 (native-inputs 49 (native-inputs
@@ -63,7 +63,8 @@
63 ;; so we disable that too. 63 ;; so we disable that too.
64 ,@(if (string-prefix? "mips64" (or (%current-target-system) 64 ,@(if (string-prefix? "mips64" (or (%current-target-system)
65 (%current-system))) 65 (%current-system)))
66 '("--without-context" "--without-coroutine") 66 '("--without-context"
67 "--without-coroutine" "--without-coroutine2")
67 '())))) 68 '()))))
68 `(#:tests? #f 69 `(#:tests? #f
69 #:phases 70 #:phases
diff --git a/gnu/packages/graphics.scm b/gnu/packages/graphics.scm
index 4e15b814c8d..560febe9589 100644
--- a/gnu/packages/graphics.scm
+++ b/gnu/packages/graphics.scm
@@ -143,7 +143,8 @@ storage of the \"EXR\" file format for storing 16-bit floating-point images.")
143 (file-name (string-append name "-" version ".tar.gz")) 143 (file-name (string-append name "-" version ".tar.gz"))
144 (sha256 144 (sha256
145 (base32 145 (base32
146 "0mn7cz19mn8dcrhkq15h25gl20ammr1wz0j2j3c2vxs6ph7zn8jy")))) 146 "0mn7cz19mn8dcrhkq15h25gl20ammr1wz0j2j3c2vxs6ph7zn8jy"))
147 (patches (list (search-patch "openimageio-boost-1.60.patch")))))
147 (build-system cmake-build-system) 148 (build-system cmake-build-system)
148 ;; FIXME: To run all tests successfully, test image sets from multiple 149 ;; FIXME: To run all tests successfully, test image sets from multiple
149 ;; third party sources have to be present. For details see 150 ;; third party sources have to be present. For details see
diff --git a/gnu/packages/libreoffice.scm b/gnu/packages/libreoffice.scm
index 7496a6c8b94..a82cde7d0ad 100644
--- a/gnu/packages/libreoffice.scm
+++ b/gnu/packages/libreoffice.scm
@@ -25,6 +25,7 @@
25 non-copyleft x11-style)) 25 non-copyleft x11-style))
26 #:use-module (guix packages) 26 #:use-module (guix packages)
27 #:use-module (guix utils) 27 #:use-module (guix utils)
28 #:use-module (gnu packages)
28 #:use-module (gnu packages autotools) 29 #:use-module (gnu packages autotools)
29 #:use-module (gnu packages base) 30 #:use-module (gnu packages base)
30 #:use-module (gnu packages bison) 31 #:use-module (gnu packages bison)
@@ -130,15 +131,18 @@ CSV, CSS and XML.")
130 "03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn")))) 131 "03ygxyb0vfjv8raif5q62sl33b54wkr5rzgadb8slijm6k281wpn"))))
131 (build-system gnu-build-system) 132 (build-system gnu-build-system)
132 (native-inputs 133 (native-inputs
133 `(("boost" ,boost) 134 `(("cppunit" ,cppunit)
134 ("cppunit" ,cppunit)
135 ("doxygen" ,doxygen) 135 ("doxygen" ,doxygen)
136 ("pkg-config" ,pkg-config))) 136 ("pkg-config" ,pkg-config)))
137 (inputs 137 (inputs
138 `(("zlib" ,zlib))) 138 `(("zlib" ,zlib)))
139 (propagated-inputs ; Referenced by .la files
140 `(("boost" ,boost)))
139 (arguments 141 (arguments
140 ;; avoid triggering configure errors by simple inclusion of boost headers 142 ;; avoid triggering configure errors by simple inclusion of boost headers
141 `(#:configure-flags '("--disable-werror"))) 143 `(#:configure-flags '("--disable-werror"
144 ;; Avoid undefined library references
145 "LDFLAGS=-lboost_system")))
142 (home-page "http://sourceforge.net/p/libwpd/wiki/librevenge/") 146 (home-page "http://sourceforge.net/p/libwpd/wiki/librevenge/")
143 (synopsis "Document importer for office suites") 147 (synopsis "Document importer for office suites")
144 (description "Librevenge is a base library for writing document import 148 (description "Librevenge is a base library for writing document import
@@ -244,7 +248,8 @@ working with graphics in the WPG (WordPerfect Graphics) format.")
244 (uri (string-append "mirror://sourceforge/" name "/" name "-" 248 (uri (string-append "mirror://sourceforge/" name "/" name "-"
245 version ".tar.gz")) 249 version ".tar.gz"))
246 (sha256 (base32 250 (sha256 (base32
247 "1dprvk4fibylv24l7gr49gfqbkfgmxynvgssvdcycgpf7n8h4zm8")))) 251 "1dprvk4fibylv24l7gr49gfqbkfgmxynvgssvdcycgpf7n8h4zm8"))
252 (patches (list (search-patch "libcmis-fix-test-onedrive.patch")))))
248 (build-system gnu-build-system) 253 (build-system gnu-build-system)
249 (native-inputs 254 (native-inputs
250 `(("cppunit" ,cppunit) 255 `(("cppunit" ,cppunit)
@@ -805,6 +810,8 @@ and to return information on pronunciations, meanings and synonyms.")
805 "--with-system-libs" ; enable all --with-system-* flags 810 "--with-system-libs" ; enable all --with-system-* flags
806 (string-append "--with-boost-libdir=" 811 (string-append "--with-boost-libdir="
807 (assoc-ref %build-inputs "boost") "/lib") 812 (assoc-ref %build-inputs "boost") "/lib")
813 ;; Avoid undefined symbols required by boost::spirit
814 "LDFLAGS=-lboost_system"
808 ;; Avoid a dependency on ucpp. 815 ;; Avoid a dependency on ucpp.
809 "--with-idlc-cpp=cpp" 816 "--with-idlc-cpp=cpp"
810 ;; The fonts require an external tarball (crosextrafonts). 817 ;; The fonts require an external tarball (crosextrafonts).
diff --git a/gnu/packages/patches/boost-mips-avoid-m32.patch b/gnu/packages/patches/boost-mips-avoid-m32.patch
deleted file mode 100644
index 811c9fb3aa4..00000000000
--- a/gnu/packages/patches/boost-mips-avoid-m32.patch
+++ /dev/null
@@ -1,15 +0,0 @@
1The following patch prevents the use of the -m32 flag on mips, where it
2is not understood by gcc, as well as other non-x86 architectures.
3
4diff -u -r boost_1_58_0.orig/tools/build/src/tools/gcc.jam boost_1_58_0/tools/build/src/tools/gcc.jam
5--- boost_1_58_0.orig/tools/build/src/tools/gcc.jam 2015-04-04 19:25:07.000000000 +0200
6+++ boost_1_58_0/tools/build/src/tools/gcc.jam 2015-07-10 01:08:19.822733823 +0200
7@@ -451,7 +451,7 @@
8 else
9 {
10 local arch = [ feature.get-values architecture : $(properties) ] ;
11- if $(arch) != arm
12+ if $(arch) = x86
13 {
14 if $(model) = 32
15 {
diff --git a/gnu/packages/patches/csound-header-ordering.patch b/gnu/packages/patches/csound-header-ordering.patch
new file mode 100644
index 00000000000..3640d123dd3
--- /dev/null
+++ b/gnu/packages/patches/csound-header-ordering.patch
@@ -0,0 +1,20 @@
1Prevent compilation issues with boost-1.60.0.
2
3Reported upstream at https://github.com/csound/csound/issues/570
4
5--- Csound6.05/Opcodes/chua/ChuaOscillator.cpp 2015-04-25 14:06:22.995646234 -0500
6+++ Csound6.05/Opcodes/chua/ChuaOscillator.cpp 2015-12-21 10:31:58.182362640 -0600
7@@ -117,11 +117,12 @@
8 // d = sys_variables(12);
9 // gnor = a*(x.^3) + b*(x.^2) + c*x + d;
10
11-#include <OpcodeBase.hpp>
12 #include <boost/numeric/ublas/vector.hpp>
13 using namespace boost::numeric;
14 #include <cmath>
15
16+#include <OpcodeBase.hpp>
17+
18 #undef CS_KSMPS
19 #define CS_KSMPS (opds.insdshead->ksmps)
20
diff --git a/gnu/packages/patches/libcmis-fix-test-onedrive.patch b/gnu/packages/patches/libcmis-fix-test-onedrive.patch
new file mode 100644
index 00000000000..adf2e0b8e5b
--- /dev/null
+++ b/gnu/packages/patches/libcmis-fix-test-onedrive.patch
@@ -0,0 +1,35 @@
1Patch from resolution of http://sourceforge.net/p/libcmis/tickets/13/
2
3From 814c7845d53688b35a747cf193c2ff99e40a8652 Mon Sep 17 00:00:00 2001
4From: Jonathan Wakely <jwakely@redhat.com>
5Date: Wed, 2 Sep 2015 16:35:45 +0100
6Subject: [PATCH 5/5] Remove invalid comments from test JSON file.
7
8---
9 qa/libcmis/data/onedrive/search-result.json | 4 ++--
10 1 file changed, 2 insertions(+), 2 deletions(-)
11
12diff --git a/qa/libcmis/data/onedrive/search-result.json b/qa/libcmis/data/onedrive/search-result.json
13index 61d250a..2482429 100644
14--- a/qa/libcmis/data/onedrive/search-result.json
15+++ b/qa/libcmis/data/onedrive/search-result.json
16@@ -8,7 +8,7 @@
17 },
18 "name":"OneDriveFile",
19 "description":"",
20- "parent_id":"folderA", // path: /A/Wrong File
21+ "parent_id":"folderA",
22 "size":18047,
23 "upload_location":"https://apis.live.net/v5.0/wrongFileId/content/",
24 "comments_count":0,
25@@ -32,7 +32,7 @@
26 },
27 "name":"OneDriveFile",
28 "description":"",
29- "parent_id":"folderC", // path: /A/B/C/Right File
30+ "parent_id":"folderC",
31 "size":4,
32 "upload_location":"https://apis.live.net/v5.0/rightFileId/content/",
33 "comments_count":0,
34--
352.4.3 \ No newline at end of file
diff --git a/gnu/packages/patches/openimageio-boost-1.60.patch b/gnu/packages/patches/openimageio-boost-1.60.patch
new file mode 100644
index 00000000000..92fc3237bb5
--- /dev/null
+++ b/gnu/packages/patches/openimageio-boost-1.60.patch
@@ -0,0 +1,47 @@
1From 875fbbd92695397bfc83d1cd5fdd4094e1d50199 Mon Sep 17 00:00:00 2001
2From: Larry Gritz <lg@larrygritz.com>
3Date: Mon, 28 Dec 2015 11:46:07 -0800
4Subject: [PATCH] Python ImageCache binding fixes -- disable broken calls
5
6Some of these calls (thankfully undocumented and presumably unused)
7are horribly broken. They compiled before, but with new Boost 1.60
8they don't even compile properly. So just comment them out on this
9obsolete branch. They are fully fixed in RB-1.6 and beyond.
10
11--- a/src/python/py_imagecache.cpp
12+++ b/src/python/py_imagecache.cpp
13@@ -199,23 +199,24 @@ void declare_imagecache()
14 .def("destroy", &ImageCacheWrap::destroy)
15 .staticmethod("destroy")
16 .def("clear", &ImageCacheWrap::clear)
17- .def("attribute", &ImageCacheWrap::attribute)
18+ // .def("attribute", &ImageCacheWrap::attribute)
19 .def("attribute", &ImageCacheWrap::attribute_int)
20 .def("attribute", &ImageCacheWrap::attribute_float)
21- .def("attribute", &ImageCacheWrap::attribute_double)
22- .def("attribute", &ImageCacheWrap::attribute_char)
23+ // .def("attribute", &ImageCacheWrap::attribute_double)
24+ // .def("attribute", &ImageCacheWrap::attribute_char)
25 .def("attribute", &ImageCacheWrap::attribute_string)
26- .def("getattribute", &ImageCacheWrap::attribute)
27+ // .def("getattribute", &ImageCacheWrap::attribute)
28 .def("getattribute", &ImageCacheWrap::getattribute_int)
29 .def("getattribute", &ImageCacheWrap::getattribute_float)
30- .def("getattribute", &ImageCacheWrap::getattribute_double)
31- .def("getattribute", &ImageCacheWrap::getattribute_char)
32+ // .def("getattribute", &ImageCacheWrap::getattribute_double)
33+ // .def("getattribute", &ImageCacheWrap::getattribute_char)
34 .def("getattribute", &ImageCacheWrap::getattribute_string)
35- .def("resolve_filename", &ImageCacheWrap::resolve_filename)
36- .def("get_image_info", &ImageCacheWrap::get_image_info)
37- .def("get_image_info", &ImageCacheWrap::get_image_info_old)
38+ // .def("get_image_info", &ImageCacheWrap::get_image_info)
39+ // .def("get_image_info", &ImageCacheWrap::get_image_info_old)
40 .def("get_imagespec", &ImageCacheWrap::get_imagespec)
41- .def("get_pixels", &ImageCacheWrap::get_pixels)
42+ // .def("get_pixels", &ImageCacheWrap::get_pixels)
43+ .def("resolve_filename", &ImageCacheWrap::resolve_filename)
44+
45 // .def("get_tile", &ImageCacheWrap::get_tile)
46 // .def("release_tile", &ImageCacheWrap::release_tile)
47 // .def("tile_pixels", &ImageCacheWrap::tile_pixels)