From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp11.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms5.migadu.com with LMTPS id WPBEDl6l7GJgeQAAbAwnHQ (envelope-from ) for ; Fri, 05 Aug 2022 07:06:38 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp11.migadu.com with LMTPS id IH02Dl6l7GImxQAA9RJhRA (envelope-from ) for ; Fri, 05 Aug 2022 07:06:38 +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 E6A3E2BE76 for ; Fri, 5 Aug 2022 07:06:37 +0200 (CEST) Received: from localhost ([::1]:57624 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oJpXh-0001tN-4C for larch@yhetil.org; Fri, 05 Aug 2022 01:06:37 -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 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=1659675997; 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=q9udyAUlg9SA7OeDzMbik0oJrDOFzEKHspwKX67G0qM=; b=P4MDpsR4CB/AFdpx7uNlinRWk9aLLW1w2pV+WhTAh+O6zPjKsbdD9K0G8ScyLeVo8W+Q3u yx+D5hoOse0APzAoJuWbe+BdcEUcFrlLcaMOpzgfZn0PG51GrGo+hCKo37TZquZrwUdKgL 5pNXfRNlCRo4+NYuYBBg4vJl0JtPCPHdxaqzEuAy/4JX76szWInTI8QrxKyzJ5stYndHCz uLwlMt4ZAj/I97qu45OCYKMkX9iBr84Ku4SMYgIP5eGUXTTCiLiySXG3l6PDEnKwiBdOPI zq6cJvlX78lsC6CWYOtkd6WGNzF3O6q/ZkaFL2TMm1jjztGoyZKiW9oWjaQ1Kw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1659675997; a=rsa-sha256; cv=none; b=tx5TOgpbl07XQO7EG4mq2cbtkDMvknW2Yy08u1eLLY0/bmyztQ9iachCXGqY8HKmtuAwmF 2M3uniqqRoCF+WhRV32a7OZXrltBJeoMT2uVSkcmDz+HKgqwCc7rb6IClKs5ge4QolDcOv rzBC7QmvRbP6Q0OJrDbnpY95c1oJwIuY4vpldofwxPD/dWlEaa//tf56OszHIRhl2iVg14 kZmVq7kwinhg+O38+srvmDPIxDdPoqyBd44pXeqwpkDRMGiRglRnw5TlZwgzLx+U4g+b6u flAYp9qzQG8KLG3uKiT7FQOcW76x7LQe0vb+X6ygPG9JWRDCjikyEg1025EClQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=CmTASSDs; 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: -2.41 Authentication-Results: aspmx1.migadu.com; dkim=fail ("headers rsa verify failed") header.d=disroot.org header.s=mail header.b=CmTASSDs; 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: E6A3E2BE76 X-Spam-Score: -2.41 X-Migadu-Scanner: scn1.migadu.com X-TUID: T6VNUThIhq+P * 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 -- 2.37.1