git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: Very promising results with libpcre2

From
JWJeffrey Walton <noloader@gmail.com>
Date
Apr 1, 2017, 23:33 UTC
Message-ID
<CAH8yC8mxdNFdpo0ZO0+XpnuHGTpp2NCiMCSE71j2Emt8-NRYDg@mail.gmail.com>
In-Reply-To
<xmqqbmsgugt4.fsf@gitster.mtv.corp.google.com>
Show 19 quoted lines
> Just to make sure that we are on the same page.  While I do not see
> the need to link with both variants and allow users to choose
> between them at runtime, I do not know if the whole world is ready
> to drop pcre1 and use pcre2 (the latter of which has only been
> around for a bit over two years).
>
> So we'd probably want to do
>
>  (1) keep USE_LIBPCRE and enable v1 when set;
>  (2) add USE_LIBPCRE2 and enable v2 when set;
>  (3) make sure to error out when both are set.
>
> or something like that.  It is tempting to allow us to say
>
>     make USE_LIBPCRE=2
>
> but the existing builds are likely to be depending on "is it set to
> anything? then use PCRE1" behaviour, so we unfortunately cannot take
> that route.
Yeah, that's the question I kinda had.
> make USE_LIBPCRE=2
I'd prefer a configure option for consistency. Maybe:
    --with-pcre  # Original PCRE
    --with-pcre1  # Alias
    --with-pcre2  # PCRE2

I prefer it because I usually do the following to see the interesting things that's going on:

    ./configure --help

Often, I find a `--with-ssl` or similar. If `--with-ssl` fails, then I go to the README and INSTALL to fine tune it.

By the way, if you are tweaking Configure, then consider adding a --with-perl=X, too. Its consistent, it side steps the hard coded /usr/bin/perl, and it signals to users its tunable.

Jeff
Previous: Junio C HamanoNext: Junio C Hamano
Message 7 of 8 in “Very promising results with libpcre2”
  1. Ævar Arnfjörð BjarmasonMar 31, 2017
  2. Junio C HamanoMar 31, 2017
  3. Ævar Arnfjörð BjarmasonApr 1, 2017
  4. Junio C HamanoApr 1, 2017
  5. Ævar Arnfjörð BjarmasonApr 1, 2017
  6. Junio C HamanoApr 2, 2017
  7. Jeffrey WaltonApr 1, 2017
  8. Junio C HamanoApr 2, 2017

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.