GNU bug report logs - #62946
recoll package does not provide recollq which Emacs needs

Previous Next

Package: guix;

Reported by: Kyle Andrews <kyle <at> posteo.net>

Date: Wed, 19 Apr 2023 05:58:01 UTC

Severity: normal

Done: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>

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 62946 in the body.
You can then email your comments to 62946 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 bug-guix <at> gnu.org:
bug#62946; Package guix. (Wed, 19 Apr 2023 05:58:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Kyle Andrews <kyle <at> posteo.net>:
New bug report received and forwarded. Copy sent to bug-guix <at> gnu.org. (Wed, 19 Apr 2023 05:58:02 GMT) Full text and rfc822 format available.

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

From: Kyle Andrews <kyle <at> posteo.net>
To: bug-guix <bug-guix <at> gnu.org>
Subject: recoll package does not provide recollq which Emacs needs
Date: Wed, 19 Apr 2023 04:52:20 +0000
Dear Guix,

I am experimenting with using Recoll to help me discover topical files on my computer. I'm finding it very helpful, but I would rather eschew the QT interface in favor of sticking with Emacs.

There is an existing package which integrates with recoll interactively through "consult" on ELPA. Unfortunately, it depends on recoll providing an executable called recollq. Yet, recollq is not currently provided the recoll package in Guix. However, strangely the recollq man page is. The HTML documentation in the source tarball suggests it is not always built, but being unfamiliar with these complex auto-configured Makefile-based workflow I couldn't find a way to enable it.  

While I have found that `recoll -t' lets me make plain text queries from a database at a shell prompt, I was unsuccessful substituting `recollq' with `recoll -t' in the Emacs extension package since recollq apparently needed to be a file on the path. It would seem to me a lot less janky to just include that file. I included what I tried in the package recipe for emacs-consult-recoll below.

Thanks,
Kyle

P.S. - Here is the package recipe I made for emacs-consult-recoll based on the ELPA importer and reading the consult-recoll web page to simplify the description. 

```
(use-modules
 (gnu packages)
 (guix packages)
 (guix download)
 (guix build utils)
 ((guix licenses) #:prefix license:)
 (guix build-system emacs)
 (gnu packages emacs-xyz))

(define-public emacs-consult-recoll
  (package
   (name "emacs-consult-recoll")
   (version "0.8")
   (source (origin
            (method url-fetch)
            (uri (string-append
                  "https://elpa.gnu.org/packages/consult-recoll-" version
                  ".tar"))
	    ;; (modules '((guix build utils)))
            ;; (snippet
	    ;;   (substitute* "consult-recoll.el"
            ;;     (("recollq") "recoll -t -n 0")))
            (sha256
             (base32
              "02vg1rr2fkcqrrivqgggdjdq0ywvlyzazwq1xd02yah3j4sbv4ag"))))
   (build-system emacs-build-system)
   (propagated-inputs (list emacs-consult))
   (home-page "https://codeberg.org/jao/consult-recoll")
   (synopsis "Recoll queries using a consult interface in Emacs")
   (description
    " This package provides an emacs interface to perform recoll queries,
and display its results, via consult. It is also recommened that you
use a a package for vertical display of completions that works well
with consult, such as vertico.

Recoll is a local search engine that knows how to index a wide variety
of file formats, including PDFs, org and other text files and
emails. It also offers a sophisticated query language, and, for some
document kinds, snippets in the the found documents actually matching
the query at hand.")
   (license license:gpl3)))
```





Information forwarded to bug-guix <at> gnu.org:
bug#62946; Package guix. (Thu, 20 Apr 2023 15:37:01 GMT) Full text and rfc822 format available.

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

From: kiasoc5 <kiasoc5 <at> disroot.org>
To: 62946 <at> debbugs.gnu.org
Subject: Re: recoll package does not provide recollq which Emacs needs
Date: Thu, 20 Apr 2023 11:36:35 -0400
I updated recoll to the latest version and added the recollq binary in 
#62971. Can you see if that works?




Reply sent to Maxim Cournoyer <maxim.cournoyer <at> gmail.com>:
You have taken responsibility. (Wed, 04 Oct 2023 02:24:02 GMT) Full text and rfc822 format available.

Notification sent to Kyle Andrews <kyle <at> posteo.net>:
bug acknowledged by developer. (Wed, 04 Oct 2023 02:24:02 GMT) Full text and rfc822 format available.

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

From: Maxim Cournoyer <maxim.cournoyer <at> gmail.com>
To: kiasoc5 <kiasoc5 <at> disroot.org>
Cc: 62946-done <at> debbugs.gnu.org
Subject: Re: bug#62946: recoll package does not provide recollq which Emacs
 needs
Date: Tue, 03 Oct 2023 22:22:50 -0400
kiasoc5 <kiasoc5 <at> disroot.org> writes:

> I updated recoll to the latest version and added the recollq binary in
> #62971. Can you see if that works?

I'm happy to assume it does; the updated package has a 'recollq' command
under bin.

Closing!

-- 
Thanks,
Maxim




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

This bug report was last modified 177 days ago.

Previous Next


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