[packages/postfix] - tinycdb dependency fix
adwol
adwol at pld-linux.org
Tue Aug 11 14:12:36 CEST 2015
commit 9332ad30557591cf98193b07253bd0159d3c0669
Author: Adam Osuchowski <adwol at pld-linux.org>
Date: Tue Aug 11 14:12:06 2015 +0200
- tinycdb dependency fix
postfix-no_cdb.patch | 11 +++++++++++
postfix.spec | 2 ++
2 files changed, 13 insertions(+)
---
diff --git a/postfix.spec b/postfix.spec
index f114c67..0ba5dae 100644
--- a/postfix.spec
+++ b/postfix.spec
@@ -70,6 +70,7 @@ Patch9: %{name}-make-jN.patch
Patch10: %{name}-link.patch
Patch11: %{name}-scache_clnt.patch
Patch12: format-security.patch
+Patch13: %{name}-no_cdb.patch
URL: http://www.postfix.org/
%{?with_sasl:BuildRequires: cyrus-sasl-devel}
BuildRequires: db-devel
@@ -297,6 +298,7 @@ sed -i '/scache_clnt_create/s/server/var_scache_service/' src/global/scache_clnt
%if %{with vda}
%patch12 -p1
%endif
+%{!?with_cdb:%patch13 -p1}
%if %{with tcp}
sed -i 's/ifdef SNAPSHOT/if 1/' src/util/dict_open.c
diff --git a/postfix-no_cdb.patch b/postfix-no_cdb.patch
new file mode 100644
index 0000000..10a46a3
--- /dev/null
+++ b/postfix-no_cdb.patch
@@ -0,0 +1,11 @@
+--- postfix-2.11.5.orig/src/util/Makefile.in.orig 2015-08-11 13:48:16.897867369 +0200
++++ postfix-2.11.5/src/util/Makefile.in 2015-08-11 13:54:19.074562492 +0200
+@@ -137,7 +137,7 @@
+ gcc -shared -Wl,-soname,dict_pcre.so -o $@ $? -lpcre -L. -lutil
+
+ $(LIB): $(OBJS)
+- gcc -shared -Wl,-soname,libpostfix-util.so.1 -o $(LIB) $(OBJS) -ldl -lcdb -lnsl -ldb
++ gcc -shared -Wl,-soname,libpostfix-util.so.1 -o $(LIB) $(OBJS) -ldl -lnsl -ldb
+
+ $(LIB_DIR)/$(LIB): $(LIB)
+ cp $(LIB) $(LIB_DIR)
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/postfix.git/commitdiff/9332ad30557591cf98193b07253bd0159d3c0669
More information about the pld-cvs-commit
mailing list