mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-11 13:49:23 -05:00
gnu: boost-for-mysql: Fix building.
Co-authored with Jonathan Brielmaier <jonathan.brielmaier@web.de> * gnu/packages/boost.scm (boost-for-mysql)[arguments]: Replace inherited 'configure, phase remove references to python and update the substitute regex for boost-1.59. Absorb 'more-bin-sh-patching into 'configure.Adjust make-flags to always pass '--without-python'. [native-inputs]: Remove python.
This commit is contained in:
parent
8825a01b39
commit
a0828560b5
1 changed files with 35 additions and 6 deletions
|
@ -13,6 +13,7 @@
|
||||||
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
|
||||||
;;; Copyright © 2019, 2020 Giacomo Leidi <goodoldpaul@autistici.org>
|
;;; Copyright © 2019, 2020 Giacomo Leidi <goodoldpaul@autistici.org>
|
||||||
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
;;; Copyright © 2020 Marius Bakke <mbakke@fastmail.com>
|
||||||
|
;;; Copyright © 2020 Jonathan Brielmaier <jonathan.brielmaier@web.de>
|
||||||
;;;
|
;;;
|
||||||
;;; This file is part of GNU Guix.
|
;;; This file is part of GNU Guix.
|
||||||
;;;
|
;;;
|
||||||
|
@ -241,12 +242,40 @@ (define-public boost-for-mysql
|
||||||
(arguments (substitute-keyword-arguments (package-arguments boost)
|
(arguments (substitute-keyword-arguments (package-arguments boost)
|
||||||
((#:phases phases)
|
((#:phases phases)
|
||||||
`(modify-phases ,phases
|
`(modify-phases ,phases
|
||||||
;; This was removed after boost-1.67.
|
(replace 'configure
|
||||||
(add-before 'configure 'more-bin-sh-patching
|
(lambda* (#:key inputs outputs #:allow-other-keys)
|
||||||
(lambda _
|
(let ((icu (assoc-ref inputs "icu4c"))
|
||||||
(substitute* "tools/build/doc/bjam.qbk"
|
(out (assoc-ref outputs "out")))
|
||||||
(("/bin/sh") (which "sh")))))
|
(substitute* (append
|
||||||
(delete 'provide-libboost_python)))))
|
(find-files "tools/build/src/engine/" "execunix\\.c.*")
|
||||||
|
'("libs/config/configure"
|
||||||
|
"libs/spirit/classic/phoenix/test/runtest.sh"
|
||||||
|
"tools/build/doc/bjam.qbk"
|
||||||
|
"tools/build/src/engine/Jambase"))
|
||||||
|
(("/bin/sh") (which "sh")))
|
||||||
|
|
||||||
|
(setenv "SHELL" (which "sh"))
|
||||||
|
(setenv "CONFIG_SHELL" (which "sh"))
|
||||||
|
|
||||||
|
,@(if (%current-target-system)
|
||||||
|
`((call-with-output-file "user-config.jam"
|
||||||
|
(lambda (port)
|
||||||
|
(format port
|
||||||
|
"using gcc : cross : ~a-c++ ;"
|
||||||
|
,(%current-target-system)))))
|
||||||
|
'())
|
||||||
|
|
||||||
|
(invoke "./bootstrap.sh"
|
||||||
|
(string-append "--prefix=" out)
|
||||||
|
;; Auto-detection looks for ICU only in traditional
|
||||||
|
;; install locations.
|
||||||
|
(string-append "--with-icu=" icu)
|
||||||
|
"--with-toolset=gcc"))))
|
||||||
|
(delete 'provide-libboost_python)))
|
||||||
|
((#:make-flags make-flags)
|
||||||
|
`(cons* "--without-python" ,make-flags))))
|
||||||
|
(native-inputs
|
||||||
|
(alist-delete "python" (package-native-inputs boost)))
|
||||||
(properties '((hidden? . #t)))))
|
(properties '((hidden? . #t)))))
|
||||||
|
|
||||||
(define-public boost-sync
|
(define-public boost-sync
|
||||||
|
|
Loading…
Reference in a new issue