* [bug#37994] [PATCH] gnu: git: Add PCRE support to "git grep".
@ 2019-10-30 16:19 Pierre Neidhardt
2019-10-30 17:15 ` Tobias Geerinckx-Rice via Guix-patches via
0 siblings, 1 reply; 3+ messages in thread
From: Pierre Neidhardt @ 2019-10-30 16:19 UTC (permalink / raw)
To: 37994
* gnu/packages/version-control.scm (git)[inputs]: Add pcre2.
[arguments]: Add "USE_LIBPCRE2" to make-flags.
(git-minimal)[arguments]: Do not inherit "USE_LIBPCRE2" in make-flags.
---
gnu/packages/version-control.scm | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/gnu/packages/version-control.scm b/gnu/packages/version-control.scm
index 573fa6f8cc..1dad351ba1 100644
--- a/gnu/packages/version-control.scm
+++ b/gnu/packages/version-control.scm
@@ -183,6 +183,9 @@ as well as the classic centralized workflow.")
;; a problem in 'patch-shebangs'; see <https://bugs.gnu.org/31952>.
("bash-for-tests" ,bash)
+ ;; For PCRE support in git grep (USE_LIBPCRE2)
+ ("pcre" ,pcre2)
+
;; For 'gitweb.cgi'
("perl-cgi" ,perl-cgi)
@@ -216,6 +219,8 @@ as well as the classic centralized workflow.")
(assoc-ref %build-inputs "bash-for-tests")
"/bin/bash")
+ "USE_LIBPCRE2=yes"
+
;; By default 'make install' creates hard links for
;; things in 'libexec/git-core', which leads to huge
;; nars; see <https://bugs.gnu.org/21949>.
@@ -505,6 +510,8 @@ everything from small to very large projects with speed and efficiency.")
(delete-file-recursively
(string-append out "/share/gitweb"))
#t)))))
+ ((#:make-flags flags)
+ `(delete "USE_LIBPCRE2=yes" ,flags))
((#:configure-flags flags)
''())
((#:disallowed-references lst '())
--
2.23.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#37994] [PATCH] gnu: git: Add PCRE support to "git grep".
2019-10-30 16:19 [bug#37994] [PATCH] gnu: git: Add PCRE support to "git grep" Pierre Neidhardt
@ 2019-10-30 17:15 ` Tobias Geerinckx-Rice via Guix-patches via
2019-10-30 19:53 ` Pierre Neidhardt
0 siblings, 1 reply; 3+ messages in thread
From: Tobias Geerinckx-Rice via Guix-patches via @ 2019-10-30 17:15 UTC (permalink / raw)
To: Pierre Neidhardt; +Cc: 37994
[-- Attachment #1: Type: text/plain, Size: 547 bytes --]
Pierre,
Pierre Neidhardt 写道:
> * gnu/packages/version-control.scm (git)[inputs]: Add pcre2.
> [arguments]: Add "USE_LIBPCRE2" to make-flags.
> (git-minimal)[arguments]: Do not inherit "USE_LIBPCRE2" in
> make-flags.
What do you think of removing pcre2 from INPUTS as well?
I'm a bit worried that upstream will grow auto-detection and/or
change the default value of USE_LIBPCRE2 one day, and that would
go unnoticed.
> + ;; For PCRE support in git grep (USE_LIBPCRE2)
Missing ‘.’.
Otherwise GTM!
T G-R
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#37994] [PATCH] gnu: git: Add PCRE support to "git grep".
2019-10-30 17:15 ` Tobias Geerinckx-Rice via Guix-patches via
@ 2019-10-30 19:53 ` Pierre Neidhardt
0 siblings, 0 replies; 3+ messages in thread
From: Pierre Neidhardt @ 2019-10-30 19:53 UTC (permalink / raw)
To: Tobias Geerinckx-Rice; +Cc: 37994
[-- Attachment #1: Type: text/plain, Size: 971 bytes --]
Tobias Geerinckx-Rice <me@tobias.gr> writes:
> Pierre,
>
> Pierre Neidhardt 写道:
>> * gnu/packages/version-control.scm (git)[inputs]: Add pcre2.
>> [arguments]: Add "USE_LIBPCRE2" to make-flags.
>> (git-minimal)[arguments]: Do not inherit "USE_LIBPCRE2" in
>> make-flags.
>
> What do you think of removing pcre2 from INPUTS as well?
git-minimal's input is defined explicitly, no need to remove pcre2 since
it's not there.
> I'm a bit worried that upstream will grow auto-detection and/or
> change the default value of USE_LIBPCRE2 one day, and that would
> go unnoticed.
Found this: https://stackoverflow.com/a/49826828
Looks like the compile flags are here to stay :)
>> + ;; For PCRE support in git grep (USE_LIBPCRE2)
>
> Missing ‘.’.
You mean the trailing period? Actually I just noticed that about half
of those comments in Git have trailing periods. I can fix it.
--
Pierre Neidhardt
https://ambrevar.xyz/
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-10-30 19:54 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-10-30 16:19 [bug#37994] [PATCH] gnu: git: Add PCRE support to "git grep" Pierre Neidhardt
2019-10-30 17:15 ` Tobias Geerinckx-Rice via Guix-patches via
2019-10-30 19:53 ` Pierre Neidhardt
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/guix.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.