Merge tag '0.31.4'
authorDavid Bremner <david@tethera.net>
Thu, 18 Feb 2021 12:47:53 +0000 (08:47 -0400)
committerDavid Bremner <david@tethera.net>
Thu, 18 Feb 2021 12:47:53 +0000 (08:47 -0400)
notmuch 0.31.4 release

NEWS
bindings/python-cffi/version.txt
bindings/python/notmuch/version.py
debian/changelog
debian/patches/debian-changes [deleted file]
debian/patches/series [deleted file]
doc/conf.py
lib/notmuch-private.h
test/T568-lib-thread.sh
version.txt

diff --git a/NEWS b/NEWS
index 6484567e548fa9616ecaae6c12a1c4cb6e44aab6..6e88ebd9f703fd72508a8a05b989c84566dd8225 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,16 @@
+Notmuch 0.31.4 (2021-02-18)
+===========================
+
+Library
+-------
+
+Fix include bug triggered by glib 2.67.
+
+Test
+----
+
+Fix race condition in T568-lib-thread.
+
 Notmuch 0.31.3 (2020-12-25)
 ===========================
 
index 8239f42dc95eb45150a745d69bbe2ce77a632e4e..a8a0217298153523be41c08773ecf133ba4ce380 100644 (file)
@@ -1 +1 @@
-0.31.3
+0.31.4
index 0be316c2404691e34ef0b6990530fde7c1187d32..6f6372ab1f4e6d25742733c97a14c84940108cfc 100644 (file)
@@ -1,3 +1,3 @@
 # this file should be kept in sync with ../../../version
-__VERSION__ = '0.31.3'
+__VERSION__ = '0.31.4'
 SOVERSION = '5'
index 222b06f47994c4a3ea1bd26b23ede99c334844f4..ec3de63d27df2c2aeeee82be0489e6940f7b6988 100644 (file)
@@ -1,3 +1,11 @@
+notmuch (0.31.4-1) unstable; urgency=medium
+
+  * New upstream bugfix release
+    - Fix include bug triggered by glib 2.67
+    - Fix race condition in T568-lib-thread
+
+ -- David Bremner <bremner@debian.org>  Thu, 18 Feb 2021 07:23:00 -0400
+
 notmuch (0.31.3-2) unstable; urgency=medium
 
   * Don't install gdb on hppa (skip gdb based tests)
diff --git a/debian/patches/debian-changes b/debian/patches/debian-changes
deleted file mode 100644 (file)
index 55aa7de..0000000
+++ /dev/null
@@ -1,47 +0,0 @@
-This is an autogenerated patch header for a single-debian-patch file. The
-delta against upstream is either kept as a single patch, or maintained
-in some VCS, and exported as a single patch instead of more manageable
-atomic patches.
-
---- notmuch-0.31.3.orig/Makefile.global
-+++ notmuch-0.31.3/Makefile.global
-@@ -36,7 +36,6 @@ endif
- endif
- UPSTREAM_TAG=$(subst ~,_,$(VERSION))
--DEB_TAG=debian/$(UPSTREAM_TAG)-1
- RELEASE_HOST=notmuchmail.org
- RELEASE_DIR=/srv/notmuchmail.org/www/releases
---- notmuch-0.31.3.orig/Makefile.local
-+++ notmuch-0.31.3/Makefile.local
-@@ -73,12 +73,11 @@ release: verify-source-tree-and-version
-       $(MAKE) VERSION=$(VERSION) $(SHA256_FILE) $(DETACHED_SIG_FILE)
-       ln -sf $(TAR_FILE) $(DEB_TAR_FILE)
-       pristine-tar commit $(DEB_TAR_FILE) $(UPSTREAM_TAG)
--      git tag -s -m "$(PACKAGE) Debian $(VERSION)-1 upload (same as $(VERSION))" $(DEB_TAG)
-       mkdir -p releases
-       mv $(TAR_FILE) $(SHA256_FILE) $(DETACHED_SIG_FILE) releases
-       $(MAKE) VERSION=$(VERSION) release-message > $(PACKAGE)-$(VERSION).announce
- ifeq ($(REALLY_UPLOAD),yes)
--      git push origin $(VERSION) $(DEB_TAG) release pristine-tar
-+      git push origin $(VERSION) release pristine-tar
-       cd releases && scp $(TAR_FILE) $(SHA256_FILE) $(DETACHED_SIG_FILE) $(RELEASE_HOST):$(RELEASE_DIR)
-       ssh $(RELEASE_HOST) "rm -f $(RELEASE_DIR)/LATEST-$(PACKAGE)-* ; ln -s $(TAR_FILE) $(RELEASE_DIR)/LATEST-$(TAR_FILE)"
-       rsync --verbose --delete --recursive doc/_build/html/ $(RELEASE_HOST):$(DOC_DIR)
-@@ -90,7 +89,6 @@ pre-release:
-       $(MAKE) VERSION=$(VERSION) clean
-       $(MAKE) VERSION=$(VERSION) test
-       git tag -s -m "$(PACKAGE) $(VERSION) release" $(UPSTREAM_TAG)
--      git tag -s -m "$(PACKAGE) Debian $(VERSION)-1 upload (same as $(VERSION))" $(DEB_TAG)
-       $(MAKE) VERSION=$(VERSION) $(SHA256_FILE) $(DETACHED_SIG_FILE)
-       ln -sf $(TAR_FILE) $(DEB_TAR_FILE)
-       pristine-tar commit $(DEB_TAR_FILE) $(UPSTREAM_TAG)
---- notmuch-0.31.3.orig/NEWS
-+++ notmuch-0.31.3/NEWS
-@@ -1,4 +1,5 @@
- Notmuch 0.31.3 (2020-12-25)
-+===========================
- Bindings
- --------
diff --git a/debian/patches/series b/debian/patches/series
deleted file mode 100644 (file)
index 7bb8252..0000000
+++ /dev/null
@@ -1 +0,0 @@
-debian-changes
index 11bed51d7596100ac2ca381792661e8378bbc5dd..1a5c217bb91e5299fbb2bc83f4e8d19bff466490 100644 (file)
@@ -14,7 +14,7 @@ master_doc = 'index'
 
 # General information about the project.
 project = u'notmuch'
