Message ID | 147063086382.16312.14483597599827932971@what |
---|---|
State | New |
Headers |
Received: (qmail 125304 invoked by uid 89); 8 Aug 2016 04:34:49 -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= 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; Mon, 08 Aug 2016 04:34:39 +0000 Received: from localhost ([::1]:54820 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <guix-devel-bounces+patchwork=sourceware.org@gnu.org>) id 1bWcGr-0007CN-55 for patchwork@sourceware.org; Mon, 08 Aug 2016 00:34:37 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:44885) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from <sankeytms@gmail.com>) id 1bWcGk-0007CB-I4 for guix-devel@gnu.org; Mon, 08 Aug 2016 00:34:32 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from <sankeytms@gmail.com>) id 1bWcGg-0004Xh-Cz for guix-devel@gnu.org; Mon, 08 Aug 2016 00:34:29 -0400 Received: from mail-qk0-x241.google.com ([2607:f8b0:400d:c09::241]:33557) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from <sankeytms@gmail.com>) id 1bWcGg-0004XN-5h for guix-devel@gnu.org; Mon, 08 Aug 2016 00:34:26 -0400 Received: by mail-qk0-x241.google.com with SMTP id x189so20073558qkd.0 for <guix-devel@gnu.org>; Sun, 07 Aug 2016 21:34:26 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:user-agent:to:references:in-reply-to:message-id :subject:date; bh=hebB2R40JHUyFt683cLo7AiJAQ8Yz+VLvQLTVUjJbIY=; b=cGyM0HtNgP3Rx3xdDq92iu+LHxDq0uA771nogD7g13QSX0NxGPz/pmidXRgNg45hVM XbNLof/e3eGYuT/li8+v+mMqNhNHMZh0GP3NaqE/CBVc3NGda/mxAPWqGUiwuYq3MlU0 4yZ/HR6jMKUvPiSEaiKj/FTqTx7fNiKuStPaAGwFmOSQVwrIJav+0P3r0q+L55PfMjSn 6oEugpHGW9z0LROJs0caBo/dnuq7bnv0Z+BgBXlLybY5KISZnfzIxQAFeSKNtmWAqFaj 1lTEP+ZOSaf5RFHa/mUKtkyLRk9RTo1FX2dHPTAQdCUAV+0Eg8VQPeyhDlYKQgelR8eL 6ZHA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:user-agent:to:references :in-reply-to:message-id:subject:date; bh=hebB2R40JHUyFt683cLo7AiJAQ8Yz+VLvQLTVUjJbIY=; b=c/ISt44JvWLaoEQSkf4Gq18MCJwAdj/VXqn/CaqtuYavE/fZGtmjGLvHj7RZrS1YQz aH01qcVuF8LBoreQGoNrgZSC85ljxT/Z1hG/mVDi31l11lVDoKOg82jbzKzW2FOnvb4K 65EEJiIvvjbxDnIIhUJHDZcw0vmtxsQRuMyVzjgLjGsfOrX0e3Lr8YL5rM9Tyoq/75sZ 0tmQdeJ7466n8v1DfPBqYkxMEuEJXKB0gybSYUj2/FWdtV4QZybtjCWtXwHkQJkvMDMU Jy/1tiaOLHM2H11yW0jGj3kMrJxa+uF/5CUCmjR83vWWs5jml6KSAucKQl8rBdNknLid eIvQ== X-Gm-Message-State: AEkooutKJutuHFwSdapvJYJ4O1fybOClbeC5HgIdGjZ7dbE6MGfAucviiSi5JkECiPVKeg== X-Received: by 10.55.42.231 with SMTP id q100mr26735415qkq.212.1470630865742; Sun, 07 Aug 2016 21:34:25 -0700 (PDT) Received: from localhost (c-98-217-8-51.hsd1.ma.comcast.net. [98.217.8.51]) by smtp.gmail.com with ESMTPSA id u57sm16598149qta.20.2016.08.07.21.34.24 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 07 Aug 2016 21:34:24 -0700 (PDT) Content-Type: multipart/mixed; boundary="===============1061515074==" MIME-Version: 1.0 From: Troy Sankey <sankeytms@gmail.com> User-Agent: alot/0.3.7 To: ng0 <ng0@we.make.ritual.n0.is>, guix-devel@gnu.org References: <147059611699.9624.567002638658964680@what> <87zioofc92.fsf@we.make.ritual.n0.is> In-Reply-To: <87zioofc92.fsf@we.make.ritual.n0.is> Message-ID: <147063086382.16312.14483597599827932971@what> Subject: Re: [PATCH] update notmuch and python bindings Date: Mon, 08 Aug 2016 00:34:23 -0400 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400d:c09::241 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. 8, 2016, 4:34 a.m. UTC
Updated patches address all comments so far except for the removal of the emacs input. Also updated the test numbers just for fun. Quoting ng0 (2016-08-07 18:24:57) > I'd also advise to upgrade git to something more recent if your distro > allows it :) Debian stable :) It's a long term project of mine to switch to GuixSD. I'm switching over one package at a time. Next is notmuch! > I'll try to test build tomorrow morning when my buildserver is up > again. release notes read interesting enough. thanks for the patches. Thanks. Troy
Comments
Troy Sankey <sankeytms@gmail.com> writes: > Updated patches address all comments so far except for the removal of > the emacs input. Also updated the test numbers just for fun. > > Quoting ng0 (2016-08-07 18:24:57) >> I'd also advise to upgrade git to something more recent if your distro >> allows it :) > > Debian stable :) It's a long term project of mine to switch to GuixSD. > I'm switching over one package at a time. Next is notmuch! Maybe git 2.9.x is in backports.. I'm just pointing this out because recently someone told me about security issues with certain versions of git. >> I'll try to test build tomorrow morning when my buildserver is up >> again. release notes read interesting enough. thanks for the patches. > > Thanks. > > Troy > From 034a4ac3b1bc85ae574fbe9f79add609cf311cc1 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 | 11 +++++------ > 1 file changed, 5 insertions(+), 6 deletions(-) > > diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm > index 28978a8..82e35fb 100644 > --- a/gnu/packages/mail.scm > +++ b/gnu/packages/mail.scm > @@ -436,18 +436,18 @@ 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 > - ;; with perl input: 50 fail and 99 are skipped > + '(#:tests? #f ; FIXME: 694 tests; 170 fail and 100 are skipped > + ; with perl input: 50 fail and 100 are skipped I think this comment should not be updated in your patch, like I wrote before someone should update the comment when either the whole file is addressed in stylistic fixes or when the tests are changed from false to true or something test related is changed. Your version bump does not do this. > #:phases (modify-phases %standard-phases > (replace 'configure > (lambda* (#:key outputs #:allow-other-keys) > @@ -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 >
ng0 <ng0@we.make.ritual.n0.is> writes: > Troy Sankey <sankeytms@gmail.com> writes: > >> Updated patches address all comments so far except for the removal of >> the emacs input. Also updated the test numbers just for fun. >> >> Quoting ng0 (2016-08-07 18:24:57) >>> I'd also advise to upgrade git to something more recent if your distro >>> allows it :) >> >> Debian stable :) It's a long term project of mine to switch to GuixSD. >> I'm switching over one package at a time. Next is notmuch! > > Maybe git 2.9.x is in backports.. I'm just pointing this out because > recently someone told me about security issues with certain versions of > git. > >>> I'll try to test build tomorrow morning when my buildserver is up >>> again. release notes read interesting enough. thanks for the patches. >> >> Thanks. >> >> Troy The patches build, the practical part I can not review, reading the CHANGELOG I assume it to work this way, but someone else should review this. >> From 034a4ac3b1bc85ae574fbe9f79add609cf311cc1 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". I don't feel good about this commit message, I would rather write: gnu: notmuch: Update to 0.22.1. * gnu/packages/mail.scm (notmuch): Update to 0.22.1. (notmuch)[inputs]: Remove emacs. Or something like this. What do you think?
> From 0a134eaf40aa9dd6fa5e2e24e3d226203a03da73 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 82e35fb..1634d86 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")))) > + (build-system python-build-system) > + (inputs `(("notmuch" ,notmuch))) > + (arguments > + `(#:tests? #f ; 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"))) I'm going to write it like this: (add-after 'unpack 'enter-python-dir (lambda _ (chdir "bindings/python") #t)) Although the phase succeeds without this trailing #t, but it is more accurate to use it. The thing is: if a build phase succeeds, it should return non-false value while the value of 'chdir' is unspecified. > + ;; 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 I will commit this patchset in a couple of days if there will be no other comments, thanks! And thanks to ng0 for commenting!
Quoting ng0 (2016-08-08 03:05:46) > > - '(#:tests? #f ;; FIXME: 662 tests; 168 fail and 99 are skipped > > - ;; with perl input: 50 fail and 99 are skipped > > + '(#:tests? #f ; FIXME: 694 tests; 170 fail and 100 are skipped > > + ; with perl input: 50 fail and 100 are skipped > > I think this comment should not be updated in your patch, like I wrote > before someone should update the comment when either the whole file is > addressed in stylistic fixes or when the tests are changed from false to > true or something test related is changed. Your version bump does not do > this. This also changes the numbers. I assume these failing tests won't be fixed in the immediate term, so I figured it would be best to at least keep the comment accurate. Troy
> I will commit this patchset in a couple of days if there will be no > other comments, thanks! Committed as 25a78db, 4b6909b and caa6fc8, thanks again.
From 034a4ac3b1bc85ae574fbe9f79add609cf311cc1 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 | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm index 28978a8..82e35fb 100644 --- a/gnu/packages/mail.scm +++ b/gnu/packages/mail.scm @@ -436,18 +436,18 @@ 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 - ;; with perl input: 50 fail and 99 are skipped + '(#:tests? #f ; FIXME: 694 tests; 170 fail and 100 are skipped + ; with perl input: 50 fail and 100 are skipped #:phases (modify-phases %standard-phases (replace 'configure (lambda* (#:key outputs #:allow-other-keys) @@ -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