me
/
guix
Archived
1
0
Fork 0

gnu: libressl: Remove search paths.

Unlike OpenSSL, LibreSSL hardcode it's certificate bundle and doesn't
allow to specify it through a environment variable.

* gnu/packages/tls.scm (libressl)[configure-flags]: Specify OpenSSL
configuration directory.
[native-search-paths]: Remove it.
* gnu/packages/ntp.scm (openntpd)[configure-flags]: Adjust CAcert
location.
master
Brice Waegeneire 2021-06-11 23:14:47 +02:00
parent db87a223fe
commit 76a9bad380
No known key found for this signature in database
GPG Key ID: A94903A166A18FAE
2 changed files with 23 additions and 20 deletions

View File

@ -7,6 +7,7 @@
;;; Copyright © 20182021 Tobias Geerinckx-Rice <me@tobias.gr> ;;; Copyright © 20182021 Tobias Geerinckx-Rice <me@tobias.gr>
;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com> ;;; Copyright © 2019 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2021 Marius Bakke <marius@gnu.org> ;;; Copyright © 2021 Marius Bakke <marius@gnu.org>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -187,11 +188,14 @@ computers over a network.")
"0ijsylc7a4jlpxsqa0jq1w1c7333id8pcakzl7a5749ria1xp0l5")))) "0ijsylc7a4jlpxsqa0jq1w1c7333id8pcakzl7a5749ria1xp0l5"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
'(#:configure-flags `( "--with-privsep-user=ntpd" `(#:configure-flags
"--localstatedir=/var" (let* ((libressl (assoc-ref %build-inputs "libressl"))
,(string-append "--with-cacert=" (libressl-version ,(package-version libressl)))
(assoc-ref %build-inputs "libressl") (list "--with-privsep-user=ntpd"
"/etc/ssl/cert.pem")) "--localstatedir=/var"
(string-append "--with-cacert=" libressl
"/share/libressl-" libressl-version
"/cert.pem")))
#:phases #:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'modify-install-locations (add-after 'unpack 'modify-install-locations

View File

@ -16,6 +16,7 @@
;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com> ;;; Copyright © 2019 Mathieu Othacehe <m.othacehe@gmail.com>
;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;; Copyright © 2021 Solene Rapenne <solene@perso.pw> ;;; Copyright © 2021 Solene Rapenne <solene@perso.pw>
;;; Copyright © 2021 Brice Waegeneire <brice@waegenei.re>
;;; ;;;
;;; This file is part of GNU Guix. ;;; This file is part of GNU Guix.
;;; ;;;
@ -612,21 +613,19 @@ required structures.")
"0rihprcgxsydsbcqgd1952k2cfn4jmp7rlyp1c6sglfc6rdmcwd4")))) "0rihprcgxsydsbcqgd1952k2cfn4jmp7rlyp1c6sglfc6rdmcwd4"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(arguments (arguments
;; Do as if 'getentropy' were missing: Linux kernels before 3.17 lack its `(#:configure-flags
;; underlying 'getrandom' system call and ENOSYS isn't properly handled. (list
;; See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00235.html>. ;; Do as if 'getentropy' were missing: Linux kernels before 3.17 lack its
'(#:configure-flags '("ac_cv_func_getentropy=no" ;; underlying 'getrandom' system call and ENOSYS isn't properly handled.
;; Provide a TLS-enabled netcat. ;; See <https://lists.gnu.org/archive/html/guix-devel/2017-04/msg00235.html>.
"--enable-nc"))) "ac_cv_func_getentropy=no"
(native-search-paths ;; FIXME It's using it's own bundled certificate, instead it should
(list (search-path-specification ;; behave like OpenSSL by using environment variables.
(variable "SSL_CERT_DIR") (string-append "--with-openssldir=" %output
(separator #f) ;single entry "/share/libressl-"
(files '("etc/ssl/certs"))) ,(package-version this-package))
(search-path-specification ;; Provide a TLS-enabled netcat.
(variable "SSL_CERT_FILE") "--enable-nc")))
(separator #f) ;single entry
(files '("etc/ssl/certs/ca-certificates.crt")))))
(home-page "https://www.libressl.org/") (home-page "https://www.libressl.org/")
(synopsis "SSL/TLS implementation") (synopsis "SSL/TLS implementation")
(description "LibreSSL is a version of the TLS/crypto stack, forked from (description "LibreSSL is a version of the TLS/crypto stack, forked from