Hello community, here is the log from the commit of package notmuch for openSUSE:Factory checked in at 2019-05-10 09:19:08 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/notmuch (Old) and /work/SRC/openSUSE:Factory/.notmuch.new.5148 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "notmuch" Fri May 10 09:19:08 2019 rev:18 rq:701567 version:0.28.4 Changes: -------- --- /work/SRC/openSUSE:Factory/notmuch/notmuch.changes 2019-04-18 09:56:13.629333839 +0200 +++ /work/SRC/openSUSE:Factory/.notmuch.new.5148/notmuch.changes 2019-05-10 09:19:09.636406362 +0200 @@ -1,0 +2,14 @@ +Wed May 8 11:09:32 UTC 2019 - Adam Majer <[email protected]> + +- Remove checksum file as upstream is not using detached signatures + and it's confusing. Signed checksum is in the signature file. + +------------------------------------------------------------------- +Sun May 5 20:16:05 UTC 2019 - Chris Coutinho <[email protected]> + +- Upgrade to notmuch 0.28.4 + * Fix a spurious error when using `notmuch show --raw` on messages + whose size is a multiple of the internal buffer size. +- dropped 0001-CLI-reindex-fix-memory-leak.patch: upstreamed + +------------------------------------------------------------------- Old: ---- 0001-CLI-reindex-fix-memory-leak.patch notmuch-0.28.3.tar.gz notmuch-0.28.3.tar.gz.sha256 notmuch-0.28.3.tar.gz.sha256.asc New: ---- notmuch-0.28.4.tar.gz notmuch-0.28.4.tar.gz.sha256.asc ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ notmuch.spec ++++++ --- /var/tmp/diff_new_pack.jc231s/_old 2019-05-10 09:19:11.208408792 +0200 +++ /var/tmp/diff_new_pack.jc231s/_new 2019-05-10 09:19:11.244408848 +0200 @@ -17,22 +17,17 @@ Name: notmuch -Version: 0.28.3 +Version: 0.28.4 Release: 0 Summary: The mail indexer License: GPL-3.0-or-later Group: Productivity/Networking/Email/Utilities Url: https://notmuchmail.org Source0: %{url}/releases/%{name}-%{version}.tar.gz -Source1: %{url}/releases/%{name}-%{version}.tar.gz.sha256 Source2: %{url}/releases/%{name}-%{version}.tar.gz.sha256.asc Source3: %{url}/releases/test-databases/database-v1.tar.xz Source4: notmuch.keyring -# FIXME: will be probably included in notmuch > 0.28.3, drop patch then -# PATCH-FIX-UPSTREAM 0001-CLI-reindex-fix-memory-leak.patch [email protected] -Patch0: 0001-CLI-reindex-fix-memory-leak.patch - %{bcond_without python} %{bcond_without python3} %{bcond_without emacs} ++++++ notmuch-0.28.3.tar.gz -> notmuch-0.28.4.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/notmuch-0.28.3/.travis.yml new/notmuch-0.28.4/.travis.yml --- old/notmuch-0.28.3/.travis.yml 2019-03-06 02:46:41.000000000 +0100 +++ new/notmuch-0.28.4/.travis.yml 2019-05-05 13:09:30.000000000 +0200 @@ -1,7 +1,6 @@ language: c -dist: trusty -sudo: false +dist: xenial addons: apt: diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/notmuch-0.28.3/NEWS new/notmuch-0.28.4/NEWS --- old/notmuch-0.28.3/NEWS 2019-03-06 02:46:41.000000000 +0100 +++ new/notmuch-0.28.4/NEWS 2019-05-05 13:09:30.000000000 +0200 @@ -1,3 +1,12 @@ +Notmuch 0.28.4 (2019-05-05) +=========================== + +Command line interface +---------------------- + +Fix a spurious error when using `notmuch show --raw` on messages whose +size is a multiple of the internal buffer size. + Notmuch 0.28.3 (2019-03-05) =========================== diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/notmuch-0.28.3/bindings/python/notmuch/version.py new/notmuch-0.28.4/bindings/python/notmuch/version.py --- old/notmuch-0.28.3/bindings/python/notmuch/version.py 2019-03-06 02:46:41.000000000 +0100 +++ new/notmuch-0.28.4/bindings/python/notmuch/version.py 2019-05-05 13:09:30.000000000 +0200 @@ -1,3 +1,3 @@ # this file should be kept in sync with ../../../version -__VERSION__ = '0.28.3' +__VERSION__ = '0.28.4' SOVERSION = '5' diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/notmuch-0.28.3/debian/changelog new/notmuch-0.28.4/debian/changelog --- old/notmuch-0.28.3/debian/changelog 2019-03-06 02:46:41.000000000 +0100 +++ new/notmuch-0.28.4/debian/changelog 2019-05-05 13:09:30.000000000 +0200 @@ -1,3 +1,12 @@ +notmuch (0.28.4-1) unstable; urgency=medium + + * New upstream bugfix release + * Fix for bug in 'notmuch show --raw' that causes spurious errors to be + reported when the mail file is a multiple of the libc buffer size + (e.g. 4096 bytes). + + -- David Bremner <[email protected]> Sun, 05 May 2019 08:08:56 -0300 + notmuch (0.28.3-1) unstable; urgency=medium * New upstream bugfix release. diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/notmuch-0.28.3/notmuch-show.c new/notmuch-0.28.4/notmuch-show.c --- old/notmuch-0.28.3/notmuch-show.c 2019-03-06 02:46:41.000000000 +0100 +++ new/notmuch-0.28.4/notmuch-show.c 2019-05-05 13:09:30.000000000 +0200 @@ -851,7 +851,7 @@ return NOTMUCH_STATUS_FILE_ERROR; } - if (fwrite (buf, size, 1, stdout) != 1) { + if (size > 0 && fwrite (buf, size, 1, stdout) != 1) { fprintf (stderr, "Error: Write failed\n"); fclose (file); return NOTMUCH_STATUS_FILE_ERROR; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/notmuch-0.28.3/test/T210-raw.sh new/notmuch-0.28.4/test/T210-raw.sh --- old/notmuch-0.28.3/test/T210-raw.sh 2019-03-06 02:46:41.000000000 +0100 +++ new/notmuch-0.28.4/test/T210-raw.sh 2019-05-05 13:09:30.000000000 +0200 @@ -30,4 +30,38 @@ This is just a test message (#2)" +test_python <<EOF +from email.message import EmailMessage +for pow in range(10,21): + size = 2 ** pow + msg = EmailMessage() + msg['Subject'] = 'message with {:07d} bytes'.format(size) + msg['From'] = 'Notmuch Test Suite <[email protected]>' + msg['To'] = msg['From'] + msg['Message-Id'] = 'size-{:07d}@notmuch-test-suite'.format(size) + content = "" + msg.set_content("") + padding = size - len(bytes(msg)) + lines = [] + while padding > 0: + line = '.' * min(padding, 72) + lines.append(line) + padding = padding - len(line) - 1 + content ='\n'.join(lines) + msg.set_content(content) + with open('mail/size-{:07d}'.format(size), 'wb') as f: + f.write(bytes(msg)) +EOF + +notmuch new --quiet + +for pow in {10..20}; do + printf -v size "%07d" $((2**$pow)) + test_begin_subtest "content, message of size $size" + notmuch show --format=raw subject:$size > OUTPUT + test_expect_equal_file mail/size-$size OUTPUT + test_begin_subtest "return value, message of size $size" + test_expect_success "notmuch show --format=raw subject:$size > /dev/null" +done + test_done diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/notmuch-0.28.3/version new/notmuch-0.28.4/version --- old/notmuch-0.28.3/version 2019-03-06 02:46:41.000000000 +0100 +++ new/notmuch-0.28.4/version 2019-05-05 13:09:30.000000000 +0200 @@ -1 +1 @@ -0.28.3 +0.28.4
