From 8a1d7720fd37206c33a6887e6d3ba354349ca0fa Mon Sep 17 00:00:00 2001 From: Maxim Cournoyer Date: Fri, 6 Sep 2019 18:52:51 +0900 Subject: [PATCH 1/4] gnu: openntpd: Fix error CA errors when using constraints. The error printed by nttpd was "constraint: failed to load constraint ca" when libressl tried loading the file /etc/ssl/cert.pem. The problem was investigated as part of fixing issue 37318 (see: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=37318). * gnu/packages/ntp.scm (openntpd)[configure-flags]: Use the '--with-cacert' flag to specify the location of the certificate authority file of libressl. --- gnu/packages/ntp.scm | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index 419b6d7321..363496817f 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -108,8 +108,11 @@ computers over a network.") "0fn12i4kzsi0zkr4qp3dp9bycmirnfapajqvdfx02zhr4hanj0kv")))) (build-system gnu-build-system) (arguments - '(#:configure-flags '("--with-privsep-user=ntpd" - "--localstatedir=/var") + '(#:configure-flags `( "--with-privsep-user=ntpd" + "--localstatedir=/var" + ,(string-append "--with-cacert=" + (assoc-ref %build-inputs "libressl") + "/etc/ssl/cert.pem")) #:phases (modify-phases %standard-phases (add-after 'unpack 'modify-install-locations -- 2.23.0