GNU bug report logs - #70390
[PATCH 0/2] Add s-exp support to Notmuch

Previous Next

Package: guix-patches;

Reported by: Fabio Natali <me <at> fabionatali.com>

Date: Mon, 15 Apr 2024 07:24:04 UTC

Severity: normal

Tags: patch

Merged with 66547

Done: Christopher Baines <mail <at> cbaines.net>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 70390 in the body.
You can then email your comments to 70390 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to guix-patches <at> gnu.org:
bug#70390; Package guix-patches. (Mon, 15 Apr 2024 07:24:05 GMT) Full text and rfc822 format available.

Acknowledgement sent to Fabio Natali <me <at> fabionatali.com>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 15 Apr 2024 07:24:05 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Fabio Natali <me <at> fabionatali.com>
To: guix-patches <at> gnu.org
Cc: Fabio Natali <me <at> fabionatali.com>
Subject: [PATCH 0/2] Add s-exp support to Notmuch
Date: Mon, 15 Apr 2024 08:19:10 +0100
Dear All,

On 2022-04-25⁰, support for S-expression-based queries was added to
Notmuch (version 0.36). This is based on a C/C++ library called sfsexp¹.

You can check whether your Notmuch was built with s-exp support with
this command²:

,----
| notmuch config get built_with.sexp_queries
`----

The Notmuch version currently packaged in Guix does not support s-exp
queries.

This patch micro-series is to:

- Add sfsexp¹.
- Update Notmuch to make use of sfsexp and to allow S-expression-based queries.

Thanks, best wishes, Fabio.


⁰ https://git.notmuchmail.org/git?p=notmuch;a=blob;f=NEWS;h=cf8107f26362431549dc410cb8379de5c10221f1;hb=HEAD#l165
¹ https://github.com/mjsottile/sfsexp
² https://notmuchmail.org/doc/latest/man7/notmuch-sexp-queries.html


Fabio Natali (2):
  gnu: Add sfsexp.
  gnu: notmuch: Add sfsexp dependency.

 gnu/packages/c.scm    | 22 ++++++++++++++++++++++
 gnu/packages/mail.scm |  4 +++-
 2 files changed, 25 insertions(+), 1 deletion(-)


base-commit: e5dda412c2e28fb65a549824f492895e72c33813
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70390; Package guix-patches. (Mon, 15 Apr 2024 07:27:02 GMT) Full text and rfc822 format available.

Message #8 received at 70390 <at> debbugs.gnu.org (full text, mbox):

From: Fabio Natali <me <at> fabionatali.com>
To: 70390 <at> debbugs.gnu.org
Cc: Fabio Natali <me <at> fabionatali.com>
Subject: [PATCH 1/2] gnu: Add sfsexp.
Date: Mon, 15 Apr 2024 08:25:32 +0100
* gnu/packages/c.scm (sfsexp): New variable.

Change-Id: Iabfbe10b4ad6134ae886a3d26487f881107b559c
---
 gnu/packages/c.scm | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index c004aade73..ef8f9e473b 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -628,6 +628,28 @@ (define-public packcc
 any other grammar rules.")
     (license license:expat)))
 
+(define-public sfsexp
+  (package
+    (name "sfsexp")
+    (version "1.4.1")
+    (home-page "https://github.com/mjsottile/sfsexp")
+    (source
+     (origin
+       (method git-fetch)
+       (uri (git-reference
+             (url home-page)
+             (commit (string-append "v" version))))
+       (file-name (git-file-name name version))
+       (sha256
+        (base32 "03srnpc7p1j7ygd0wx9gybcxhqm50kjzkybh1xs75nwz97q3y2dq"))))
+    (build-system gnu-build-system)
+    (native-inputs (list autoconf automake libtool))
+    (synopsis "Symbolic expression library for C and C++")
+    (description
+     "sfsexp is a C/C++ library for the manipulation (read, parse, modify, and create)
+of symbolic expressions.")
+    (license license:lgpl2.1+)))
+
 (define-public sparse
   (package
     (name "sparse")
-- 
2.41.0





Information forwarded to guix-patches <at> gnu.org:
bug#70390; Package guix-patches. (Mon, 15 Apr 2024 07:28:02 GMT) Full text and rfc822 format available.

Message #11 received at 70390 <at> debbugs.gnu.org (full text, mbox):

From: Fabio Natali <me <at> fabionatali.com>
To: 70390 <at> debbugs.gnu.org
Cc: Fabio Natali <me <at> fabionatali.com>
Subject: [PATCH 2/2] gnu: notmuch: Add sfsexp dependency.
Date: Mon, 15 Apr 2024 08:25:33 +0100
sfsexp is a C/C++ library for the manipulation (read, parse, modify, and create)
of symbolic expressions. In an environment where sfsexp is available, Notmuch
will compile with support for a S-expression-based query format. This commit is
to add sfsexp as a Notmuch dependency and therefore to add S-exp support.

Change-Id: Ic3b4a30b2672ad690d66b283e9bdc8e2197f97a7
---
 gnu/packages/mail.scm | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
index e0fbd0a5ff..2b5561f706 100644
--- a/gnu/packages/mail.scm
+++ b/gnu/packages/mail.scm
@@ -81,6 +81,7 @@ (define-module (gnu packages mail)
   #:use-module (gnu packages bash)
   #:use-module (gnu packages bison)
   #:use-module (gnu packages boost)
+  #:use-module (gnu packages c)
   #:use-module (gnu packages calendar)
   #:use-module (gnu packages check)
   #:use-module (gnu packages compression)
@@ -1414,6 +1415,7 @@ (define-public notmuch
                   (("/bin/sh") sh))))))))
     (native-inputs
      (list bash-completion
+           git
            pkg-config
            python
            python-docutils
@@ -1427,7 +1429,7 @@ (define-public notmuch
            man-db
            perl))
     (inputs
-     (list glib gmime talloc xapian zlib))
+     (list glib gmime sfsexp talloc xapian zlib))
     (home-page "https://notmuchmail.org/")
     (synopsis "Thread-based email index, search, and tagging")
     (description
-- 
2.41.0





Merged 66547 70390. Request was from Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es> to control <at> debbugs.gnu.org. (Mon, 15 Apr 2024 18:57:02 GMT) Full text and rfc822 format available.

Information forwarded to guix-patches <at> gnu.org:
bug#70390; Package guix-patches. (Mon, 13 May 2024 08:34:01 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: Fabio Natali via Guix-patches via <guix-patches <at> gnu.org>
Subject: Re: [bug#70390] [PATCH 2/2] gnu: notmuch: Add sfsexp dependency.
Date: Mon, 13 May 2024 10:32:41 +0200
On 2024-04-15 08:25, Fabio Natali via Guix-patches via wrote:

> sfsexp is a C/C++ library for the manipulation (read, parse, modify, and create)
> of symbolic expressions. In an environment where sfsexp is available, Notmuch
> will compile with support for a S-expression-based query format. This commit is
> to add sfsexp as a Notmuch dependency and therefore to add S-exp support.
>
> Change-Id: Ic3b4a30b2672ad690d66b283e9bdc8e2197f97a7
> ---
>  gnu/packages/mail.scm | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
> index e0fbd0a5ff..2b5561f706 100644
> --- a/gnu/packages/mail.scm
> +++ b/gnu/packages/mail.scm
> @@ -81,6 +81,7 @@ (define-module (gnu packages mail)
>    #:use-module (gnu packages bash)
>    #:use-module (gnu packages bison)
>    #:use-module (gnu packages boost)
> +  #:use-module (gnu packages c)
>    #:use-module (gnu packages calendar)
>    #:use-module (gnu packages check)
>    #:use-module (gnu packages compression)
> @@ -1414,6 +1415,7 @@ (define-public notmuch
>                    (("/bin/sh") sh))))))))
>      (native-inputs
>       (list bash-completion
> +           git

You probably want to use git-minimal here. I've checked that it
builds. Otherwise LGTM.

>             pkg-config
>             python
>             python-docutils
> @@ -1427,7 +1429,7 @@ (define-public notmuch
>             man-db
>             perl))
>      (inputs
> -     (list glib gmime talloc xapian zlib))
> +     (list glib gmime sfsexp talloc xapian zlib))
>      (home-page "https://notmuchmail.org/")
>      (synopsis "Thread-based email index, search, and tagging")
>      (description

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#70390; Package guix-patches. (Mon, 13 May 2024 08:39:02 GMT) Full text and rfc822 format available.

Message #19 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: Fabio Natali via Guix-patches via <guix-patches <at> gnu.org>
Subject: Re: [bug#70390] [PATCH 2/2] gnu: notmuch: Add sfsexp dependency.
Date: Mon, 13 May 2024 10:38:36 +0200
On 2024-04-15 08:25, Fabio Natali via Guix-patches via wrote:

> sfsexp is a C/C++ library for the manipulation (read, parse, modify, and create)
> of symbolic expressions. In an environment where sfsexp is available, Notmuch
> will compile with support for a S-expression-based query format. This commit is
> to add sfsexp as a Notmuch dependency and therefore to add S-exp support.
>
> Change-Id: Ic3b4a30b2672ad690d66b283e9bdc8e2197f97a7
> ---
>  gnu/packages/mail.scm | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/gnu/packages/mail.scm b/gnu/packages/mail.scm
> index e0fbd0a5ff..2b5561f706 100644
> --- a/gnu/packages/mail.scm
> +++ b/gnu/packages/mail.scm
> @@ -81,6 +81,7 @@ (define-module (gnu packages mail)
>    #:use-module (gnu packages bash)
>    #:use-module (gnu packages bison)
>    #:use-module (gnu packages boost)
> +  #:use-module (gnu packages c)
>    #:use-module (gnu packages calendar)
>    #:use-module (gnu packages check)
>    #:use-module (gnu packages compression)
> @@ -1414,6 +1415,7 @@ (define-public notmuch
>                    (("/bin/sh") sh))))))))
>      (native-inputs
>       (list bash-completion
> +           git

Oh and it should also probably be put a few lines down where it's
indicated inputs for tests.

>             pkg-config
>             python
>             python-docutils
> @@ -1427,7 +1429,7 @@ (define-public notmuch
>             man-db
>             perl))
>      (inputs
> -     (list glib gmime talloc xapian zlib))
> +     (list glib gmime sfsexp talloc xapian zlib))
>      (home-page "https://notmuchmail.org/")
>      (synopsis "Thread-based email index, search, and tagging")
>      (description

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#70390; Package guix-patches. (Mon, 13 May 2024 08:43:01 GMT) Full text and rfc822 format available.

Message #22 received at 70390 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: control <at> debbugs.gnu.org,70390 <at> debbugs.gnu.org
Subject: QA review for 70390
Date: Mon, 13 May 2024 10:42:24 +0200
user guix
usertag 70390 + reviewed-looks-good
thanks

Guix QA review form submission:

git should be rewritten to git-minimal and inserted a few lines down instead. 
Otherwise LGTM.

Items marked as checked: Lint warnings, Package builds, Commit messages, New package licenses, New package tests, New package synopsis and descriptions

-- 
Best regards,
Nicolas Graves




Information forwarded to guix-patches <at> gnu.org:
bug#70390; Package guix-patches. (Mon, 13 May 2024 08:48:01 GMT) Full text and rfc822 format available.

Message #25 received at 70390 <at> debbugs.gnu.org (full text, mbox):

From: Nicolas Graves <ngraves <at> ngraves.fr>
To: 70390 <at> debbugs.gnu.org
Subject: Re: QA review for 70390
Date: Mon, 13 May 2024 10:47:40 +0200
On 2024-05-13 10:42, Nicolas Graves wrote:

> user guix
> usertag 70390 + reviewed-looks-good
> thanks
>
> Guix QA review form submission:
>
> git should be rewritten to git-minimal and inserted a few lines down
> instead.

And probably git-minimal/pinned, see https://issues.guix.gnu.org/70656
for instance.

> Otherwise LGTM.
>
> Items marked as checked: Lint warnings, Package builds, Commit messages, New package licenses, New package tests, New package synopsis and descriptions

-- 
Best regards,
Nicolas Graves




Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Mon, 13 May 2024 20:45:01 GMT) Full text and rfc822 format available.

Notification sent to Fabio Natali <me <at> fabionatali.com>:
bug acknowledged by developer. (Mon, 13 May 2024 20:45:02 GMT) Full text and rfc822 format available.

Message #30 received at 70390-done <at> debbugs.gnu.org (full text, mbox):

From: Christopher Baines <mail <at> cbaines.net>
To: Fabio Natali <me <at> fabionatali.com>
Cc: 70390-done <at> debbugs.gnu.org, Nicolas Graves <ngraves <at> ngraves.fr>
Subject: Re: [bug#70390] QA review for 70390
Date: Mon, 13 May 2024 21:43:33 +0100
[Message part 1 (text/plain, inline)]
Nicolas Graves via Guix-patches via <guix-patches <at> gnu.org> writes:

> On 2024-05-13 10:42, Nicolas Graves wrote:
>
>> user guix
>> usertag 70390 + reviewed-looks-good
>> thanks
>>
>> Guix QA review form submission:
>>
>> git should be rewritten to git-minimal and inserted a few lines down
>> instead.
>
> And probably git-minimal/pinned, see https://issues.guix.gnu.org/70656
> for instance.
>
>> Otherwise LGTM.
>>
>> Items marked as checked: Lint warnings, Package builds, Commit messages, New package licenses, New package tests, New package synopsis and descriptions

Thanks both, I've tweaked the git input and pushed these patches to
master as b1de64812a0a9e30507fb1ea44611779149c32cc.

Chris
[signature.asc (application/pgp-signature, inline)]

Reply sent to Christopher Baines <mail <at> cbaines.net>:
You have taken responsibility. (Mon, 13 May 2024 20:45:02 GMT) Full text and rfc822 format available.

Notification sent to Sergio Pastor Pérez <sergio.pastorperez <at> outlook.es>:
bug acknowledged by developer. (Mon, 13 May 2024 20:45:02 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Wed, 12 Jun 2024 11:24:14 GMT) Full text and rfc822 format available.

This bug report was last modified 1 year and 66 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.