From patchwork Mon Oct 4 21:52:32 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Aleksandr Vityazev X-Patchwork-Id: 33603 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 812AC27BBE3; Mon, 4 Oct 2021 22:53:28 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS,T_DKIM_INVALID, URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 3AED227BBE1 for ; Mon, 4 Oct 2021 22:53:28 +0100 (BST) Received: from localhost ([::1]:43454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXVtn-0001oi-7h for patchwork@mira.cbaines.net; Mon, 04 Oct 2021 17:53:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34812) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXVtO-0001lD-TK for guix-patches@gnu.org; Mon, 04 Oct 2021 17:53:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:55213) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mXVtO-0002e6-Gi for guix-patches@gnu.org; Mon, 04 Oct 2021 17:53:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mXVtO-0004Zx-9E for guix-patches@gnu.org; Mon, 04 Oct 2021 17:53:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#51018] [PATCH] gnu: Add plocate. Resent-From: Alexandr Vityazev Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 04 Oct 2021 21:53:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 51018 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 51018@debbugs.gnu.org X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.163338434517548 (code B ref -1); Mon, 04 Oct 2021 21:53:02 +0000 Received: (at submit) by debbugs.gnu.org; 4 Oct 2021 21:52:25 +0000 Received: from localhost ([127.0.0.1]:38526 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXVsn-0004Yy-IF for submit@debbugs.gnu.org; Mon, 04 Oct 2021 17:52:25 -0400 Received: from lists.gnu.org ([209.51.188.17]:46230) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mXVsm-0004Yr-H2 for submit@debbugs.gnu.org; Mon, 04 Oct 2021 17:52:25 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34710) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXVsl-0001Na-VB for guix-patches@gnu.org; Mon, 04 Oct 2021 17:52:24 -0400 Received: from mout02.posteo.de ([185.67.36.66]:46089) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mXVsg-00020Y-Tf for guix-patches@gnu.org; Mon, 04 Oct 2021 17:52:23 -0400 Received: from submission (posteo.de [89.146.220.130]) by mout02.posteo.de (Postfix) with ESMTPS id F2FD3240101 for ; Mon, 4 Oct 2021 23:52:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.org; s=2017; t=1633384336; bh=kJQv+veRGe0euchGmllM0TEBvJim7pGtgGNMvKXIzWA=; h=From:To:Subject:Date:From; b=i5VSHit6X4SAKhV4cVNKwBkS1rorlv27CfUHheevIt+Ww3TCzsP0xNWCjMW/mEFOs 16/yIUIxQLUbqfTf5ixZgPF8tBuFlYitg7Y5l88V4beA/red6Jq0li0Nlt5a2FpaYI FqP0OHASSNwqks+QxOzEfMtrEAVSvNgwSG5EMg1IAW1Z25M6rMRl1FYun9elgNo3ql fNrvGydNX5AJYNIuD+bGBrwP66+kx6EKK1JokLYYXL6UYVJZ6tX/giuzYPUCmKQuy6 nhXLH0/nm024a5cGaj+JO+PsjLh0ESh7YC5tZYfhpfawBqTqAhG4r78BZhsNd4Hlqh Z96ruYWjH2UCA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4HNZFC0tZpz6tm6 for ; Mon, 4 Oct 2021 23:52:14 +0200 (CEST) From: Alexandr Vityazev Date: Mon, 04 Oct 2021 21:52:32 +0000 Message-ID: <87o884zcdb.fsf@posteo.org> MIME-Version: 1.0 Received-SPF: pass client-ip=185.67.36.66; envelope-from=avityazev@posteo.org; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches * 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 ;;; Copyright © 2020 Hartmut Goebel ;;; Copyright © 2021 Vinicius Monego +;;; Copyright © 2021 Alexandr Vityazev ;;; ;;; 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")