mirror of
https://git.in.rschanz.org/ryan77627/guix.git
synced 2025-01-13 06:36:37 -05:00
gnu: MariaDB: Remove workaround package.
* gnu/packages/databases.scm (mariadb)[arguments]: Add substitution for the 'mysql_install_db' script. (mariadb/fixed-install-db): Remove variable. (libdbi-drivers)[native-inputs]: Change from MARIADB/FIXED-INSTALL-DB to MARIADB.
This commit is contained in:
parent
dfe3b39d1e
commit
ca69163cc5
1 changed files with 6 additions and 28 deletions
|
@ -879,6 +879,11 @@ (define-public mariadb
|
|||
(rename-file (string-append out "/bin/mysql_config")
|
||||
(string-append dev "/bin/mysql_config"))
|
||||
|
||||
|
||||
(substitute* (string-append out "/bin/mysql_install_db")
|
||||
(("\\$basedir/share/mysql")
|
||||
(string-append lib "/share/mysql")))
|
||||
|
||||
;; Embed an absolute reference to OpenSSL in mysql_config
|
||||
;; and the pkg-config file to avoid propagation.
|
||||
(substitute* (list (string-append dev "/bin/mysql_config")
|
||||
|
@ -914,33 +919,6 @@ (define-public mariadb
|
|||
as a drop-in replacement of MySQL.")
|
||||
(license license:gpl2)))
|
||||
|
||||
;; TODO: mysql_install_db is broken in MariaDB. This package is here as
|
||||
;; a workaround for packages that need it. Merge with 'mariadb' in the next
|
||||
;; rebuild cycle.
|
||||
(define-public mariadb/fixed-install-db
|
||||
(hidden-package
|
||||
(package/inherit
|
||||
mariadb
|
||||
(name "mariadb-fixed")
|
||||
(native-inputs '())
|
||||
(inputs
|
||||
`(("mariadb" ,mariadb)
|
||||
("mariadb:lib" ,mariadb "lib")))
|
||||
(outputs '("out"))
|
||||
(build-system trivial-build-system)
|
||||
(arguments
|
||||
`(#:modules ((guix build utils))
|
||||
#:builder
|
||||
(begin
|
||||
(use-modules ((guix build utils)))
|
||||
(let ((out (assoc-ref %outputs "out")))
|
||||
(copy-recursively (assoc-ref %build-inputs "mariadb") out)
|
||||
(substitute* (string-append out "/bin/mysql_install_db")
|
||||
(("\\$basedir/share/mysql")
|
||||
(string-append (assoc-ref %build-inputs "mariadb:lib")
|
||||
"/share/mysql")))
|
||||
#t)))))))
|
||||
|
||||
;; Don't forget to update the other postgresql packages when upgrading this one.
|
||||
(define-public postgresql
|
||||
(package
|
||||
|
@ -3278,7 +3256,7 @@ (define-public libdbi-drivers
|
|||
`(;; For tests.
|
||||
("inetutils" ,inetutils)
|
||||
("glibc-locales" ,glibc-locales)
|
||||
("mariadb" ,mariadb/fixed-install-db)))
|
||||
("mariadb" ,mariadb)))
|
||||
(inputs
|
||||
`(("libdbi" ,libdbi)
|
||||
("mariadb:dev" ,mariadb "dev")
|
||||
|
|
Loading…
Reference in a new issue