Message ID | 147059611699.9624.567002638658964680@what |
---|---|
State | New |
Headers |
Received: (qmail 113694 invoked by uid 89); 7 Aug 2016 18:55:43 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Checked: by ClamAV 0.99.1 on sourceware.org X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy=021, Quote, troy, 0.21 X-Spam-Status: No, score=-2.8 required=5.0 tests=AWL, BAYES_00, FREEMAIL_FROM, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on sourceware.org X-Spam-Level: X-HELO: lists.gnu.org Received: from lists.gnu.org (HELO lists.gnu.org) (208.118.235.17) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Sun, 07 Aug 2016 18:55:33 +0000 Received: from localhost ([::1]:53561 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guix-devel-bounces+patchwork=sourceware.org@gnu.org>) id 1bWTER-0004h4-4u for patchwork@sourceware.org; Sun, 07 Aug 2016 14:55:31 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:51198) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <sankeytms@gmail.com>) id 1bWTEK-0004gn-Gc for guix-devel@gnu.org; Sun, 07 Aug 2016 14:55:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <sankeytms@gmail.com>) id 1bWTEG-0006V5-5h for guix-devel@gnu.org; Sun, 07 Aug 2016 14:55:23 -0400 Received: from mail-qt0-x231.google.com ([2607:f8b0:400d:c0d::231]:36672) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <sankeytms@gmail.com>) id 1bWTEF-0006V0-W8 for guix-devel@gnu.org; Sun, 07 Aug 2016 14:55:20 -0400 Received: by mail-qt0-x231.google.com with SMTP id 52so195291110qtq.3 for <guix-devel@gnu.org>; Sun, 07 Aug 2016 11:55:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:to:message-id:from:user-agent:subject:date; bh=NDsFKSYTsHMDidRawrC2rVu0kr3AjyjDUW7lVyb3PGY=; b=Bb7/NE2FpmlUI+0OQQmjqLDCQXsvwjKKxte4mpcFb+/Fzdo1z7cgXy86cuYpABSHkh N872FTaayaxFbhu96yTZVdQYj8QpsYZVi17lD09jmV3i/kZ3bA/bSkpL0YtG3RRz8Eaj JnYM37RrJGF593wyWg0BjIWWAiAY6xXHgnkTvUsBz7JBzyWm33nvA+i5V5+exl+kooGl Oe5XBkJB9fLoZ5Ok8k1upClW0d9t9oKU61Xb8rQ+FIzSQimfs0GcN9Hg4ZJF+/ZEASUm 8ujZjuS+WRVq0bQ+S3clN2da+p9l7TDfWpmsCang0xvDeqlFQ4rcEreKfQC6koYI/yw8 e3DA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:to:message-id:from:user-agent :subject:date; bh=NDsFKSYTsHMDidRawrC2rVu0kr3AjyjDUW7lVyb3PGY=; b=bh9WyTdwEFqpWCdj7lqClS/TSdHTQlKDIbdInPFQ2QvDP6GofsVq0rcMO4wVyMuq3Z 555Ab+JbAYRoWr2I8kath+xUPLLrH/KH8tsp6SD3NYB9a7x7KSZAQQESD3GZwjo3L1K/ Ql1yj9x95S32bTog9XPilDAWXIG4DjwfwiOvs1VgiouWyL0odpNIt2KkW5MtiB3sAs6v rzUkH/F5EmNOGkHAgwkB7VTYbBJ3CP9WUce9XWubKDjyZJUI7uDYRD2QoBkvlFXfvT+R LrWqXJpyqKh37V7f3xEvCnUdZ3g1WJWojQVijq/z4f/Mpv054W3gZaKeJ2HjGqwUk+70 DL7w== X-Gm-Message-State: AEkoousf4/6V7AYC8hleLZAkPON5pHtxYWEckb6z/5lup2H+dGYbIiHd4fgfC2HQar87oA== X-Received: by 10.200.48.42 with SMTP id f39mr23808846qte.81.1470596118825; Sun, 07 Aug 2016 11:55:18 -0700 (PDT) Received: from localhost (c-73-167-118-183.hsd1.ma.comcast.net. [73.167.118.183]) by smtp.gmail.com with ESMTPSA id y4sm15482434qtb.33.2016.08.07.11.55.17 for <guix-devel@gnu.org> (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Aug 2016 11:55:18 -0700 (PDT) Content-Type: multipart/mixed; boundary="===============1777495930==" MIME-Version: 1.0 To: guix-devel@gnu.org Message-ID: <147059611699.9624.567002638658964680@what> From: Troy Sankey <sankeytms@gmail.com> User-Agent: alot/0.3.7 Subject: [PATCH] update notmuch and python bindings Date: Sun, 07 Aug 2016 14:55:17 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c0d::231 X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." <guix-devel.gnu.org> List-Unsubscribe: <https://lists.gnu.org/mailman/options/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/archive/html/guix-devel/> List-Post: <mailto:guix-devel@gnu.org> List-Help: <mailto:guix-devel-request@gnu.org?subject=help> List-Subscribe: <https://lists.gnu.org/mailman/listinfo/guix-devel>, <mailto:guix-devel-request@gnu.org?subject=subscribe> Errors-To: guix-devel-bounces+patchwork=sourceware.org@gnu.org Sender: "Guix-devel" <guix-devel-bounces+patchwork=sourceware.org@gnu.org> |
Commit Message
Troy Sankey
Aug. 7, 2016, 6:55 p.m. UTC
This patchset updates notmuch from 0.21 to 0.22.1, adds python3 bindings, and updates the existing python2 bindings. The notmuch upgrade was not necessary for adding the python3 bindings (my primary goal) but I'm throwing it in because the NEWS file does not indicate any breaking change. Also my own experience upgrading from 0.21 to 0.22.1 was problem-free. Troy
Comments
Hi, Troy Sankey <sankeytms@gmail.com> writes: > This patchset updates notmuch from 0.21 to 0.22.1, adds python3 bindings, and > updates the existing python2 bindings. The notmuch upgrade was not necessary > for adding the python3 bindings (my primary goal) but I'm throwing it in > because the NEWS file does not indicate any breaking change. Also my own > experience upgrading from 0.21 to 0.22.1 was problem-free. thanks for the patches. I only have a short question, inlined below. > > From 1b98630890e543eae0dbfbf3dc38b4a26535a003 Mon Sep 17 00:00:00 2001 > From: Troy Sankey <sankeytms@gmail.com> > Date: Sun, 7 Aug 2016 13:21:28 -0400 > Subject: [PATCH 1/3] gnu: notmuch: Update to 0.22.1. > > This also removes the emacs input. Quote from the notmuch NEWS file: > > Drop dependency on "pkg-config emacs". > --- > gnu/packages/mail.scm | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index 28978a8..c58e5f5 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -436,14 +436,14 @@ attachments, create new maildirs, and so on.") > (define-public notmuch > (package > (name "notmuch") > - (version "0.21") > + (version "0.22.1") > (source (origin > (method url-fetch) > (uri (string-append "https://notmuchmail.org/releases/notmuch-" > version ".tar.gz")) > (sha256 > (base32 > - "1cr53rbpkcy3pvrmhbg2gq7sjpwb0c8xd7a4zhzxbiv8s7z8yvyh")))) > + "0jwpda3q023dn3sp41n8648951i7iagfv8zzpriv7hpkjivlafg7")))) > (build-system gnu-build-system) > (arguments > '(#:tests? #f ;; FIXME: 662 tests; 168 fail and 99 are skipped > @@ -464,8 +464,7 @@ attachments, create new maildirs, and so on.") > ("python-sphinx" ,python2-sphinx) > ("bash-completion" ,bash-completion))) > (inputs > - `(("emacs" ,emacs) > - ("glib" ,glib) > + `(("glib" ,glib) Why is emacs removed? > ("gmime" ,gmime) > ("talloc" ,talloc) > ("xapian" ,xapian) > -- > 2.1.4 >
Quoting ng0 (2016-08-07 15:29:34) > > (inputs > > - `(("emacs" ,emacs) > > - ("glib" ,glib) > > + `(("glib" ,glib) > > Why is emacs removed? Please see the commit message :) Of course I could be misunderstanding something, but it does build successfully. I do not normally use emacs, so I was not able to test this particular change. Troy
Troy Sankey <sankeytms@gmail.com> writes: > Quoting ng0 (2016-08-07 15:29:34) >> > (inputs >> > - `(("emacs" ,emacs) >> > - ("glib" ,glib) >> > + `(("glib" ,glib) >> >> Why is emacs removed? > > Please see the commit message :) > > Of course I could be misunderstanding something, but it does build > successfully. I do not normally use emacs, so I was not able to test > this particular change. > > Troy Ah, sorry. I don't want to mix up my notmuch and the review, and I'll be occupied until tuesday night, so someone who does not rely on a functional notmuch should review if it works correctly. I find it weird that the input is dropped. Maybe I should read the release notes.
Troy Sankey <sankeytms@gmail.com> writes: > This patchset updates notmuch from 0.21 to 0.22.1, adds python3 bindings, and > updates the existing python2 bindings. The notmuch upgrade was not necessary > for adding the python3 bindings (my primary goal) but I'm throwing it in > because the NEWS file does not indicate any breaking change. Also my own > experience upgrading from 0.21 to 0.22.1 was problem-free. > > Troy > From a4523503314814adea61a7fef48ea443f7d14b8c Mon Sep 17 00:00:00 2001 > From: Troy Sankey <sankeytms@gmail.com> > Date: Sun, 7 Aug 2016 13:27:18 -0400 > Subject: [PATCH 3/3] gnu: python2-notmuch: Update to 0.22.1. > > --- > gnu/packages/mail.scm | 33 +-------------------------------- > 1 file changed, 1 insertion(+), 32 deletions(-) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index 96537c4..57ec7c8 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -560,38 +560,7 @@ and search library.") > (license gpl3+))) > > (define-public python2-notmuch > - (package > - (name "python2-notmuch") > - (version "0.15.2") > - (source (origin > - (method url-fetch) > - (uri (string-append > - "https://pypi.python.org/packages/source/n/notmuch/notmuch-" > - version > - ".tar.gz")) > - (sha256 > - (base32 > - "18g8701ibr153ngsz258kgcd42wqnbf9ifpqig1bijy6b0zx9xn5")))) > - (build-system python-build-system) > - (inputs `(("notmuch" ,notmuch))) > - (arguments > - `(#:python ,python-2 > - #:phases (modify-phases %standard-phases > - (add-before > - 'build 'set-libnotmuch-file-name > - (lambda* (#:key inputs #:allow-other-keys) > - (let ((notmuch (assoc-ref inputs "notmuch"))) > - (substitute* "notmuch/globals.py" > - (("libnotmuch\\.so\\.[0-9]") > - (string-append notmuch "/lib/libnotmuch.so.4"))) > - #t)))) > - #:tests? #f)) ;no "test" target > - (home-page "http://notmuchmail.org/") > - (synopsis "Python bindings of the Notmuch mail indexing library") > - (description > - "This package provides Python bindings to use the Notmuch mail indexing > -and search library.") > - (license gpl3+))) > + (package-with-python2 python-notmuch)) > > (define-public getmail > (package > -- > 2.1.4 > > From b3c53dec33e35d554e4a30de108477bc4fbe932f Mon Sep 17 00:00:00 2001 > From: Troy Sankey <sankeytms@gmail.com> > Date: Sun, 7 Aug 2016 13:26:30 -0400 > Subject: [PATCH 2/3] gnu: Add python-notmuch > > --- > gnu/packages/mail.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 42 insertions(+) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index c58e5f5..96537c4 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -517,6 +517,48 @@ ing, and tagging large collections of email messages.") > useful for email address completion.") > (license license:expat))) > > +(define-public python-notmuch > + (package > + (name "python-notmuch") > + (version "0.22.1") > + (source (origin > + (method url-fetch) > + ; notmuch python bindings are now unavailable on pypi. The > + ; bindings are distributed via the notmuch release tarball. One line comments are preceeded by two ";", like you applied further down. > + (uri (string-append > + "https://notmuchmail.org/releases/notmuch-" > + version > + ".tar.gz")) > + (sha256 > + (base32 > + "0jwpda3q023dn3sp41n8648951i7iagfv8zzpriv7hpkjivlafg7")))) > + (build-system python-build-system) > + (inputs `(("notmuch" ,notmuch))) > + (arguments > + `(#:tests? #f ;; no "test" target And this comment should be: ; no "test" target > + #:phases > + (modify-phases %standard-phases > + ;; this python package lives in a subdirectory of the notmuch source > + ;; tree, so chdir into it before building: > + (add-before 'build 'chdir > + (lambda* (#:key inputs outputs #:allow-other-keys) > + (chdir "bindings/python"))) > + ;; make sure the correct notmuch shared library gets loaded: > + (add-before > + 'build 'set-libnotmuch-file-name > + (lambda* (#:key inputs #:allow-other-keys) > + (let ((notmuch (assoc-ref inputs "notmuch"))) > + (substitute* "notmuch/globals.py" > + (("libnotmuch\\.so\\.") > + (string-append notmuch "/lib/libnotmuch.so."))) > + #t)))))) > + (home-page "http://notmuchmail.org/") > + (synopsis "Python bindings of the Notmuch mail indexing library") > + (description > + "This package provides Python bindings to use the Notmuch mail indexing > +and search library.") > + (license gpl3+))) > + > (define-public python2-notmuch > (package > (name "python2-notmuch") > -- > 2.1.4 > > From 1b98630890e543eae0dbfbf3dc38b4a26535a003 Mon Sep 17 00:00:00 2001 > From: Troy Sankey <sankeytms@gmail.com> > Date: Sun, 7 Aug 2016 13:21:28 -0400 > Subject: [PATCH 1/3] gnu: notmuch: Update to 0.22.1. > > This also removes the emacs input. Quote from the notmuch NEWS file: > > Drop dependency on "pkg-config emacs". > --- > gnu/packages/mail.scm | 7 +++---- > 1 file changed, 3 insertions(+), 4 deletions(-) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index 28978a8..c58e5f5 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -436,14 +436,14 @@ attachments, create new maildirs, and so on.") > (define-public notmuch > (package > (name "notmuch") > - (version "0.21") > + (version "0.22.1") > (source (origin > (method url-fetch) > (uri (string-append "https://notmuchmail.org/releases/notmuch-" > version ".tar.gz")) > (sha256 > (base32 > - "1cr53rbpkcy3pvrmhbg2gq7sjpwb0c8xd7a4zhzxbiv8s7z8yvyh")))) > + "0jwpda3q023dn3sp41n8648951i7iagfv8zzpriv7hpkjivlafg7")))) > (build-system gnu-build-system) > (arguments > '(#:tests? #f ;; FIXME: 662 tests; 168 fail and 99 are skipped Same as above: ; FIXME: 662 tests, 168 fail and 99 are skipped But as this is just a version bump, someone should fix this in a later update when patches are fixed. > @@ -464,8 +464,7 @@ attachments, create new maildirs, and so on.") > ("python-sphinx" ,python2-sphinx) > ("bash-completion" ,bash-completion))) > (inputs > - `(("emacs" ,emacs) > - ("glib" ,glib) > + `(("glib" ,glib) > ("gmime" ,gmime) > ("talloc" ,talloc) > ("xapian" ,xapian) > -- > 2.1.4 > I'd also advise to upgrade git to something more recent if your distro allows it :) I'll try to test build tomorrow morning when my buildserver is up again. release notes read interesting enough. thanks for the patches.
ng0 (2016-08-08 01:04 +0300) wrote: > Troy Sankey <sankeytms@gmail.com> writes: > >> Quoting ng0 (2016-08-07 15:29:34) >>> > (inputs >>> > - `(("emacs" ,emacs) >>> > - ("glib" ,glib) >>> > + `(("glib" ,glib) >>> >>> Why is emacs removed? >> >> Please see the commit message :) >> >> Of course I could be misunderstanding something, but it does build >> successfully. I do not normally use emacs, so I was not able to test >> this particular change. Commit message: This also removes the emacs input. Quote from the notmuch NEWS file: Drop dependency on "pkg-config emacs". This only means that emacs is not required for notmuch to be built successfully (it is done for those people who don't use emacs). But it doesn't mean this dependency should be dropped. In Guix we usually include all available features. > Ah, sorry. > I don't want to mix up my notmuch and the review, and I'll be occupied > until tuesday night, so someone who does not rely on a functional > notmuch should review if it works correctly. I find it weird that the > input is dropped. You are right, emacs input shouldn't be dropped. This would lead to non-compiled elisp files (I mean /gnu/store/...-notmuch-0.22.1/share/emacs/site-lisp/ would contain only *.el files but not *.elc). I would rather replace 'emacs' with 'emacs-minimal', also I think it should be moved to 'native-inputs'; but this does not relate to this patch (I'll commit this change separately).
> From b3c53dec33e35d554e4a30de108477bc4fbe932f Mon Sep 17 00:00:00 2001 > From: Troy Sankey <sankeytms@gmail.com> > Date: Sun, 7 Aug 2016 13:26:30 -0400 > Subject: [PATCH 2/3] gnu: Add python-notmuch > > --- > gnu/packages/mail.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ > 1 file changed, 42 insertions(+) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index c58e5f5..96537c4 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -517,6 +517,48 @@ ing, and tagging large collections of email messages.") > useful for email address completion.") > (license license:expat))) > > +(define-public python-notmuch > + (package > + (name "python-notmuch") > + (version "0.22.1") > + (source (origin > + (method url-fetch) > + ; notmuch python bindings are now unavailable on pypi. The > + ; bindings are distributed via the notmuch release tarball. > + (uri (string-append > + "https://notmuchmail.org/releases/notmuch-" > + version > + ".tar.gz")) > + (sha256 > + (base32 > + "0jwpda3q023dn3sp41n8648951i7iagfv8zzpriv7hpkjivlafg7")))) I forgot one thing: since the source will be the same as the one of 'notmuch' package, I'm going to write it like this: ;; Notmuch python bindings are now unavailable on pypi. The ;; bindings are distributed via the notmuch release tarball. (source (package-source notmuch)) Thanks again! (no need to resend the patches, I'll fix the mentioned notes)
Quoting Alex Kost (2016-08-08 04:35:12) > I forgot one thing: since the source will be the same as the one of > 'notmuch' package, I'm going to write it like this: > > ;; Notmuch python bindings are now unavailable on pypi. The > ;; bindings are distributed via the notmuch release tarball. > (source (package-source notmuch)) Neat! It also occurs to me that guix doesn't need to re-download the tarball because the /gnu/store is a local file cache---cool! > Thanks again! (no need to resend the patches, I'll fix the mentioned > notes) Excellent, much appreciated. Troy
On Sun, Aug 07, 2016 at 10:24:57PM +0000, ng0 wrote: > Troy Sankey <sankeytms@gmail.com> writes: > > 2.1.4 > > I'd also advise to upgrade git to something more recent if your distro > allows it :) I agree, unless your distro is patching this version against security bugs. There was a client and server arbitrary remote code execution bug in Git < 2.7.4: https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2324 https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-2315
From 1b98630890e543eae0dbfbf3dc38b4a26535a003 Mon Sep 17 00:00:00 2001 From: Troy Sankey <sankeytms@gmail.com> Date: Sun, 7 Aug 2016 13:21:28 -0400 Subject: [PATCH 1/3] gnu: notmuch: Update to 0.22.1. This also removes the emacs input. Quote from the notmuch NEWS file: Drop dependency on "pkg-config emacs". --- gnu/packages/mail.scm | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 28978a8..c58e5f5 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -436,14 +436,14 @@ attachments, create new maildirs, and so on.") (define-public notmuch (package (name "notmuch") - (version "0.21") + (version "0.22.1") (source (origin (method url-fetch) (uri (string-append "https://notmuchmail.org/releases/notmuch-" version ".tar.gz")) (sha256 (base32 - "1cr53rbpkcy3pvrmhbg2gq7sjpwb0c8xd7a4zhzxbiv8s7z8yvyh")))) + "0jwpda3q023dn3sp41n8648951i7iagfv8zzpriv7hpkjivlafg7")))) (build-system gnu-build-system) (arguments '(#:tests? #f ;; FIXME: 662 tests; 168 fail and 99 are skipped @@ -464,8 +464,7 @@ attachments, create new maildirs, and so on.") ("python-sphinx" ,python2-sphinx) ("bash-completion" ,bash-completion))) (inputs - `(("emacs" ,emacs) - ("glib" ,glib) + `(("glib" ,glib) ("gmime" ,gmime) ("talloc" ,talloc) ("xapian" ,xapian) -- 2.1.4