summaryrefslogtreecommitdiff
path: root/mail
diff options
context:
space:
mode:
authorjoerg <joerg@pkgsrc.org>2014-12-18 12:26:51 +0000
committerjoerg <joerg@pkgsrc.org>2014-12-18 12:26:51 +0000
commit04e9d881d19085e49695d4c977f18622b8c33c33 (patch)
treeca4987d689241241c29c155b59cfed41d74ce4ed /mail
parent3c0ebec2d17ff9a0834bd352fffd3721430c5118 (diff)
downloadpkgsrc-04e9d881d19085e49695d4c977f18622b8c33c33.tar.gz
Add forgotten patches to allow zlib 1.2.3 and rename libutil to
libmyutil.
Diffstat (limited to 'mail')
-rw-r--r--mail/notmuch/patches/patch-Makefile.local22
-rw-r--r--mail/notmuch/patches/patch-notmuch-dump.c24
-rw-r--r--mail/notmuch/patches/patch-notmuch-restore.c15
-rw-r--r--mail/notmuch/patches/patch-util_Makefile.local17
4 files changed, 78 insertions, 0 deletions
diff --git a/mail/notmuch/patches/patch-Makefile.local b/mail/notmuch/patches/patch-Makefile.local
new file mode 100644
index 00000000000..2373ea4ec10
--- /dev/null
+++ b/mail/notmuch/patches/patch-Makefile.local
@@ -0,0 +1,22 @@
+$NetBSD: patch-Makefile.local,v 1.1 2014/12/18 12:26:51 joerg Exp $
+
+--- Makefile.local.orig 2014-12-15 20:14:52.000000000 +0000
++++ Makefile.local
+@@ -46,7 +46,7 @@ PV_FILE=bindings/python/notmuch/version.
+ # Smash together user's values with our extra values
+ FINAL_CFLAGS = -DNOTMUCH_VERSION=$(VERSION) $(CPPFLAGS) $(CFLAGS) $(WARN_CFLAGS) $(extra_cflags) $(CONFIGURE_CFLAGS)
+ FINAL_CXXFLAGS = $(CPPFLAGS) $(CXXFLAGS) $(WARN_CXXFLAGS) $(extra_cflags) $(extra_cxxflags) $(CONFIGURE_CXXFLAGS)
+-FINAL_NOTMUCH_LDFLAGS = $(LDFLAGS) -Lutil -lutil -Llib -lnotmuch
++FINAL_NOTMUCH_LDFLAGS = $(LDFLAGS) -Lutil -lmyutil -Llib -lnotmuch
+ ifeq ($(LIBDIR_IN_LDCONFIG),0)
+ FINAL_NOTMUCH_LDFLAGS += $(RPATH_LDFLAGS)
+ endif
+@@ -297,7 +297,7 @@ notmuch_client_modules = $(notmuch_clien
+
+ notmuch.o: version.stamp
+
+-notmuch: $(notmuch_client_modules) lib/libnotmuch.a util/libutil.a parse-time-string/libparse-time-string.a
++notmuch: $(notmuch_client_modules) lib/libnotmuch.a util/libmyutil.a parse-time-string/libparse-time-string.a
+ $(call quiet,CXX $(CFLAGS)) $^ $(FINAL_LIBNOTMUCH_LDFLAGS) -o $@
+
+ notmuch-shared: $(notmuch_client_modules) lib/$(LINKER_NAME)
diff --git a/mail/notmuch/patches/patch-notmuch-dump.c b/mail/notmuch/patches/patch-notmuch-dump.c
new file mode 100644
index 00000000000..3b0a48076f7
--- /dev/null
+++ b/mail/notmuch/patches/patch-notmuch-dump.c
@@ -0,0 +1,24 @@
+$NetBSD: patch-notmuch-dump.c,v 1.1 2014/12/18 12:26:51 joerg Exp $
+
+Avoid depending on very recent zlib.
+
+--- notmuch-dump.c.orig 2014-12-15 20:12:50.000000000 +0000
++++ notmuch-dump.c
+@@ -177,7 +177,7 @@ notmuch_database_dump (notmuch_database_
+ }
+ }
+
+- if (gzclose_w (output) != Z_OK) {
++ if (gzclose(output) != Z_OK) {
+ fprintf (stderr, "Error closing %s: %s\n", name_for_error,
+ gzerror (output, NULL));
+ ret = EXIT_FAILURE;
+@@ -196,7 +196,7 @@ notmuch_database_dump (notmuch_database_
+ }
+ DONE:
+ if (ret != EXIT_SUCCESS && output)
+- (void) gzclose_w (output);
++ (void) gzclose(output);
+
+ if (ret != EXIT_SUCCESS && output_file_name)
+ (void) unlink (tempname);
diff --git a/mail/notmuch/patches/patch-notmuch-restore.c b/mail/notmuch/patches/patch-notmuch-restore.c
new file mode 100644
index 00000000000..ab3060eff41
--- /dev/null
+++ b/mail/notmuch/patches/patch-notmuch-restore.c
@@ -0,0 +1,15 @@
+$NetBSD: patch-notmuch-restore.c,v 1.1 2014/12/18 12:26:51 joerg Exp $
+
+Avoid depending on very recent zlib.
+
+--- notmuch-restore.c.orig 2014-12-15 20:12:30.000000000 +0000
++++ notmuch-restore.c
+@@ -312,7 +312,7 @@ notmuch_restore_command (notmuch_config_
+ if (notmuch)
+ notmuch_database_destroy (notmuch);
+
+- if (input && gzclose_r (input)) {
++ if (input && gzclose(input)) {
+ fprintf (stderr, "Error closing %s: %s\n",
+ name_for_error, gzerror (input, NULL));
+ ret = EXIT_FAILURE;
diff --git a/mail/notmuch/patches/patch-util_Makefile.local b/mail/notmuch/patches/patch-util_Makefile.local
new file mode 100644
index 00000000000..dac5fb53a18
--- /dev/null
+++ b/mail/notmuch/patches/patch-util_Makefile.local
@@ -0,0 +1,17 @@
+$NetBSD: patch-util_Makefile.local,v 1.1 2014/12/18 12:26:51 joerg Exp $
+
+Don't overlap with BSD's libutil.
+
+--- util/Makefile.local.orig 2014-12-15 20:14:25.000000000 +0000
++++ util/Makefile.local
+@@ -9,8 +9,8 @@ libutil_c_srcs := $(dir)/xutil.c $(dir)/
+
+ libutil_modules := $(libutil_c_srcs:.c=.o)
+
+-$(dir)/libutil.a: $(libutil_modules)
++$(dir)/libmyutil.a: $(libutil_modules)
+ $(call quiet,AR) rcs $@ $^
+
+ SRCS := $(SRCS) $(libutil_c_srcs)
+-CLEAN := $(CLEAN) $(libutil_modules) $(dir)/libutil.a
++CLEAN := $(CLEAN) $(libutil_modules) $(dir)/libmyutil.a