From 19fed0491502bcd64cd51666449a4a384f42fef9 Mon Sep 17 00:00:00 2001 From: Tobias Geerinckx-Rice Date: Fri, 8 Jun 2018 09:45:56 +0200 Subject: [PATCH] gnu: opensmtpd: Patch FHS assumptions. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This fixes the following failure... # smtpctl show message 9275c3fbeccbae93 execl: No such file or directory ...due to the absence of ‘/bin/cat’ on GuixSD. * gnu/packages/mail.scm (opensmtpd)[arguments]: Add ‘patch-FHS-file-names’ phase. --- gnu/packages/mail.scm | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index a9add98d14..d04fc518c8 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2018,6 +2018,13 @@ transfer protocols.") "--with-path-CAfile=/etc/ssl/certs/ca-certificates.crt") #:phases (modify-phases %standard-phases + ;; Fix some incorrectly hard-coded external tool file names. + (add-after 'unpack 'patch-FHS-file-names + (lambda* (#:key inputs #:allow-other-keys) + (substitute* "smtpd/smtpctl.c" + (("/bin/cat") (which "cat")) + (("/bin/sh") (which "sh"))) + #t)) ;; OpenSMTPD provides a single utility smtpctl to control the daemon and ;; the local submission subsystem. To accomodate systems that require ;; historical interfaces such as sendmail, newaliases or makemap, the