From patchwork Fri Aug 5 05:04:09 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: kiasoc5 X-Patchwork-Id: 41292 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 97C5F27BBEA; Fri, 5 Aug 2022 06:06:36 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 5327227BBE9 for ; Fri, 5 Aug 2022 06:06:36 +0100 (BST) Received: from localhost ([::1]:57624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJpXf-0001tN-FE for patchwork@mira.cbaines.net; Fri, 05 Aug 2022 01:06:35 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:36272) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oJpWA-0000j5-Uq for guix-patches@gnu.org; Fri, 05 Aug 2022 01:05:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:37688) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oJpWA-0007Yr-My for guix-patches@gnu.org; Fri, 05 Aug 2022 01:05:02 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oJpWA-0002Cf-Fe for guix-patches@gnu.org; Fri, 05 Aug 2022 01:05:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#56984] [PATCH V3] gnu: ugrep: Use gexps and add zstd lib to inputs. References: <20220804203726.44fb38aa@aria> In-Reply-To: <20220804203726.44fb38aa@aria> Resent-From: kiasoc5 Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Fri, 05 Aug 2022 05:05:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 56984 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 56984@debbugs.gnu.org Cc: kiasoc5 , paren@disroot.org Received: via spool by 56984-submit@debbugs.gnu.org id=B56984.16596758838430 (code B ref 56984); Fri, 05 Aug 2022 05:05:02 +0000 Received: (at 56984) by debbugs.gnu.org; 5 Aug 2022 05:04:43 +0000 Received: from localhost ([127.0.0.1]:55665 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJpVr-0002Bu-B9 for submit@debbugs.gnu.org; Fri, 05 Aug 2022 01:04:43 -0400 Received: from knopi.disroot.org ([178.21.23.139]:50812) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oJpVo-0002Bi-BM for 56984@debbugs.gnu.org; Fri, 05 Aug 2022 01:04:41 -0400 Received: from localhost (localhost [127.0.0.1]) by disroot.org (Postfix) with ESMTP id E2A8740DAA; Fri, 5 Aug 2022 07:04:38 +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 EFFRf8ccXg2s; Fri, 5 Aug 2022 07:04:37 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=disroot.org; s=mail; t=1659675877; bh=BPh63fx9Gq1evLqok/eNDvm3y0Fkv2eFzuo1PGT/n3A=; h=From:To:Cc:Subject:Date; b=CmTASSDsC8XAZU8tqQk1YkiuX5Z8MgFKcouJMiXZShrbkWjNFZi/1uEqNM9vsuq71 48ciz35WBpgbMZ1r+yColiEXmCGv66cMThRDZ9B3FbHNWMPnRLyvvK9tgpARRv4jkN i49F+iyFd1+ItQzfnxezliOfhNSjhg2jtjj9or6ciJsn6XQwdP80OjLI6nZtYt02Xa 8YNbb1lqdZA/XCApKlrW5RSUVnqn5pRXJgDBJN+23Tvjr63raFNZm4OxG60BpaH1Wo QnPMmungvplHpvhkEMevEB4q943fsMGSB/XpgQOnsLtJqxLLMedC7gX70uih/swS1h UGVEc7esl8V3g== Date: Fri, 5 Aug 2022 01:04:09 -0400 Message-Id: <20220805050408.342881-1-kiasoc5@disroot.org> Mime-Version: 1.0 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" Reply-to: kiasoc5 X-ACL-Warn: , kiasoc5 via Guix-patches X-Patchwork-Original-From: kiasoc5 via Guix-patches via From: kiasoc5 X-getmail-retrieved-from-mailbox: Patches * gnu/packages/search.scm (ugrep)[snippets]: Remove trailing #t. [snippets]: Use gexps. [arguments]: Likewise. [inputs]: Add zstd lib. --- gnu/packages/search.scm | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/gnu/packages/search.scm b/gnu/packages/search.scm index db5579a708..620c8dbe1f 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) @@ -687,8 +688,7 @@ (define-public ugrep (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)))) + (for-each delete-file (find-files "tests" "^.*\\.class$")))))) (build-system gnu-build-system) (inputs (list bzip2 @@ -696,18 +696,20 @@ (define-public ugrep lz4 lzip ;; lzma pcre2 - zlib)) + zlib + zstd)) (arguments - `(#: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"))))))) + (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/") (synopsis "Faster grep with an interactive query UI") (description "Ugrep is a ultra fast searcher of file systems, text