From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp12.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id iNUnAqr+7WLROAAAbAwnHQ (envelope-from ) for ; Sat, 06 Aug 2022 07:39:54 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp12.migadu.com with LMTPS id iMoUAqr+7WLkJAAAauVa8A (envelope-from ) for ; Sat, 06 Aug 2022 07:39:54 +0200 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 B2A1DFBF0 for ; Sat, 6 Aug 2022 07:39:53 +0200 (CEST) Received: from localhost ([::1]:58588 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oKCXQ-0001Wk-Rh for larch@yhetil.org; Sat, 06 Aug 2022 01:39:52 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41676) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oKCWc-0001VQ-Nl for guix-patches@gnu.org; Sat, 06 Aug 2022 01:39:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:42965) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oKCWc-0004L9-EY for guix-patches@gnu.org; Sat, 06 Aug 2022 01:39:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oKCWc-0002ad-B3 for guix-patches@gnu.org; Sat, 06 Aug 2022 01:39:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56995] [PATCH 2/2] gnu: ugrep: Use gexps. Resent-From: kiasoc5 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Sat, 06 Aug 2022 05:39:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56995 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56995@debbugs.gnu.org Cc: kiasoc5 Received: via spool by 56995-submit@debbugs.gnu.org id=B56995.16597642969885 (code B ref 56995); Sat, 06 Aug 2022 05:39:02 +0000 Received: (at 56995) by debbugs.gnu.org; 6 Aug 2022 05:38:16 +0000 Received: from localhost ([127.0.0.1]:60946 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKCVs-0002ZN-F6 for submit@debbugs.gnu.org; Sat, 06 Aug 2022 01:38:16 -0400 Received: from knopi.disroot.org ([178.21.23.139]:47218) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oKCVq-0002ZF-Bi for 56995@debbugs.gnu.org; Sat, 06 Aug 2022 01:38:14 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id B219440DCB; Sat, 6 Aug 2022 07:38:13 +0200 (CEST) X-Virus-Scanned: SPAM Filter at disroot.org Received: from knopi.disroot.org ([127.0.0.1]) by localhost (disroot.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id zXYI7Lryiir9; Sat, 6 Aug 2022 07:38:12 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659764292; bh=YhYeYTpKQET9FgBk+5CU0YioHDLE1DekQu54PwGWevI=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=JK9TDQohREqlbfY0NunNlxKssRWAvIlYPv/E6Kt5s+ExA9CL4fIrLj3dOE82+nkAG rhSAze23Ed/yfHwm/mu5bEd6Qrlubsg6Ng05qPTEiRuqEMGPRP7EpnjwNWcz6CYbEz gnt4T1LRRXhlxEcmuXu2eC3vNww818k5uRI4Z5+epgF9uMmoL6RvqNYIhRc5XEzdUr rM2mjWrP/97lSj9053W8MaRomDU+Ds2Q6k/YVMqZwB8Kmn4t1UD8PFxdOGXgOX+n1P nuCF3W2yKOdNH86mfScVvtl2XePisc1qOudARs5adXSp8f4bPUlJmrE0VJku1Kk7Hu VEiKzpz3vSwNQ== Date: Sat, 6 Aug 2022 01:37:52 -0400 Message-Id: <20220806053750.184243-2-kiasoc5@disroot.org> In-Reply-To: <20220806053750.184243-1-kiasoc5@disroot.org> References: <20220806053750.184243-1-kiasoc5@disroot.org> Mime-Version: 1.0 Content-Transfer-Encoding: 8bit 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" Reply-to: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches From: kiasoc5 via Guix-patches via X-Migadu-Flow: FLOW_IN X-Migadu-To: larch@yhetil.org X-Migadu-Country: US ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1659764393; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding:resent-cc: resent-from:resent-sender:resent-message-id:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lm++qgmYfxd6jVjkzeK6Jjz/Xicf4oTJaQRrV1BgBq0=; b=JkLp3/i+kRU81Z31ciOw1DE1lZvPZpZBGdSdz3e/I475TFar+VrbHRE9cn7eBT4WjVuh69 SqdP8rk96n7Uh7Ja01UkRAjwz4Ja8jsaSX/Kx0ogm44/0CVGA5nKMit0cp499RlDmZ4U39 58md9N7lpiQNJBdnTN+vp5bi3DoUJXFZ5VQXJGv3StPgPgDnW9PtCVlW6yMnvaDMGjKd2P tz8snNmSIbq5wwhgs1I/ndzPn+zcT278EI8+UlAs38Wo5yOsyX92XRt3aXRYHyyuVVA34V bk7YetosemMqCo4a5BNoGf9FSeKhn/5+hUKnVQ1PsXpC6iORthHHZ7hRZV4QPg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659764393; a=rsa-sha256; cv=none; b=PLrgseIbePUXUP+nn6w1M13GnAH5DOnRVTEhqBDO6FZbL8kH5CmVoZ6iMtHVav6JcXt9aD AFsJBRMrJEa7KV13//9cJAhYN7jiFvjqXmQGVyHhNMZtCt5A1EYfWr/X1vA3pqSmqc1XJh WgyOTCHmhnGw/8J7VpwyCpKsNTbBZBXLvySrSEQX0vkoLIuzr7KstG+X7+gJh/LaUT1xmE CsHe9g4UyKOquvo32NanANV6iBpcds7F4a0z/yjGRTjuo75Y+I3TpToaOm64fYwG8VuIQ7 1gpYrE20gw8c+hJXC6+Qfs6YDWEB3WsHg9VOGOXNRlj+ilzNpUVbiV/t2S/p1g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=JK9TDQoh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Spam-Score: -3.19 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=JK9TDQoh; dmarc=pass (policy=none) header.from=gnu.org; spf=pass (aspmx1.migadu.com: domain of "guix-patches-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-patches-bounces+larch=yhetil.org@gnu.org" X-Migadu-Queue-Id: B2A1DFBF0 X-Spam-Score: -3.19 X-Migadu-Scanner: scn0.migadu.com X-TUID: e8C6WLb8Q+Bm * gnu/packages/search.scm (ugrep)[source]: Convert snippet to gexp. [arguments]: Use gexps. --- gnu/packages/search.scm | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index 175a31cd5d..34dc6d5faf 100644 --- a/gnu/packages/search.scm +++ b/gnu/packages/search.scm @@ -32,6 +32,7 @@ (define-module (gnu packages search) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix gexp) #:use-module (guix utils) #:use-module (guix build-system gnu) #:use-module (guix build-system perl) @@ -681,14 +682,12 @@ (define-public ugrep (sha256 (base32 "03b3lahc3zzsznaqnrk47f1cnd5jwakvwrkz0r4m2crk09cpfv57")) (file-name (git-file-name name version)) - (modules '((guix build utils))) - (snippet - '(begin - (delete-file-recursively "bin") ; pre-built executables - (for-each delete-file (find-files "tests" "^archive\\..*")) - (for-each delete-file (find-files "tests" "^.*\\.pdf$")) - (for-each delete-file (find-files "tests" "^.*\\.class$")) - #t)))) + (snippet #~(begin + (use-modules (guix build utils)) + (delete-file-recursively "bin") ; pre-built executables + (for-each delete-file (find-files "tests" "^archive\\..*")) + (for-each delete-file (find-files "tests" "^.*\\.pdf$")) + (for-each delete-file (find-files "tests" "^.*\\.class$")))))) (build-system gnu-build-system) (inputs (list bzip2 @@ -698,18 +697,19 @@ (define-public ugrep pcre2 zlib `(,zstd "lib")) - (arguments - `(#:tests? #f ; no way to rebuild the binary input files + (arguments + (list + #:tests? #f ; no way to rebuild the binary input files #:test-target "test" #:phases - (modify-phases %standard-phases - (add-before 'check 'check-setup - (lambda _ - ;; Unpatch shebangs in tests. - (substitute* '("tests/Hello.bat" - "tests/Hello.sh") - (("#!/gnu/store/.*/bin/sh") "#!/bin/sh"))))))) - (home-page "https://github.com/Genivia/ugrep/") + #~(modify-phases %standard-phases + (add-before 'check 'check-setup + (lambda _ + ;; Unpatch shebangs in tests. + (substitute* '("tests/Hello.bat" + "tests/Hello.sh") + (("#!/gnu/store/.*/bin/sh") "#!/bin/sh"))))))) + (home-page "https://github.com/Genivia/ugrep/") (synopsis "Faster grep with an interactive query UI") (description "Ugrep is a ultra fast searcher of file systems, text and binary files, source code, archives, compressed files, documents, and -- 2.37.1