From 4f9ccf41a6236e64018b73de5c8172ca1ba4461c Mon Sep 17 00:00:00 2001 From: Wojtek Kosior Date: Tue, 19 Dec 2023 19:56:59 +0100 Subject: gnu: exim: Set `exim` as the default user. * gnu/packages/mail.scm (exim)[arguments]<#:phases>['configure]: Configure Exim to resolve uid/gid of `exim` in runtime and prevent install script from failing. Change-Id: I2571d6e5a4d4aca534ed6bdfaa3832b1ec69c1d5 --- gnu/packages/mail.scm | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'gnu') diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index ac9e02a6f6..3fe593a01c 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -2014,7 +2014,7 @@ delivery.") (("(CONFIGURE_FILE=).*" all var) (string-append var out "/etc/exim.conf\n")) (("(EXIM_USER=).*" all var) - (string-append var "nobody\n")) + (string-append var "ref:exim\n")) (("(FIXED_NEVER_USERS=).*" all var) (string-append var "\n")) ; no root in build environment (("(COMPRESS_COMMAND=).*" all var) @@ -2031,6 +2031,13 @@ delivery.") (("# (AUTH_PLAINTEXT=yes)" all line) line) (("# (AUTH_SPA=yes)" all line) line) (("# (AUTH_TLS=yes)" all line) line)) + ;; The installation script calls Exim once to get its + ;; version number. Exim then fails to find the `exim` + ;; user and exits with non-zero status. + (substitute* "scripts/exim_install" + (("(\\$exim 2>/dev/null)" all var) + (string-append + "printf 'Exim version " #$version " #1'"))) ;; This file has hard-coded relative file names for tools ;; despite the zcat configuration above. (substitute* "src/exigrep.src" -- cgit v1.2.3