-copyright = u'2009-2020, Carl Worth and many others'
+copyright = u'2009-2021, Carl Worth and many others'
 
 location = os.path.dirname(__file__)
 
index 2f5ccd6ae0c37abdeb4520dcfe4683e437b5cba6..750a242c61bc9ec098fb98df0bbbe61ed59047d2 100644 (file)
 
 #include "notmuch.h"
 
+#include "xutil.h"
+#include "error_util.h"
+#include "string-util.h"
+#include "crypto.h"
+#include "repair.h"
+
 NOTMUCH_BEGIN_DECLS
 
 #include <stdlib.h>
@@ -47,14 +53,6 @@ NOTMUCH_BEGIN_DECLS
 
 #include <talloc.h>
 
-#include "gmime-extra.h"
-
-#include "xutil.h"
-#include "error_util.h"
-#include "string-util.h"
-#include "crypto.h"
-#include "repair.h"
-
 #ifdef DEBUG
 # define DEBUG_DATABASE_SANITY 1
 # define DEBUG_THREADING 1
index ac13d98671289c0c2a55e13ec51bfbf02fb57126..088e66dd937313bd1f9c44d60513f998f2b3dc7a 100755 (executable)
@@ -8,6 +8,11 @@ add_email_corpus
 test_begin_subtest "building database"
 test_expect_success "NOTMUCH_NEW"
 
+test_begin_subtest "finding thread"
+THREAD=$(notmuch search --output=threads id:20091117190054.GU3165@dottiness.seas.harvard.edu)
+count=$(notmuch count $THREAD)
+test_expect_equal "$count" "7"
+
 cat <<'EOF' > c_tail
    if (stat) {
        const char *stat_str = notmuch_database_status_string (db);
@@ -30,7 +35,7 @@ int main (int argc, char** argv)
    notmuch_thread_t *thread = NULL;
    notmuch_threads_t *threads = NULL;
    notmuch_query_t *query = NULL;
-   const char *id = "thread:0000000000000009";
+   const char *id = "${THREAD}";
 
    stat = notmuch_database_open_verbose (argv[1], NOTMUCH_DATABASE_MODE_READ_WRITE, &db, &msg);
    if (stat != NOTMUCH_STATUS_SUCCESS) {
@@ -52,10 +57,11 @@ cat c_head - c_tail <<'EOF' | test_C ${MAIL_DIR}
         printf("%d\n%s\n", thread != NULL, id2);
     }
 EOF
+thread_num=${THREAD#thread:}
 cat <<EOF > EXPECTED
 == stdout ==
 1
-0000000000000009
+${thread_num}
 == stderr ==
 EOF
 test_expect_equal_file EXPECTED OUTPUT
index 8239f42dc95eb45150a745d69bbe2ce77a632e4e..a8a0217298153523be41c08773ecf133ba4ce380 100644 (file)
@@ -1 +1 @@
-0.31.3
+0.31.4