summaryrefslogtreecommitdiffstats
path: root/package/dovecot
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2014-11-13 20:08:11 +0200
committerPeter Korsgaard <peter@korsgaard.com>2014-11-14 14:56:37 +0100
commit8d4942cc41c7ca6899596e91bb3426b82defc083 (patch)
treee1c4885feb2dd45e2c69a05c18bfcdeb05002eca /package/dovecot
parent84047394ed6ad08adb9f59a9022553a327eef040 (diff)
dovecot: fix static build
Add a patch removing reference to MODULE_SUFFIX when it is undefined. Fixes: http://autobuild.buildroot.net/results/c68/c6844bbffff1cd4f738a5fced011d28f73c90b16/ Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/dovecot')
-rw-r--r--package/dovecot/0002-fix-static-build.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/package/dovecot/0002-fix-static-build.patch b/package/dovecot/0002-fix-static-build.patch
new file mode 100644
index 000000000..be646bc6a
--- /dev/null
+++ b/package/dovecot/0002-fix-static-build.patch
@@ -0,0 +1,24 @@
+Fix static build
+
+MODULE_SUFFIX is undefined when building statically; don't used it.
+
+Signed-off-by: Baruch Siach <baruch@tkos.co.il>
+---
+Patch status: sent upstream
+(http://dovecot.org/pipermail/dovecot/2014-November/098694.html)
+
+diff -Nuar dovecot-2.2.15-orig/src/lib/module-dir.c dovecot-2.2.15/src/lib/module-dir.c
+--- dovecot-2.2.15-orig/src/lib/module-dir.c 2014-10-18 00:10:15.000000000 +0300
++++ dovecot-2.2.15/src/lib/module-dir.c 2014-11-13 19:27:29.417786313 +0200
+@@ -621,7 +621,11 @@
+ if (*p == '_')
+ fname = p + 1;
+
++#ifdef MODULE_SUFFIX
+ p = strstr(fname, MODULE_SUFFIX);
++#else
++ p = NULL;
++#endif
+ if (p == NULL)
+ return fname;
+