From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10595 Path: news.gmane.org!.POSTED!not-for-mail From: Jeff King Newsgroups: gmane.comp.version-control.git,gmane.linux.lib.musl.general Subject: Re: Regression: git no longer works with musl libc's regex impl Date: Thu, 6 Oct 2016 15:28:11 -0400 Message-ID: <20161006192811.xy5iahvczigfgapa@sigill.intra.peff.net> References: <20161004150848.GA7949@brightrain.aerifal.cx> <20161004152722.ex2nox43oj5ak4yi@sigill.intra.peff.net> <20161004154045.GT19318@brightrain.aerifal.cx> <20161006192339.3yddgxxk7jn7zfqx@sigill.intra.peff.net> <20161006192500.GS19318@brightrain.aerifal.cx> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: blaine.gmane.org 1475782121 6770 195.159.176.226 (6 Oct 2016 19:28:41 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Thu, 6 Oct 2016 19:28:41 +0000 (UTC) Cc: =?utf-8?B?w4Z2YXIgQXJuZmrDtnLDsA==?= Bjarmason , Johannes Schindelin , Git , musl@lists.openwall.com To: Rich Felker Original-X-From: git-owner@vger.kernel.org Thu Oct 06 21:28:37 2016 Return-path: Envelope-to: gcvg-git-2@m.gmane.org Original-Received: from vger.kernel.org ([209.132.180.67]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bsEL1-00075t-Fg for gcvg-git-2@m.gmane.org; Thu, 06 Oct 2016 21:28:15 +0200 Original-Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934666AbcJFT2P (ORCPT ); Thu, 6 Oct 2016 15:28:15 -0400 Original-Received: from cloud.peff.net ([104.130.231.41]:53589 "EHLO cloud.peff.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751412AbcJFT2O (ORCPT ); Thu, 6 Oct 2016 15:28:14 -0400 Original-Received: (qmail 31328 invoked by uid 109); 6 Oct 2016 19:28:13 -0000 Original-Received: from Unknown (HELO peff.net) (10.0.1.2) by cloud.peff.net (qpsmtpd/0.84) with SMTP; Thu, 06 Oct 2016 19:28:13 +0000 Original-Received: (qmail 30894 invoked by uid 111); 6 Oct 2016 19:28:31 -0000 Original-Received: from sigill.intra.peff.net (HELO sigill.intra.peff.net) (10.0.0.7) by peff.net (qpsmtpd/0.84) with SMTP; Thu, 06 Oct 2016 15:28:31 -0400 Original-Received: by sigill.intra.peff.net (sSMTP sendmail emulation); Thu, 06 Oct 2016 15:28:11 -0400 Content-Disposition: inline In-Reply-To: <20161006192500.GS19318@brightrain.aerifal.cx> Original-Sender: git-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: git@vger.kernel.org Xref: news.gmane.org gmane.comp.version-control.git:306355 gmane.linux.lib.musl.general:10595 Archived-At: On Thu, Oct 06, 2016 at 03:25:00PM -0400, Rich Felker wrote: > > No, I think that is the exact purpose of configure.ac and autoconf. > > > > It would be neat if we could auto-fallback during the build. Rich > > suggested always compiling compat/regex.c, and just having it be a noop > > at the preprocessor level. I'm not sure if that would work, though, > > because we'd have to include the system "regex.h" to know if we have > > REG_STARTEND, at which point it is potentially too late to compile our > > own regex routines (we're potentially going to conflict with the system > > declarations). > > If you have autoconf testing for REG_STARTEND at configure time then > compat/regex.c can #include "config.h" and test for HAVE_REG_STARTEND > rather than for REG_STARTEND, or something like that. Right, that part is easy; we do not even have to touch compat/regex.c, because we already have such a knob in the Makefile (NO_REGEX), and autoconf just needs to tweak that knob. My question was whether we could do it without running a separate compile (via autoconf or via the Makefile), and I think the answer is "no". -Peff