[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

03/03: gnu: grep: Fix PCRE matches (grep -P).

From: guix-commits
Subject: 03/03: gnu: grep: Fix PCRE matches (grep -P).
Date: Sun, 26 Nov 2023 08:58:38 -0500 (EST)

nckx pushed a commit to branch core-updates
in repository guix.

commit 5b0cea02358044f0cc695bacc3f44db1e220239b
Author: spacecadet <>
AuthorDate: Sun Nov 26 03:12:08 2023 +0000

    gnu: grep: Fix PCRE matches (grep -P).
    * gnu/packages/base.scm (grep)[inputs]: Replace pcre with pcre2.
    [arguments]: Add "--enable-perl-regexp" to #:configure-flags to
    detect broken PCRE in future.
    Change-Id: I612564ca9ceae6aeee325368f34b2aa35eba0c40
 gnu/packages/base.scm | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm
index 34dc9a037f..b4982107b2 100644
--- a/gnu/packages/base.scm
+++ b/gnu/packages/base.scm
@@ -121,9 +121,11 @@ command-line arguments, multiple languages, and so on.")
             (patches (search-patches "grep-timing-sensitive-test.patch"))))
    (build-system gnu-build-system)
    (native-inputs (list perl))                   ;some of the tests require it
-   (inputs (list pcre))
+   (inputs (list pcre2))
-    `(#:phases
+    `(#:configure-flags
+      (list "--enable-perl-regexp")
+      #:phases
       (modify-phases %standard-phases
         (add-after 'install 'fix-egrep-and-fgrep
           ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its

reply via email to

[Prev in Thread] Current Thread [Next in Thread]