mirror of
https://git.savannah.gnu.org/git/guix.git
synced 2025-02-03 08:36:32 +01:00
gnu: mongodb: Fix build.
* gnu/packages/databases.scm (mongodb)[inputs]: Use openssl 1, as 1.1. doesn't work. [arguments]: Change how a constant is defined in the tests to allow compiling with a newer version of GCC.
This commit is contained in:
parent
8ce774a54b
commit
9d67480adf
1 changed files with 10 additions and 1 deletions
|
@ -498,7 +498,7 @@ (define-public mongodb
|
||||||
(search-patch "mongodb-support-unknown-linux-distributions.patch")))))
|
(search-patch "mongodb-support-unknown-linux-distributions.patch")))))
|
||||||
(build-system scons-build-system)
|
(build-system scons-build-system)
|
||||||
(inputs
|
(inputs
|
||||||
`(("openssl" ,openssl)
|
`(("openssl" ,openssl-1.0)
|
||||||
("pcre" ,pcre)
|
("pcre" ,pcre)
|
||||||
,@(match (%current-system)
|
,@(match (%current-system)
|
||||||
((or "x86_64-linux" "aarch64-linux" "mips64el-linux")
|
((or "x86_64-linux" "aarch64-linux" "mips64el-linux")
|
||||||
|
@ -538,6 +538,15 @@ (define-public mongodb
|
||||||
,(format #f "--jobs=~a" (parallel-job-count))
|
,(format #f "--jobs=~a" (parallel-job-count))
|
||||||
"--ssl")))
|
"--ssl")))
|
||||||
(modify-phases %standard-phases
|
(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'patch
|
||||||
|
(lambda _
|
||||||
|
;; Remove use of GNU extensions in parse_number_test.cpp, to
|
||||||
|
;; allow compiling with GCC 7 or later
|
||||||
|
;; https://jira.mongodb.org/browse/SERVER-28063
|
||||||
|
(substitute* "src/mongo/base/parse_number_test.cpp"
|
||||||
|
(("0xabcab\\.defdefP-10")
|
||||||
|
"687.16784283419838"))
|
||||||
|
#t))
|
||||||
(add-after 'unpack 'scons-propagate-environment
|
(add-after 'unpack 'scons-propagate-environment
|
||||||
(lambda _
|
(lambda _
|
||||||
;; Modify the SConstruct file to arrange for
|
;; Modify the SConstruct file to arrange for
|
||||||
|
|
Loading…
Reference in a new issue