[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
05/07: gnu: postfix-minimal: Fix startup warnings.
From: |
guix-commits |
Subject: |
05/07: gnu: postfix-minimal: Fix startup warnings. |
Date: |
Mon, 10 Aug 2020 02:49:34 -0400 (EDT) |
janneke pushed a commit to branch wip-postfix
in repository guix.
commit 94d2168e502dcbaacec49a19bc4f0552ea194b22
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Tue Mar 17 08:37:32 2020 +0100
gnu: postfix-minimal: Fix startup warnings.
This avoids kind of funny replacements like these of `rm'
find -prune -perm -020
=>
find -prune
-pe/gnu/store/zibwkb5xavnv6z3gzknfqjsxb9b0izh0-coreutils-8.31/bin/rm -020
* gnu/packages/mail.scm (postfix-minimal)[phases]: Set PATH rather than
substituting individual commands.
---
gnu/packages/mail.scm | 28 +++++++++++++++++++---------
1 file changed, 19 insertions(+), 9 deletions(-)
diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index 94236bb..5f62259 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -35,6 +35,7 @@
;;; Copyright © 2020 Maxim Cournoyer <maxim.cournoyer@gmail.com>
;;; Copyright © 2020 Michael Rohleder <mike@rohleder.de>
;;; Copyright © 2020 Brant Gardner <brantcgardner@brantware.com>
+;;; Copyright © 2020 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
;;;
;;; This file is part of GNU Guix.
;;;
@@ -3569,7 +3570,10 @@ based on asyncio.")
"1k2mxx9yx8lif804ff7zjyllizv4najfv3dca912k6j46fbr5b12"))))
(build-system gnu-build-system)
(arguments
- '(#:phases
+ '(#:modules ((srfi srfi-26)
+ (guix build utils)
+ (guix build gnu-build-system))
+ #:phases
(modify-phases %standard-phases
(add-before 'build 'patch-/bin/sh
(lambda _
@@ -3601,14 +3605,20 @@ based on asyncio.")
(lambda _
(invoke "make" "makefiles" "pie=yes" "dynamicmaps=yes")))
(add-before 'install 'fix-postfix-scripts-path
- (lambda _
- (for-each
- (lambda (command)
- (substitute* '("postfix-install" "conf/post-install"
"conf/postfix-script")
- (((string-append command " ")) (string-append (which
command) " "))))
- '("awk" "chmod" "chown" "chgrp" "cp" "find" "ln" "mkdir" "mv"
"rm" "sed"
- "sleep" "sort" "touch" "uname"))
- #t))
+ (lambda* (#:key inputs #:allow-other-keys)
+ (let ((path (string-join
+ (map (compose (cute string-append <> "/bin")
+ (cute assoc-ref inputs <>))
+ '("bash" "coreutils" "findutils" "gawk" "grep"
+ "sed"))
+ ":")))
+ (substitute* '("postfix-install"
+ "conf/post-install"
+ "conf/postfix-script")
+ (("^SHELL=/bin/sh")
+ (string-append "PATH=" path "\n"
+ "SHELL=" (assoc-ref inputs "bash")
"/bin/sh")))
+ #t)))
(add-before 'install 'configure-install
(lambda* (#:key outputs #:allow-other-keys)
(let ((out (assoc-ref outputs "out")))
- branch wip-postfix created (now 22ddd5a), guix-commits, 2020/08/10
- 01/07: gnu: Add postfix., guix-commits, 2020/08/10
- 02/07: services: Add postfix service., guix-commits, 2020/08/10
- 03/07: gnu: postfix-minimal: Updato to 3.5.0., guix-commits, 2020/08/10
- 04/07: system: examples: Add postfix.tmpl., guix-commits, 2020/08/10
- 05/07: gnu: postfix-minimal: Fix startup warnings.,
guix-commits <=
- 06/07: service: postfix: Use mail-aliases-service-type., guix-commits, 2020/08/10
- 07/07: system: postfix.tmpl: Add mail-aliases-service., guix-commits, 2020/08/10