[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
24/24: gnu: MariaDB: Do not propagate OpenSSL.
From: |
guix-commits |
Subject: |
24/24: gnu: MariaDB: Do not propagate OpenSSL. |
Date: |
Tue, 10 Dec 2019 19:16:05 -0500 (EST) |
mbakke pushed a commit to branch staging
in repository guix.
commit 939c5b2cb6952cd8549bf17d6fd3bcbfb582f0bd
Author: Marius Bakke <address@hidden>
Date: Tue Dec 10 16:19:23 2019 +0100
gnu: MariaDB: Do not propagate OpenSSL.
* gnu/packages/databases.scm (mariadb)[propagated-inputs]: Remove.
[inputs]: Add OPENSSL-1.0.
[arguments]: Add absolute references to OpenSSL in "post-install" phase.
---
gnu/packages/databases.scm | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/gnu/packages/databases.scm b/gnu/packages/databases.scm
index 23c5ed3..0f04647 100644
--- a/gnu/packages/databases.scm
+++ b/gnu/packages/databases.scm
@@ -851,10 +851,11 @@ Language.")
#t))
(add-after
'install 'post-install
- (lambda* (#:key outputs #:allow-other-keys)
+ (lambda* (#:key inputs outputs #:allow-other-keys)
(let* ((out (assoc-ref outputs "out"))
(dev (assoc-ref outputs "dev"))
- (lib (assoc-ref outputs "lib")))
+ (lib (assoc-ref outputs "lib"))
+ (openssl (assoc-ref inputs "openssl")))
(substitute* (string-append out "/bin/mysql_install_db")
(("basedir=\"\"")
(string-append "basedir=\"" out "\"")))
@@ -876,6 +877,14 @@ Language.")
(string-append dev "/share/pkgconfig"))
(rename-file (string-append out "/bin/mysql_config")
(string-append dev "/bin/mysql_config"))
+
+ ;; 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")
+ (string-append dev
"/share/pkgconfig/mariadb.pc"))
+ (("-lssl -lcrypto" all)
+ (string-append "-L" openssl "/lib " all)))
+
#t))))))
(native-inputs
`(("bison" ,bison)
@@ -889,13 +898,11 @@ Language.")
("libaio" ,libaio)
("libxml2" ,libxml2)
("ncurses" ,ncurses)
+ ("openssl" ,openssl-1.0)
("pam" ,linux-pam)
("pcre" ,pcre)
("xz" ,xz)
("zlib" ,zlib)))
- (propagated-inputs
- ;; mariadb.pc says -lssl -lcrypto, so propagate it.
- `(("openssl" ,openssl-1.0)))
;; The test suite is very resource intensive and can take more than three
;; hours on a x86_64 system. Give slow and busy machines some leeway.
(properties '((timeout . 64800))) ;18 hours
- 15/24: gnu: orc: Update to 0.4.31., (continued)
- 15/24: gnu: orc: Update to 0.4.31., guix-commits, 2019/12/10
- 19/24: gnu: nss: Update to 3.48., guix-commits, 2019/12/10
- 06/24: gnu: mesa: Update to 19.2.7., guix-commits, 2019/12/10
- 18/24: gnu: nspr: Update to 4.24., guix-commits, 2019/12/10
- 22/24: gnu: at-spi2-core: Update to 2.34.0., guix-commits, 2019/12/10
- 21/24: gnu: atk: Update to 2.34.1., guix-commits, 2019/12/10
- 14/24: gnu: postgresql@10: Update to 10.11., guix-commits, 2019/12/10
- 17/24: gnu: check: Update to 0.13.0., guix-commits, 2019/12/10
- 16/24: gnu: gstreamer: Update to 1.16.2., guix-commits, 2019/12/10
- 20/24: gnu: python-sphinx: Update to 2.2.2., guix-commits, 2019/12/10
- 24/24: gnu: MariaDB: Do not propagate OpenSSL.,
guix-commits <=
- 12/24: gnu: ALSA: Update to 1.2.1., guix-commits, 2019/12/10
- 23/24: gnu: at-spi2-atk: Update to 2.34.1., guix-commits, 2019/12/10