From 968c6da422997d795c8601cbbd89b3b308553e8c Mon Sep 17 00:00:00 2001 From: spacecadet Date: Sun, 26 Nov 2023 03:12:08 +0000 Subject: 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(-) (limited to 'gnu') diff --git a/gnu/packages/base.scm b/gnu/packages/base.scm index c46627a901..94a38a67c0 100644 --- a/gnu/packages/base.scm +++ b/gnu/packages/base.scm @@ -125,9 +125,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)) (arguments - `(#: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 -- cgit v1.2.3