summaryrefslogtreecommitdiffstats
path: root/meta-networking/recipes-daemons/postfix/files/postfix-install.patch
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2017-08-26 18:28:28 -0700
committerJoe MacDonald <joe_macdonald@mentor.com>2017-09-12 10:55:06 -0400
commit407b28f8f287d56ee60d3697dc1cbd7b43a997ea (patch)
tree34b7263fb553688fe2fe2871e666764d44ad4aea /meta-networking/recipes-daemons/postfix/files/postfix-install.patch
parent7da4103d4a6ac2af8285e2c9d66ac138bfb071f9 (diff)
downloadmeta-openembedded-407b28f8f287d56ee60d3697dc1cbd7b43a997ea.tar.gz
postfix: Fix build with security flags and clang
Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com> Signed-off-by: Joe MacDonald <joe_macdonald@mentor.com>
Diffstat (limited to 'meta-networking/recipes-daemons/postfix/files/postfix-install.patch')
-rw-r--r--meta-networking/recipes-daemons/postfix/files/postfix-install.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/meta-networking/recipes-daemons/postfix/files/postfix-install.patch b/meta-networking/recipes-daemons/postfix/files/postfix-install.patch
new file mode 100644
index 0000000000..45479bd52a
--- /dev/null
+++ b/meta-networking/recipes-daemons/postfix/files/postfix-install.patch
@@ -0,0 +1,26 @@
1Index: postfix-3.2.2/postfix-install
2===================================================================
3--- postfix-3.2.2.orig/postfix-install
4+++ postfix-3.2.2/postfix-install
5@@ -843,7 +843,7 @@ IFS="$BACKUP_IFS"
6 # the wrong place when Postfix is being upgraded.
7
8 case "$mail_version" in
9-"") mail_version="`$POSTCONF -dhx mail_version`" || exit 1
10+"") mail_version="`$POSTCONF -c $CONFIG_DIRECTORY -dhx mail_version`" || exit 1
11 esac
12
13 # Undo MAIL_VERSION expansion at the end of a parameter value. If
14Index: postfix-3.2.2/Makefile.in
15===================================================================
16--- postfix-3.2.2.orig/Makefile.in
17+++ postfix-3.2.2/Makefile.in
18@@ -20,7 +20,7 @@ META = meta/main.cf.proto meta/master.cf
19 EXPAND = sed -e "s;\$${LIB_PREFIX};$(LIB_PREFIX);" \
20 -e "s;\$${LIB_SUFFIX};$(LIB_SUFFIX);"
21 SHLIB_DIR_OVERRIDE = \
22- $${shlib_directory:-`$(SHLIB_ENV) bin/postconf -dhx shlib_directory`}
23+ $${shlib_directory:-`$(SHLIB_ENV) $(POSTCONF) -dhx shlib_directory`}
24
25 default: update
26