aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages
diff options
context:
space:
mode:
authorspacecadet <spacecadet@purge.sh>2023-11-26 03:12:08 +0000
committerLudovic Courtès <ludo@gnu.org>2024-08-31 10:42:46 +0200
commit968c6da422997d795c8601cbbd89b3b308553e8c (patch)
tree90238356fb548256bfc2e75876d436a75d9a6989 /gnu/packages
parenta97ca00a5dcf7bcce6e9ec04557d02d65d80732f (diff)
downloadguix-968c6da422997d795c8601cbbd89b3b308553e8c.tar
guix-968c6da422997d795c8601cbbd89b3b308553e8c.tar.gz
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
Diffstat (limited to 'gnu/packages')
-rw-r--r--gnu/packages/base.scm6
1 files changed, 4 insertions, 2 deletions
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