GNU bug report logs -
#37994
[PATCH] gnu: git: Add PCRE support to "git grep".
Previous Next
Reported by: Pierre Neidhardt <mail <at> ambrevar.xyz>
Date: Wed, 30 Oct 2019 16:20:02 UTC
Severity: normal
Tags: patch
Done: Pierre Neidhardt <mail <at> ambrevar.xyz>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 37994 in the body.
You can then email your comments to 37994 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
guix-patches <at> gnu.org
:
bug#37994
; Package
guix-patches
.
(Wed, 30 Oct 2019 16:20:06 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Pierre Neidhardt <mail <at> ambrevar.xyz>
:
New bug report received and forwarded. Copy sent to
guix-patches <at> gnu.org
.
(Wed, 30 Oct 2019 16:20:07 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
* 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
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37994
; Package
guix-patches
.
(Wed, 30 Oct 2019 17:16:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 37994 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
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
[signature.asc (application/pgp-signature, inline)]
Information forwarded
to
guix-patches <at> gnu.org
:
bug#37994
; Package
guix-patches
.
(Wed, 30 Oct 2019 19:54:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 37994 <at> debbugs.gnu.org (full text, mbox):
[Message part 1 (text/plain, inline)]
Tobias Geerinckx-Rice <me <at> 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/
[signature.asc (application/pgp-signature, inline)]
bug closed, send any further explanations to
37994 <at> debbugs.gnu.org and Pierre Neidhardt <mail <at> ambrevar.xyz>
Request was from
Pierre Neidhardt <mail <at> ambrevar.xyz>
to
control <at> debbugs.gnu.org
.
(Sat, 02 Nov 2019 11:53:02 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Sat, 30 Nov 2019 12:24:08 GMT)
Full text and
rfc822 format available.
This bug report was last modified 5 years and 288 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.