debian-snapshot:
make VERSION=$(VERSION) clean
cp debian/changelog $(TMPFILE)
- EDITOR=/bin/true dch -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'
+ EDITOR=/bin/true dch -b -v $(VERSION)+1 -D UNRELEASED 'test build, not for upload'
echo '3.0 (native)' > debian/source/format
debuild -us -uc
mv -f $(TMPFILE) debian/changelog
suggested that people do this by hand; this is no longer necessary.
+Notmuch 0.10.2 (2011-12-04)
+===========================
+
+Bug-fix release.
+----------------
+
+Fix crash in python bindings.
+
+ The python bindings did not call g_type_init, which caused crashes
+ for some, but not all users.
+
Notmuch 0.10.1 (2011-11-25)
===========================
# this file should be kept in sync with ../../../version
-__VERSION__ = '0.10.1'
+__VERSION__ = '0.10.2'
+notmuch (0.10.2-1) unstable; urgency=low
+
+ * Upstream bug fix release
+ - Fix segfault in python bindings due to missing g_type_init call.
+
+ -- David Bremner <bremner@debian.org> Sun, 04 Dec 2011 22:06:46 -0400
+
notmuch (0.10.1-1) unstable; urgency=low
* Upstream bug fix release.
#include <signal.h>
#include <glib.h> /* g_free, GPtrArray, GHashTable */
+#include <glib-object.h> /* g_type_init */
using namespace std;
goto DONE;
}
+ /* Initialize the GLib type system and threads */
+ g_type_init ();
+
notmuch = talloc (NULL, notmuch_database_t);
notmuch->exception_reported = FALSE;
notmuch->path = talloc_strdup (notmuch, path);
.\" along with this program. If not, see http://www.gnu.org/licenses/ .
.\"
.\" Author: Carl Worth <cworth@cworth.org>
-.TH NOTMUCH 1 2011-11-25 "Notmuch 0.10.1"
+.TH NOTMUCH 1 2011-12-04 "Notmuch 0.10.2"
.SH NAME
notmuch \- thread-based email index, search, and tagging
.SH SYNOPSIS
symbol-hiding
search-folder-coherence
atomicity
+ python
"
TESTS=${NOTMUCH_TESTS:=$TESTS}
--- /dev/null
+#!/usr/bin/env bash
+test_description="python bindings"
+. ./test-lib.sh
+
+add_email_corpus
+
+test_begin_subtest "compare thread ids"
+LD_LIBRARY_PATH=$TEST_DIRECTORY/../lib \
+PYTHONPATH=$TEST_DIRECTORY/../bindings/python \
+python <<EOF | sort > OUTPUT
+import notmuch
+db = notmuch.Database(mode=notmuch.Database.MODE.READ_WRITE)
+q_new = notmuch.Query(db, 'tag:inbox')
+for t in q_new.search_threads():
+ print t.get_thread_id()
+EOF
+notmuch search --output=threads tag:inbox | sed s/^thread:// | sort > EXPECTED
+test_expect_equal_file OUTPUT EXPECTED
+test_done