gnu: opensmtpd: Patch FHS assumptions.

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.
master
Tobias Geerinckx-Rice 2018-06-08 09:45:56 +02:00
parent 2dfb9bbf23
commit 19fed04915
No known key found for this signature in database
GPG Key ID: 0DB0FF884F556D79
1 changed files with 7 additions and 0 deletions

View File

@ -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