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
This commit is contained in:
spacecadet 2023-11-26 03:12:08 +00:00 committed by Ludovic Courtès
parent a97ca00a5d
commit 968c6da422
No known key found for this signature in database
GPG key ID: 090B11993D9AEBB5

View file

@ -125,9 +125,11 @@ (define-public grep
(patches (search-patches "grep-timing-sensitive-test.patch")))) (patches (search-patches "grep-timing-sensitive-test.patch"))))
(build-system gnu-build-system) (build-system gnu-build-system)
(native-inputs (list perl)) ;some of the tests require it (native-inputs (list perl)) ;some of the tests require it
(inputs (list pcre)) (inputs (list pcre2))
(arguments (arguments
`(#:phases `(#:configure-flags
(list "--enable-perl-regexp")
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'install 'fix-egrep-and-fgrep (add-after 'install 'fix-egrep-and-fgrep
;; Patch 'egrep' and 'fgrep' to execute 'grep' via its ;; Patch 'egrep' and 'fgrep' to execute 'grep' via its