From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id CGy4LdR3W2FMMgEAgWs5BA (envelope-from ) for ; Mon, 04 Oct 2021 23:53:24 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id aHRPKdR3W2GrHAAAbx9fmQ (envelope-from ) for ; Mon, 04 Oct 2021 21:53:24 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 2161035FAC for ; Mon, 4 Oct 2021 23:53:24 +0200 (CEST) Received: from localhost ([::1]:43454 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mXVtj-0001oi-8P for larch@yhetil.org; Mon, 04 Oct 2021 17:53:23 -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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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+larch=yhetil.org@gnu.org Sender: "Guix-patches" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1633384404; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=baRc8nYCfN3Nhop576NEj8KMUN6bkYxkKyypTZJjQ1Q=; b=ttRs2DeKwFDElU1dWGtqnuy8RSS64q4cw3l1KbP939XDnAE+ktudwNvKpeS5HFidiKr8nR glrJQs66r2I5qStd0bAyikNHqL9p2sVHpaRmfmPhRO26jel58jWDLdIqH/YFEtjdjGTS/+ xTcZ9JK2TmsGi1SKaiO9qV3vyqKeCojMcbXwoO6opgS2k2D+TzYIs4utHibEIEZU/lDK9U A7836b2ONNg43aeFwyQK2x3aUcBXndrdfbNWQaXonmAwbOhYvBI6Q99Ormpqg1Nuj3PhEN h2jmGHZU2slM2l7g0dMSs3TzchXv45uxV4zfMO2I0sddcBRE67lnPbG/HRf6uw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1633384404; a=rsa-sha256; cv=none; b=kyH2b0JqxiOcnsGNZMq7mc0Jtal2iAkEWQeW144hCoHZ6sVdRVIs3DUMSeRDxqPwMUDOCU +kXN62pAHuxRMVUFtCmpqlpnpLEPOvuiO15s2y74VUIj8QK/UxWFdzrnVcOp/GzOtzjTCK Yw97EgV04CXoPhvzAXgmvt9pYd2jnlBXj7if5F5XohAOynmFrkax7mtBcgTRJSQ32nLYtN n7RyQP+lzlhae0l4jBU+9YZ2Dc4z2/oUk4Dkd6urnU37CuaQj1w1vuxpEr4x003jeJUGMR 4NNjOKaYRKh/JXDdDx1ng3hNrqdPeDq4MVQTaI73aC1dWYOJSNQ2Z4YZJa1jIQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.org header.s=2017 header.b=i5VSHit6; spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Spam-Score: -2.11 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=posteo.org header.s=2017 header.b=i5VSHit6; dmarc=fail reason="SPF not aligned (strict)" header.from=posteo.org (policy=none); spf=pass (aspmx1.migadu.com: domain of guix-patches-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-patches-bounces@gnu.org X-Migadu-Queue-Id: 2161035FAC X-Spam-Score: -2.11 X-Migadu-Scanner: scn1.migadu.com X-TUID: QxtT2yefiQ7G * 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 =C2=A9 2018 Adam Massmann ;;; Copyright =C2=A9 2020 Hartmut Goebel ;;; Copyright =C2=A9 2021 Vinicius Monego +;;; Copyright =C2=A9 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)) =20 (define-public xapian (package @@ -333,6 +336,37 @@ with slocate, and attempts to be compatible to GNU loc= ate when it does not conflict with slocate compatibility.") (license gpl2))) =20 +(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=3D" (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") --=20 2.33.0 --=20 Alexandr Vityazev