summaryrefslogtreecommitdiff
path: root/package/postfix/patches/patch-makedefs
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2011-12-04 12:02:38 +0100
committerWaldemar Brodkorb <wbx@openadk.org>2011-12-04 12:02:38 +0100
commitc46017c02278b9d195ac35616d40a009cd625d2a (patch)
tree476a97bebca1915489d818fee2e62f79dc53e10a /package/postfix/patches/patch-makedefs
parent37686107693fc49f21f6a7f28cdbe1a2df222eda (diff)
fix postfix segfaults by avoidance of berkeley db
Diffstat (limited to 'package/postfix/patches/patch-makedefs')
-rw-r--r--package/postfix/patches/patch-makedefs22
1 files changed, 17 insertions, 5 deletions
diff --git a/package/postfix/patches/patch-makedefs b/package/postfix/patches/patch-makedefs
index cb064c6e3..1d2c3fde6 100644
--- a/package/postfix/patches/patch-makedefs
+++ b/package/postfix/patches/patch-makedefs
@@ -1,5 +1,5 @@
--- postfix-2.8.7.orig/makedefs 2011-11-03 00:46:22.000000000 +0100
-+++ postfix-2.8.7/makedefs 2011-12-03 13:36:33.561684585 +0100
++++ postfix-2.8.7/makedefs 2011-12-04 11:53:35.807716569 +0100
@@ -97,8 +97,8 @@ error() {
case $# in
@@ -11,7 +11,7 @@
VERSION=`(uname -v) 2>/dev/null`
case "$VERSION" in
dcosx*) SYSTEM=$VERSION;;
-@@ -343,20 +343,6 @@ EOF
+@@ -343,31 +343,7 @@ EOF
esac
;;
Linux.3*) SYSTYPE=LINUX3
@@ -29,6 +29,18 @@
- echo "See the RELEASE_NOTES file for more information." 1>&2
- exit 1
- fi
- SYSLIBS="-ldb"
- for name in nsl resolv
- do
+- SYSLIBS="-ldb"
+- for name in nsl resolv
+- do
+- for lib in /usr/lib64 /lib64 /usr/lib /lib
+- do
+- test -e $lib/lib$name.a -o -e $lib/lib$name.so && {
+- SYSLIBS="$SYSLIBS -l$name"
+- break
+- }
+- done
+- done
++ SYSLIBS="-lresolv"
+ ;;
+ GNU.0*|GNU/kFreeBSD.[567]*)
+ SYSTYPE=GNU0