gnu: mariadb: Build with GCC 5 on ARMv7.

Fixes <https://bugs.gnu.org/37605>.

* gnu/packages/databases.scm (mariadb)[native-inputs]: Add GCC-5 when the
current system is ARMv7.
This commit is contained in:
Marius Bakke 2019-10-08 10:16:04 +02:00
parent 4d8d2fbaf3
commit 2fa55c7247
No known key found for this signature in database
GPG key ID: A2A06DF2A33A54FA

View file

@ -72,6 +72,7 @@ (define-module (gnu packages databases)
#:use-module (gnu packages dbm) #:use-module (gnu packages dbm)
#:use-module (gnu packages emacs) #:use-module (gnu packages emacs)
#:use-module (gnu packages flex) #:use-module (gnu packages flex)
#:use-module (gnu packages gcc)
#:use-module (gnu packages gettext) #:use-module (gnu packages gettext)
#:use-module (gnu packages glib) #:use-module (gnu packages glib)
#:use-module (gnu packages gnupg) #:use-module (gnu packages gnupg)
@ -779,6 +780,10 @@ (define-public mariadb
#t)))))) #t))))))
(native-inputs (native-inputs
`(("bison" ,bison) `(("bison" ,bison)
;; XXX: On armhf, use GCC 5 to work around <https://bugs.gnu.org/37605>.
,@(if (string-prefix? "armhf" (%current-system))
`(("gcc", gcc-5))
'())
("perl" ,perl))) ("perl" ,perl)))
(inputs (inputs
`(("jemalloc" ,jemalloc) `(("jemalloc" ,jemalloc)