From unknown Wed Aug 20 05:43:30 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#48985 <48985@debbugs.gnu.org> To: bug#48985 <48985@debbugs.gnu.org> Subject: Status: [PATCH] gnu: libressl: Remove search paths. Reply-To: bug#48985 <48985@debbugs.gnu.org> Date: Wed, 20 Aug 2025 12:43:30 +0000 retitle 48985 [PATCH] gnu: libressl: Remove search paths. reassign 48985 guix-patches submitter 48985 Brice Waegeneire severity 48985 normal tag 48985 patch thanks From debbugs-submit-bounces@debbugs.gnu.org Sat Jun 12 17:24:41 2021 Received: (at submit) by debbugs.gnu.org; 12 Jun 2021 21:24:41 +0000 Received: from localhost ([127.0.0.1]:42237 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsB7N-0008Pb-Aq for submit@debbugs.gnu.org; Sat, 12 Jun 2021 17:24:41 -0400 Received: from lists.gnu.org ([209.51.188.17]:44662) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1lsB7L-0008PT-IM for submit@debbugs.gnu.org; Sat, 12 Jun 2021 17:24:36 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34440) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsB7L-0005Fy-Bl for guix-patches@gnu.org; Sat, 12 Jun 2021 17:24:35 -0400 Received: from relay10.mail.gandi.net ([217.70.178.230]:59253) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lsB7J-00023X-DC for guix-patches@gnu.org; Sat, 12 Jun 2021 17:24:35 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay10.mail.gandi.net (Postfix) with ESMTPSA id 0156E240002 for ; Sat, 12 Jun 2021 21:24:30 +0000 (UTC) From: Brice Waegeneire To: guix-patches@gnu.org Subject: [PATCH] gnu: libressl: Remove search paths. Date: Sat, 12 Jun 2021 23:24:30 +0200 Message-Id: <20210612212430.13332-1-brice@waegenei.re> X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=217.70.178.230; envelope-from=brice@waegenei.re; helo=relay10.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: -1.6 (-) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.6 (--) 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. --- gnu/packages/ntp.scm | 13 ++++++++----- gnu/packages/tls.scm | 29 ++++++++++++++--------------- 2 files changed, 22 insertions(+), 20 deletions(-) diff --git a/gnu/packages/ntp.scm b/gnu/packages/ntp.scm index b86def1929..edfcdf4dec 100644 --- a/gnu/packages/ntp.scm +++ b/gnu/packages/ntp.scm @@ -7,6 +7,7 @@ ;;; Copyright © 2018–2021 Tobias Geerinckx-Rice ;;; Copyright © 2019 Maxim Cournoyer ;;; Copyright © 2021 Marius Bakke +;;; Copyright © 2021 Brice Waegeneire ;;; ;;; This file is part of GNU Guix. ;;; @@ -187,11 +188,13 @@ computers over a network.") "0ijsylc7a4jlpxsqa0jq1w1c7333id8pcakzl7a5749ria1xp0l5")))) (build-system gnu-build-system) (arguments - '(#:configure-flags `( "--with-privsep-user=ntpd" - "--localstatedir=/var" - ,(string-append "--with-cacert=" - (assoc-ref %build-inputs "libressl") - "/etc/ssl/cert.pem")) + `(#:configure-flags (list "--with-privsep-user=ntpd" + "--localstatedir=/var" + (string-append "--with-cacert=" + (assoc-ref %build-inputs "libressl") + "/share/libressl-" + ,(package-version libressl) + "/cert.pem")) #:phases (modify-phases %standard-phases (add-after 'unpack 'modify-install-locations diff --git a/gnu/packages/tls.scm b/gnu/packages/tls.scm index 6a47b4a26e..28fe820aa3 100644 --- a/gnu/packages/tls.scm +++ b/gnu/packages/tls.scm @@ -16,6 +16,7 @@ ;;; Copyright © 2019 Mathieu Othacehe ;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen ;;; Copyright © 2021 Solene Rapenne +;;; Copyright © 2021 Brice Waegeneire ;;; ;;; This file is part of GNU Guix. ;;; @@ -612,21 +613,19 @@ required structures.") "0rihprcgxsydsbcqgd1952k2cfn4jmp7rlyp1c6sglfc6rdmcwd4")))) (build-system gnu-build-system) (arguments - ;; Do as if 'getentropy' were missing: Linux kernels before 3.17 lack its - ;; underlying 'getrandom' system call and ENOSYS isn't properly handled. - ;; See . - '(#:configure-flags '("ac_cv_func_getentropy=no" - ;; Provide a TLS-enabled netcat. - "--enable-nc"))) - (native-search-paths - (list (search-path-specification - (variable "SSL_CERT_DIR") - (separator #f) ;single entry - (files '("etc/ssl/certs"))) - (search-path-specification - (variable "SSL_CERT_FILE") - (separator #f) ;single entry - (files '("etc/ssl/certs/ca-certificates.crt"))))) + `(#:configure-flags + (list + ;; Do as if 'getentropy' were missing: Linux kernels before 3.17 lack its + ;; underlying 'getrandom' system call and ENOSYS isn't properly handled. + ;; See . + "ac_cv_func_getentropy=no" + ;; FIXME It's using it's own bundled certificate, instead it should + ;; behave like OpenSSL by using environment variables. + (string-append "--with-openssldir=" %output + "/share/libressl-" + ,(package-version this-package)) + ;; Provide a TLS-enabled netcat. + "--enable-nc"))) (home-page "https://www.libressl.org/") (synopsis "SSL/TLS implementation") (description "LibreSSL is a version of the TLS/crypto stack, forked from -- 2.31.1 From debbugs-submit-bounces@debbugs.gnu.org Wed Jun 16 16:57:56 2021 Received: (at 48985) by debbugs.gnu.org; 16 Jun 2021 20:57:56 +0000 Received: from localhost ([127.0.0.1]:53429 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltcbj-0004S3-Tb for submit@debbugs.gnu.org; Wed, 16 Jun 2021 16:57:56 -0400 Received: from eggs.gnu.org ([209.51.188.92]:55354) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltcbi-0004Rn-Dy for 48985@debbugs.gnu.org; Wed, 16 Jun 2021 16:57:54 -0400 Received: from fencepost.gnu.org ([2001:470:142:3::e]:33822) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ltcbb-00010B-KF; Wed, 16 Jun 2021 16:57:48 -0400 Received: from [2a01:e0a:1d:7270:af76:b9b:ca24:c465] (port=36634 helo=ribbon) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ltcbb-0003H0-CS; Wed, 16 Jun 2021 16:57:47 -0400 From: =?utf-8?Q?Ludovic_Court=C3=A8s?= To: Brice Waegeneire Subject: Re: bug#48985: [PATCH] gnu: libressl: Remove search paths. References: <20210612212430.13332-1-brice@waegenei.re> Date: Wed, 16 Jun 2021 22:57:46 +0200 In-Reply-To: <20210612212430.13332-1-brice@waegenei.re> (Brice Waegeneire's message of "Sat, 12 Jun 2021 23:24:30 +0200") Message-ID: <87wnqto7cl.fsf@gnu.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 48985 Cc: 48985@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) Brice Waegeneire skribis: > 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. [...] > - ,(string-append "--with-cacert=3D" > - (assoc-ref %build-inputs "li= bressl") > - "/etc/ssl/cert.pem")) > + `(#:configure-flags (list "--with-privsep-user=3Dntpd" > + "--localstatedir=3D/var" > + (string-append "--with-cacert=3D" > + (assoc-ref %build-inputs "= libressl") > + "/share/libressl-" > + ,(package-version libressl) > + "/cert.pem")) So the etc/ssl/cert.pm file name was wrong for a while? Note: instead of (package-version libressl), we should look at the libressl input of =E2=80=98this-package=E2=80=99, though it=E2=80=99s proba= bly not big deal here. Otherwise LGTM, thanks! Ludo=E2=80=99. From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 17 02:49:45 2021 Received: (at 48985) by debbugs.gnu.org; 17 Jun 2021 06:49:45 +0000 Received: from localhost ([127.0.0.1]:53669 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltlqS-0002wq-Sg for submit@debbugs.gnu.org; Thu, 17 Jun 2021 02:49:45 -0400 Received: from relay3-d.mail.gandi.net ([217.70.183.195]:51639) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltlqR-0002wc-D9 for 48985@debbugs.gnu.org; Thu, 17 Jun 2021 02:49:43 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id 8C28B60003; Thu, 17 Jun 2021 06:49:36 +0000 (UTC) From: Brice Waegeneire To: Ludovic =?utf-8?Q?Court=C3=A8s?= Subject: Re: bug#48985: [PATCH] gnu: libressl: Remove search paths. References: <20210612212430.13332-1-brice@waegenei.re> <87wnqto7cl.fsf@gnu.org> Date: Thu, 17 Jun 2021 08:49:32 +0200 In-Reply-To: <87wnqto7cl.fsf@gnu.org> ("Ludovic =?utf-8?Q?Court=C3=A8s=22'?= =?utf-8?Q?s?= message of "Wed, 16 Jun 2021 22:57:46 +0200") Message-ID: <87a6npyohv.fsf_-_@waegenei.re> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Spam-Score: -0.7 (/) X-Debbugs-Envelope-To: 48985 Cc: 48985@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.7 (-) Ludovic Court=C3=A8s writes: > Brice Waegeneire skribis: >> - ,(string-append "--with-cacert=3D" >> - (assoc-ref %build-inputs "l= ibressl") >> - "/etc/ssl/cert.pem")) >> + `(#:configure-flags (list "--with-privsep-user=3Dntpd" >> + "--localstatedir=3D/var" >> + (string-append "--with-cacert=3D" >> + (assoc-ref %build-inputs = "libressl") >> + "/share/libressl-" >> + ,(package-version libress= l) >> + "/cert.pem")) > > So the etc/ssl/cert.pm file name was wrong for a while? No, the file existed and was used properly. I forgot to mention explicitly that libressl used to put it's SSL configuration in etc/ssl, I moved it to share/libressl-$version/ as does openssl. > Note: instead of (package-version libressl), we should look at the > libressl input of =E2=80=98this-package=E2=80=99, though it=E2=80=99s pro= bably not big deal > here. I tired to correct it, missed. But I have fixed it in the second commit. :/ > Otherwise LGTM, thanks! Pushed as 76a9bad380111493b5a1422485f941de799c6c90 and d65bd74411ab4820318311062b0f327b139a5784. Cheers, - Brice From debbugs-submit-bounces@debbugs.gnu.org Thu Jun 17 02:50:05 2021 Received: (at control) by debbugs.gnu.org; 17 Jun 2021 06:50:05 +0000 Received: from localhost ([127.0.0.1]:53673 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltlqn-0002xw-4p for submit@debbugs.gnu.org; Thu, 17 Jun 2021 02:50:05 -0400 Received: from relay6-d.mail.gandi.net ([217.70.183.198]:52517) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ltlqm-0002xE-3x for control@debbugs.gnu.org; Thu, 17 Jun 2021 02:50:04 -0400 Received: (Authenticated sender: brice@waegenei.re) by relay6-d.mail.gandi.net (Postfix) with ESMTPSA id A1CC8C0004 for ; Thu, 17 Jun 2021 06:49:57 +0000 (UTC) Date: Thu, 17 Jun 2021 08:49:56 +0200 To: control@debbugs.gnu.org From: Brice Waegeneire Subject: control message for bug #48985 X-Spam-Score: -0.6 (/) X-Debbugs-Envelope-To: control X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" Message-Id: X-Spam-Score: -1.7 (-) close 48985 quit From unknown Wed Aug 20 05:43:30 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Thu, 15 Jul 2021 11:24:06 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator