public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] gentoo-x86 commit in mail-filter/dovecot-antispam/files: dovecot-antispam-dovecot1.2-compilefix.patch
@ 2009-09-12 13:10 Patrick Lauer (patrick)
  0 siblings, 0 replies; 2+ messages in thread
From: Patrick Lauer (patrick) @ 2009-09-12 13:10 UTC (permalink / raw
  To: gentoo-commits

patrick     09/09/12 13:10:28

  Added:                dovecot-antispam-dovecot1.2-compilefix.patch
  Log:
  Bump to 1.2. Fixes compilation issues with dovecot-1.2. Thanks to Oliver Sucker and Dennis Schridde for the patch. Closes #276111
  (Portage version: 2.2_rc40/cvs/Linux x86_64)

Revision  Changes    Path
1.1                  mail-filter/dovecot-antispam/files/dovecot-antispam-dovecot1.2-compilefix.patch

file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dovecot-antispam/files/dovecot-antispam-dovecot1.2-compilefix.patch?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/mail-filter/dovecot-antispam/files/dovecot-antispam-dovecot1.2-compilefix.patch?rev=1.1&content-type=text/plain

Index: dovecot-antispam-dovecot1.2-compilefix.patch
===================================================================
From af0f8f8de27901e2efb9560a1fc66c7af3cd810b Mon Sep 17 00:00:00 2001
From: Johannes Berg <johannes@sipsolutions.net>
Date: Thu, 2 Jul 2009 14:17:54 +0200
Subject: [PATCH 1/1] make it compile with dovecot 1.2

---
 antispam-plugin.h |   13 +++++++++++++
 1 files changed, 13 insertions(+), 0 deletions(-)

diff --git a/antispam-plugin.h b/antispam-plugin.h
index df59e88..493fd1e 100644
--- a/antispam-plugin.h
+++ b/antispam-plugin.h
@@ -113,11 +113,23 @@ o_stream_create_from_fd(int fd, pool_t pool ATTR_UNUSED)
 	return o_stream_create_fd(fd, 0, TRUE);
 }
 
+#if DOVECOT_VERSION_CODE(1, 2) == DOVECOT_VERSION
+# include <stdlib.h>
+static inline struct dict *
+string_dict_init(const char *uri, const char *username)
+{
+	const char *base_dir = getenv("BASE_DIR");
+	if (base_dir == NULL)
+		base_dir = "/var/run/dovecot";
+	return dict_init(uri, DICT_DATA_TYPE_STRING, username, base_dir);
+}
+#else /* 1.1 */
 static inline struct dict *
 string_dict_init(const char *uri, const char *username)
 {
 	return dict_init(uri, DICT_DATA_TYPE_STRING, username);
 }
+#endif
 #elif DOVECOT_VERSION_CODE(1, 0) == DOVECOT_VERSION
 #define ME(err)
 #define PLUGIN_ID
-- 
1.6.3.3







^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] gentoo-x86 commit in mail-filter/dovecot-antispam/files: dovecot-antispam-dovecot1.2-compilefix.patch
@ 2010-10-15 17:23 Jeremy Olexa (darkside)
  0 siblings, 0 replies; 2+ messages in thread
From: Jeremy Olexa (darkside) @ 2010-10-15 17:23 UTC (permalink / raw
  To: gentoo-commits

darkside    10/10/15 17:23:41

  Removed:              dovecot-antispam-dovecot1.2-compilefix.patch
  Log:
  remove old versions
  
  (Portage version: 2.1.9.12/cvs/Linux x86_64)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-10-15 17:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-10-15 17:23 [gentoo-commits] gentoo-x86 commit in mail-filter/dovecot-antispam/files: dovecot-antispam-dovecot1.2-compilefix.patch Jeremy Olexa (darkside)
  -- strict thread matches above, loose matches on Subject: below --
2009-09-12 13:10 Patrick Lauer (patrick)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox