blob: 9007bdbd416464610a51b38e3feab262f0905c7e [file] [log] [blame]
Andrew Geisslerd5838332022-05-27 11:33:10 -05001From da8c7a027390de7828d4272a3c8bcdbffbac25ad Mon Sep 17 00:00:00 2001
2From: Mingli Yu <mingli.yu@windriver.com>
3Date: Thu, 5 May 2022 16:57:48 +0800
4Subject: [PATCH] make.rc: set VAL_MTA
5
6Some build server may provide sendmail like /usr/lib/sendmail which
7may result the VAL_MTA to be /usr/lib/sendmail, but the sendmail
8is actually /usr/sbin/sendmail on the target.
9
10Fixes:
11 # echo "invalide address email" | s-nail -s "test mail" -r test@test.com tester@test.com
12 s-nail: Cannot start /usr/lib/sendmail: executable not found (adjust *mta* variable)
13 /home/root/dead.letter 10/234
14 s-nail: ... message not sent
15
16 # which sendmail
17 /usr/sbin/sendmail
18
Andrew Geisslerc5535c92023-01-27 16:10:19 -060019Upstream-Status: Inappropriate [oe-specific]
Andrew Geisslerd5838332022-05-27 11:33:10 -050020
21Signed-off-by: Mingli Yu <mingli.yu@windriver.com>
22---
23 make.rc | 9 +--------
24 1 file changed, 1 insertion(+), 8 deletions(-)
25
26diff --git a/make.rc b/make.rc
27index 98bd968..45ac0d4 100644
28--- a/make.rc
29+++ b/make.rc
30@@ -96,14 +96,7 @@ VAL_MAIL=`\
31
32 # Path to the local MTA (Mail-Transfer-Agent).
33 # MTA aliases (aliases(5)) are optionally supported via OPT_MTA_ALIASES.
34-VAL_MTA=`\
35- if [ -x /usr/bin/sendmail ]; then \
36- echo /usr/bin/sendmail;\
37- elif [ -x /usr/lib/sendmail ]; then \
38- echo /usr/lib/sendmail;\
39- else \
40- echo /usr/sbin/sendmail;\
41- fi`
42+VAL_MTA=/usr/sbin/sendmail
43
44 # Today a lot of systems no longer use sendmail(1), but a different MTA.
45 # To ensure compatibility with sendmail(1), a system called
46--
472.25.1
48