GNU bug report logs - #51018
[PATCH] gnu: Add plocate.

Previous Next

Package: guix-patches;

Reported by: Alexandr Vityazev <avityazev <at> posteo.org>

Date: Mon, 4 Oct 2021 21:53:02 UTC

Severity: normal

Tags: patch

Done: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>

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 51018 in the body.
You can then email your comments to 51018 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#51018; Package guix-patches. (Mon, 04 Oct 2021 21:53:02 GMT) Full text and rfc822 format available.

Acknowledgement sent to Alexandr Vityazev <avityazev <at> posteo.org>:
New bug report received and forwarded. Copy sent to guix-patches <at> gnu.org. (Mon, 04 Oct 2021 21:53:02 GMT) Full text and rfc822 format available.

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

From: Alexandr Vityazev <avityazev <at> posteo.org>
To: guix-patches <at> gnu.org
Subject: [PATCH] gnu: Add plocate.
Date: Mon, 04 Oct 2021 21:52:32 +0000
* gnu/packages/search.scm (plocate): New variable.

Add the required imports from (guix build-system meson) and
(gnu packages pkg-config).
---
 gnu/packages/search.scm | 36 +++++++++++++++++++++++++++++++++++-
 1 file changed, 35 insertions(+), 1 deletion(-)

diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm
index 44d5b631ca..cd44f71058 100644
--- a/gnu/packages/search.scm
+++ b/gnu/packages/search.scm
@@ -7,6 +7,7 @@
 ;;; Copyright © 2018 Adam Massmann <massmannak <at> gmail.com>
 ;;; Copyright © 2020 Hartmut Goebel <h.goebel <at> crazy-compilers.com>
 ;;; Copyright © 2021 Vinicius Monego <monego <at> posteo.net>
+;;; Copyright © 2021 Alexandr Vityazev <avityazev <at> posteo.org>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -33,6 +34,7 @@
   #:use-module (guix build-system gnu)
   #:use-module (guix build-system perl)
   #:use-module (guix build-system python)
+  #:use-module (guix build-system meson)
   #:use-module (gnu packages)
   #:use-module (gnu packages compression)
   #:use-module (gnu packages check)
@@ -51,7 +53,8 @@
   #:use-module (gnu packages time)
   #:use-module (gnu packages web)
   #:use-module (gnu packages xdisorg)
-  #:use-module (gnu packages xml))
+  #:use-module (gnu packages xml)
+  #:use-module (gnu packages pkg-config))
 
 (define-public xapian
   (package
@@ -333,6 +336,37 @@ with slocate, and attempts to be compatible to GNU locate when it does not
 conflict with slocate compatibility.")
     (license gpl2)))
 
+(define-public plocate
+  (package
+    (name "plocate")
+    (version "1.1.11")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append
+             "https://plocate.sesse.net/download/plocate-"
+             version ".tar.gz"))
+       (sha256
+        (base32
+         "0kwfp3hwf9dbakf3h378qrhl0jd1spxxrs4snmgb5jsbdijwd777"))))
+    (build-system meson-build-system)
+    (arguments
+     `(#:configure-flags
+       (list
+        (string-append
+         "--sharedstatedir=" (assoc-ref %outputs "out") "/var"))))
+    (inputs
+     `(("zstd" ,zstd "lib")
+       ("liburing" ,liburing)))
+    (native-inputs
+     `(("pkg-config" ,pkg-config)))
+    (home-page "https://plocate.sesse.net/")
+    (synopsis "Much faster locate")
+    (description "Plocate is a @code{locate} based on posting lists,
+completely replacing @code{mlocate} with a much faster and smaller index.
+It is suitable as a default locate on your system.")
+    (license gpl2)))
+
 (define-public swish-e
   (package
     (name "swish-e")
-- 
2.33.0



-- 

Alexandr Vityazev




Reply sent to Nicolas Goaziou <mail <at> nicolasgoaziou.fr>:
You have taken responsibility. (Fri, 08 Oct 2021 10:09:01 GMT) Full text and rfc822 format available.

Notification sent to Alexandr Vityazev <avityazev <at> posteo.org>:
bug acknowledged by developer. (Fri, 08 Oct 2021 10:09:02 GMT) Full text and rfc822 format available.

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

From: Nicolas Goaziou <mail <at> nicolasgoaziou.fr>
To: Alexandr Vityazev <avityazev <at> posteo.org>
Cc: 51018-done <at> debbugs.gnu.org
Subject: Re: [bug#51018] [PATCH] gnu: Add plocate.
Date: Fri, 08 Oct 2021 12:07:58 +0200
Hello,

Alexandr Vityazev <avityazev <at> posteo.org> writes:

> * gnu/packages/search.scm (plocate): New variable.

Applied. Thank you.

Regards,
-- 
Nicolas Goaziou




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

This bug report was last modified 2 years and 171 days ago.

Previous Next


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