Re: Git and PCRE2 vs PCRE?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Mar 30, 2017 at 04:59:27PM -0400, Jeffrey Walton wrote:

> Configure has an option for libpcre, but its not clear to me how to
> fine tune it for libpcre2:
> 
> $ ./configure --help | /usr/gnu/bin/grep -A 2 -i pcre
>   --with-libpcre          support Perl-compatible regexes (default is NO)
>                           ARG can be also prefix for libpcre library and
>                           headers
> 
> Is it possible to use PCRE2 with Git? If so, how do I tell Git to use PCRE2?

No, I don't think so. According to the release announcement for pcre2,
the API is not compatible with the original:

  https://lists.exim.org/lurker/message/20150105.162835.0666407a.en.html

So even if you could tweak the build to use it, it would not do the
right thing. Somebody would have to add code for the new library, and
probably have a USE_LIBPCRE2 flag.

I don't know offhand if there are compelling reasons to do that work.

-Peff



[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]