delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2022/02/25/03:57:05

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A14313858402
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=dinwoodie.org
Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=dinwoodie.org
Date: Fri, 25 Feb 2022 08:56:25 +0000
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
To: cygwin AT cygwin DOT com
Subject: Re: pcre regexps in git?
Message-ID: <20220225085625.yfmiauyhxdradfzf@lucy.dinwoodie.org>
References: <ca3a3890-e097-4a0e-9de1-b91a05c64fa2 AT www DOT fastmail DOT com>
<20220224213229 DOT berg5rjisexeuue3 AT lucy DOT dinwoodie DOT org>
MIME-Version: 1.0
In-Reply-To: <20220224213229.berg5rjisexeuue3@lucy.dinwoodie.org>
X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
PDS_RDNS_DYNAMIC_FP, RDNS_DYNAMIC, SPF_HELO_PASS, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.4
X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Thu, Feb 24, 2022 at 09:32:29PM +0000, Adam Dinwoodie wrote:
> On Thu, Feb 24, 2022 at 04:19:13PM -0500, Anthony Heading wrote:
> > Hi,
> > I appreciate this is just a birthday wish-list item, but...
> > 
> > % git grep -P hopeful...
> > fatal: cannot use Perl-compatible regexes when not compiled with USE_LIBPCRE
> > 
> > It would be lovely (well, at least for me) if this could work.
> 
> Huh.  I think that used to work, so if it broke, it presumably broke
> somewhere during the Cygwin Git build process wrangling I've been doing
> of late.  I'll see what I can do to get it working again for you!

It looks like this actually broke some time ago, when the upstream Git
project moved from using libpcre1 to libpcre2, which I didn't spot, and
so didn't realise I needed to update the set of dependencies that are
installed for building Git.  Git's build-time config system is set up
such that, if it can't find a library it wants but doesn't strictly
need, it'll just silently carry on without it, so there's no indication
that there's any function missing until someone notices and complains.
So thank you, Anthony, for noticing and complaining!

(The above is not entirely true: fairly recently upstream Git added --
after I pointed out exactly this problem with a different library -- the
ability to tell the Git test suite that it should expect certain
function to be available regardless of what libraries are installed.
But I've not yet got around to setting that up for the Cygwin Git
builds, and it's unlikely to have caught this problem anyway, since it
predates that function being available.)

Anyway, the key fix here should be pretty straightforward; I think it'll
just be a case of rebuilding Git on a build server that has libpcre2
rather than libpcre1 installed.  Currently the Git builds are failing
for entirely unrelated reasons -- I understand the problem but I'm not
yet certain what the right fix is -- but I'm currently expecting to be
able to sort this all out within a week.

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019