mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2024-12-24 05:18:07 -05:00
gnu: boost: Omit context and coroutines libraries on mips64el.
* gnu/packages/boost.scm (boost): Omit context and coroutines libraries on mips64el.
This commit is contained in:
parent
508ea01ef2
commit
aaf77acc1a
1 changed files with 39 additions and 29 deletions
|
@ -1,5 +1,6 @@
|
||||||
;;; GNU Guix --- Functional package management for GNU
|
;;; GNU Guix --- Functional package management for GNU
|
||||||
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
;;; Copyright © 2014 John Darrington <jmd@gnu.org>
|
||||||
|
;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -46,39 +47,48 @@ (define-public boost
|
||||||
("python" ,python-2)
|
("python" ,python-2)
|
||||||
("tcsh" ,tcsh)))
|
("tcsh" ,tcsh)))
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(let ((build-flags
|
||||||
(alist-replace
|
`("threading=multi" "link=shared"
|
||||||
'configure
|
;; Boost's 'context' library is not yet supported on mips64, so
|
||||||
(lambda* (#:key outputs #:allow-other-keys)
|
;; we disable it. The 'coroutine' library depends on 'context',
|
||||||
(let ((out (assoc-ref outputs "out")))
|
;; so we disable that too.
|
||||||
(substitute* '("libs/config/configure"
|
,@(if (equal? "mips64el-linux" (or (%current-target-system)
|
||||||
"libs/spirit/classic/phoenix/test/runtest.sh"
|
(%current-system)))
|
||||||
"tools/build/v2/doc/bjam.qbk"
|
'("--without-context" "--without-coroutine")
|
||||||
"tools/build/v2/engine/execunix.c"
|
'()))))
|
||||||
"tools/build/v2/engine/Jambase"
|
`(#:phases
|
||||||
"tools/build/v2/engine/jambase.c")
|
|
||||||
(("/bin/sh") (which "sh")))
|
|
||||||
|
|
||||||
(setenv "SHELL" (which "sh"))
|
|
||||||
(setenv "CONFIG_SHELL" (which "sh"))
|
|
||||||
|
|
||||||
(zero? (system* "./bootstrap.sh"
|
|
||||||
(string-append "--prefix=" out)
|
|
||||||
"--with-toolset=gcc"))))
|
|
||||||
(alist-replace
|
|
||||||
'build
|
|
||||||
(lambda _
|
|
||||||
(zero? (system* "./b2" "threading=multi" "link=shared")))
|
|
||||||
|
|
||||||
(alist-replace
|
(alist-replace
|
||||||
'check
|
'configure
|
||||||
(lambda _ #t)
|
(lambda* (#:key outputs #:allow-other-keys)
|
||||||
|
(let ((out (assoc-ref outputs "out")))
|
||||||
|
(substitute* '("libs/config/configure"
|
||||||
|
"libs/spirit/classic/phoenix/test/runtest.sh"
|
||||||
|
"tools/build/v2/doc/bjam.qbk"
|
||||||
|
"tools/build/v2/engine/execunix.c"
|
||||||
|
"tools/build/v2/engine/Jambase"
|
||||||
|
"tools/build/v2/engine/jambase.c")
|
||||||
|
(("/bin/sh") (which "sh")))
|
||||||
|
|
||||||
|
(setenv "SHELL" (which "sh"))
|
||||||
|
(setenv "CONFIG_SHELL" (which "sh"))
|
||||||
|
|
||||||
|
(zero? (system* "./bootstrap.sh"
|
||||||
|
(string-append "--prefix=" out)
|
||||||
|
"--with-toolset=gcc"))))
|
||||||
(alist-replace
|
(alist-replace
|
||||||
'install
|
'build
|
||||||
(lambda _
|
(lambda _
|
||||||
(zero? (system* "./b2" "install" "threading=multi" "link=shared")))
|
(zero? (system* "./b2" ,@build-flags)))
|
||||||
%standard-phases))))))
|
|
||||||
|
(alist-replace
|
||||||
|
'check
|
||||||
|
(lambda _ #t)
|
||||||
|
|
||||||
|
(alist-replace
|
||||||
|
'install
|
||||||
|
(lambda _
|
||||||
|
(zero? (system* "./b2" "install" ,@build-flags)))
|
||||||
|
%standard-phases)))))))
|
||||||
|
|
||||||
(home-page "http://boost.org")
|
(home-page "http://boost.org")
|
||||||
(synopsis "Peer-reviewed portable C++ source libraries")
|
(synopsis "Peer-reviewed portable C++ source libraries")
|
||||||
|
|
Loading…
Reference in a new issue