From 5e7f27d6ca7be84453e6d4de3d860b700ba3aef7 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Sun, 22 Oct 2023 02:00:00 +0200 Subject: gnu: opensmtpd: Update to 7.4.0p0 (bis). This time fixing a segfault reported & debugged entirely by graywolf. See: So, what went wrong here? Mostly me being entirely convinced, to the point of not even looking, that we have no opensmtpd system test. We do. Instead, I tested the update on my own mail server, which for entirely unhysterical raisins happens to link OpenSMTPd against OpenSSL and so just happens to sidestep this bug. Aiya. * gnu/packages/mail.scm (opensmtpd): Update to 7.4.0p0. [native-inputs]: Add pkg-config. [inputs]: Add libbsd. [arguments]: Add "--with-libbsd" to #:configure-flags. Co-authored-by: graywolf in #guix Change-Id: I5536b828eecd16f041ed9381b16bd7aa54158155 --- gnu/packages/mail.scm | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'gnu/packages/mail.scm') diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 9f410047e2..89087b0708 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -118,6 +118,7 @@ #:use-module (gnu packages icu4c) #:use-module (gnu packages kerberos) #:use-module (gnu packages language) + #:use-module (gnu packages libbsd) #:use-module (gnu packages libcanberra) #:use-module (gnu packages libevent) #:use-module (gnu packages libffi) @@ -3183,26 +3184,32 @@ from the Cyrus IMAP project.") (define-public opensmtpd (package (name "opensmtpd") - (version "7.3.0p2") + (version "7.4.0p0") (source (origin (method url-fetch) (uri (string-append "https://www.opensmtpd.org/archives/" "opensmtpd-" version ".tar.gz")) (sha256 - (base32 "0kjs5cxbh9lq51b8p20hxmiah61cfm8yzkcwpw9005cdp72zpkgw")))) + (base32 "0x731hi7i01mxaz07p1l5q3gwmyl422h404yc61ya4aa8g1wr0f1")))) (build-system gnu-build-system) (inputs + ;; OpenSMTPd bundled (a subset of) libasr and libtls, which we use. See + ;; https://www.mail-archive.com/misc@opensmtpd.org/msg05909.html for why. (list bdb + libbsd ;https://github.com/OpenSMTPD/OpenSMTPD/issues/1233 libevent libressl linux-pam zlib)) (native-inputs - (list bison groff)) ; for man pages + (list bison + groff ;for man pages + pkg-config)) (arguments `(#:configure-flags (list "--localstatedir=/var" + "--with-libbsd" ;; This is the default only if it exists at build timeā€”it doesn't. "--with-path-socket=/var/run" "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt" -- cgit v1.2.3