Re: [PATCH] build: Require gmime >= 2.6.7
authorTomi Ollila <tomi.ollila@iki.fi>
Tue, 13 Mar 2012 07:56:42 +0000 (09:56 +0200)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:45:26 +0000 (09:45 -0800)
f2/a2c9aeb8834e212cb50cfaa6820b6ee50e7012 [new file with mode: 0644]

diff --git a/f2/a2c9aeb8834e212cb50cfaa6820b6ee50e7012 b/f2/a2c9aeb8834e212cb50cfaa6820b6ee50e7012
new file mode 100644 (file)
index 0000000..18d8aae
--- /dev/null
@@ -0,0 +1,135 @@
+Return-Path: <tomi.ollila@iki.fi>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 85EDB431FAF\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Mar 2012 00:56:47 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+       autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id nF5a+nY4AqSs for <notmuch@notmuchmail.org>;\r
+       Tue, 13 Mar 2012 00:56:45 -0700 (PDT)\r
+Received: from guru.guru-group.fi (guru-group.fi [87.108.86.66])\r
+       by olra.theworths.org (Postfix) with ESMTP id 57A5E431FAE\r
+       for <notmuch@notmuchmail.org>; Tue, 13 Mar 2012 00:56:45 -0700 (PDT)\r
+Received: by guru.guru-group.fi (Postfix, from userid 501)\r
+       id CACBD68055; Tue, 13 Mar 2012 09:56:42 +0200 (EET)\r
+From: Tomi Ollila <tomi.ollila@iki.fi>\r
+To: David Bremner <david@tethera.net>, notmuch@notmuchmail.org\r
+Subject: Re: [PATCH] build: Require gmime >= 2.6.7\r
+In-Reply-To: <1331515786-485-1-git-send-email-david@tethera.net>\r
+References: <1329852935-3019-1-git-send-email-schnouki@schnouki.net>\r
+       <1331515786-485-1-git-send-email-david@tethera.net>\r
+User-Agent: Notmuch/0.11.1+288~g4b3af0e (http://notmuchmail.org) Emacs/23.3.1\r
+       (x86_64-unknown-linux-gnu)\r
+X-Face: HhBM'cA~<r"^Xv\KRN0P{vn'Y"Kd;zg_y3S[4)KSN~s?O\"QPoL\r
+       $[Xv_BD:i/F$WiEWax}R(MPS`^UaptOGD`*/=@\1lKoVa9tnrg0TW?"r7aRtgk[F\r
+       !)g;OY^,BjTbr)Np:%c_o'jj,Z\r
+Date: Tue, 13 Mar 2012 09:56:42 +0200\r
+Message-ID: <m2wr6pexxh.fsf@guru.guru-group.fi>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Tue, 13 Mar 2012 07:56:47 -0000\r
+\r
+On Sun, 11 Mar 2012 22:29:46 -0300, David Bremner <david@tethera.net> wrote:\r
+> From: Thomas Jost <schnouki@schnouki.net>\r
+> \r
+> gmime-2.6 had a bug [1] which made it impossible to tell why a signature\r
+> verification failed when the signer key was unavailable (empty "sigstatus" field\r
+> in the JSON output). Since 00b5623d the corresponding test is marked as broken\r
+> when using gmime-2.6 (2.4 is fine).\r
+> \r
+> This bug has been fixed in gmime 2.6.5, which is now the minimal gmime-2.6\r
+> version required for building notmuch (gmime-2.4 is still available). As a\r
+> consequence the version check in test/crypto can be removed.\r
+> \r
+> [Added by db]\r
+> \r
+> Although less unambigously a bug, Gmime 2.6 prior to 2.6.7 also was\r
+> more strict about parsing, and rejected messages with initial "From "\r
+> headers.  This restriction is relaxed in [2].  For reasons explained in [3],\r
+> we want to keep this more relaxed parsing for now.\r
+> \r
+> [1] https://bugzilla.gnome.org/show_bug.cgi?id=668085\r
+> \r
+> [2] http://git.gnome.org/browse/gmime/commit/?id=d311f576baf750476e06e9a1367a2dc1793ea7eb\r
+> \r
+> [3] id:"1331385931-1610-1-git-send-email-david@tethera.net"\r
+> ---\r
+> \r
+> As an alternative to applying [3], I could apply this modified version of\r
+> Thomas's patch. \r
+\r
+I propose this patch is applied. It is best to require the very latest of\r
+gmime 2.6 version at this time (gmime 2.6 maturing...)\r
+\r
+This will make id:"1331402091-15663-1-git-send-email-tom.prince@ualberta.net"\r
+stale. It can be reworked by changing $IFS to something else in code.\r
+\r
+(We might start requiring some gmime 2.4 versions to be present; For me\r
+ some tests fail when using gmime 2.4.21 (with gmimg 2.4.25 all works ok) --\r
+ and then Reworked Tom Prince's patch could be used to overrile this\r
+ "restriction")\r
+\r
+Tomi\r
+\r
+\r
+>  configure   |    4 +++-\r
+>  test/crypto |    2 --\r
+>  2 files changed, 3 insertions(+), 3 deletions(-)\r
+> \r
+> diff --git a/configure b/configure\r
+> index dedb7d8..ee0ae73 100755\r
+> --- a/configure\r
+> +++ b/configure\r
+> @@ -273,9 +273,11 @@ if [ ${have_xapian} = "0" ]; then\r
+>      errors=$((errors + 1))\r
+>  fi\r
+>  \r
+> +# If using GMime 2.6, we need to have a version >= 2.6.5 to avoid a\r
+> +# crypto bug. We need 2.6.7 for permissive "From " header handling.\r
+>  printf "Checking for GMime development files... "\r
+>  have_gmime=0\r
+> -for gmimepc in gmime-2.6 gmime-2.4; do\r
+> +for gmimepc in 'gmime-2.6 >= 2.6.7' gmime-2.4; do\r
+>      if pkg-config --exists $gmimepc; then\r
+>      printf "Yes ($gmimepc).\n"\r
+>      have_gmime=1\r
+> diff --git a/test/crypto b/test/crypto\r
+> index 1dbb60a..6723ef8 100755\r
+> --- a/test/crypto\r
+> +++ b/test/crypto\r
+> @@ -104,8 +104,6 @@ test_expect_equal \\r
+>      "$expected"\r
+>  \r
+>  test_begin_subtest "signature verification with signer key unavailable"\r
+> -# this is broken with current versions of gmime-2.6\r
+> -(ldd $(which notmuch) | grep -Fq gmime-2.6) && test_subtest_known_broken\r
+>  # move the gnupghome temporarily out of the way\r
+>  mv "${GNUPGHOME}"{,.bak}\r
+>  output=$(notmuch show --format=json --verify subject:"test signed message 001" \\r
+> -- \r
+> 1.7.9.1\r
+> \r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+> \r