gnu: Add a C++14 variant of Boost for packages that need it.

Fixes <https://bugs.gnu.org/33605> and <https://bugs.gnu.org/33610>.

* gnu/packages/boost.scm (boost-cxx14): New variable.
* gnu/packages/compression.scm (innoextract)[inputs]: Use it.
* gnu/packages/mpd.scm (ncmpcpp)[inputs]: Use it.
This commit is contained in:
Leo Famulari 2018-12-05 01:28:00 -05:00
parent 23a1f738b1
commit b9103c827c
No known key found for this signature in database
GPG Key ID: 2646FA30BACA7F08
3 changed files with 12 additions and 2 deletions

View File

@ -122,6 +122,16 @@ across a broad spectrum of applications.")
(license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt" (license (license:x11-style "https://www.boost.org/LICENSE_1_0.txt"
"Some components have other similar licences.")))) "Some components have other similar licences."))))
;; Some programs need Boost to be built with C++14 support.
(define-public boost-cxx14
(package (inherit boost)
(arguments
(substitute-keyword-arguments (package-arguments boost)
((#:make-flags flags)
`(append ,flags
'("cxxflags=-std=c++14")))))
(properties '((hidden? . #t)))))
(define-public boost-for-mysql (define-public boost-for-mysql
;; Older version for MySQL 5.7.23. ;; Older version for MySQL 5.7.23.
(package (package

View File

@ -2263,7 +2263,7 @@ single-member files which can't be decompressed in parallel.")
(build-system cmake-build-system) (build-system cmake-build-system)
(arguments (arguments
`(#:tests? #f)) ;; No tests available. `(#:tests? #f)) ;; No tests available.
(inputs `(("boost" ,boost) (inputs `(("boost" ,boost-cxx14)
("libiconv" ,libiconv) ("libiconv" ,libiconv)
("xz" ,xz))) ("xz" ,xz)))
(native-inputs `(("pkg-config" ,pkg-config))) (native-inputs `(("pkg-config" ,pkg-config)))

View File

@ -244,7 +244,7 @@ terminal using ncurses.")
"0m0mjb049sl62vx13h9waavysa30mk0rphacksnvf94n13la62v5")))) "0m0mjb049sl62vx13h9waavysa30mk0rphacksnvf94n13la62v5"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(inputs `(("libmpdclient" ,libmpdclient) (inputs `(("libmpdclient" ,libmpdclient)
("boost" ,boost) ("boost" ,boost-cxx14)
("readline" ,readline) ("readline" ,readline)
("ncurses" ,ncurses) ("ncurses" ,ncurses)
("taglib" ,taglib) ("taglib" ,taglib)