git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] meson: disable PCRE2 dependency by default
@ 2025-07-12 17:26 Carlo Marcelo Arenas Belón
  2025-07-12 17:51 ` brian m. carlson
  2025-07-13 12:23 ` [PATCH v2] meson: disable PCRE2 dependency by default in macOS Carlo Marcelo Arenas Belón
  0 siblings, 2 replies; 28+ messages in thread
From: Carlo Marcelo Arenas Belón @ 2025-07-12 17:26 UTC (permalink / raw)
  To: git; +Cc: Carlo Marcelo Arenas Belón

Makefile requires the user to provide the USE_LIBPCRE2 flag to
enable this dependency, but meson has it enabled by default,
which can be problematic, at least in macOS.

While a popular option and matching what was done by cmake
(which itself reflects what is preferred by Git for Windows)
could result in a broken build or linking with the wrong PCRE2
library.

While not git's fault, macOS provides a PCRE2 library in base
that is not usable (even if it would pass the test) and not
configured properly, as it installs a pkgconf module that
points to a non existent pcre2.h header in /usr/local/include.

Change the default to off, and let the user enable it once a
proper dependency is installed or meson instructed to fallback to
the wrap.

Signed-off-by: Carlo Marcelo Arenas Belón <carenas@gmail.com>
---
 meson_options.txt | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/meson_options.txt b/meson_options.txt
index e7f768df24..0a0cac6f99 100644
--- a/meson_options.txt
+++ b/meson_options.txt
@@ -45,7 +45,7 @@ option('gitweb', type: 'feature', value: 'auto',
   description: 'Build Git web interface. Requires Perl.')
 option('iconv', type: 'feature', value: 'auto',
   description: 'Support reencoding strings with different encodings.')
-option('pcre2', type: 'feature', value: 'enabled',
+option('pcre2', type: 'feature', value: 'disabled',
   description: 'Support Perl-compatible regular expressions in e.g. git-grep(1).')
 option('perl', type: 'feature', value: 'auto',
   description: 'Build tools written in Perl.')
-- 
2.39.5 (Apple Git-154)


^ permalink raw reply related	[flat|nested] 28+ messages in thread

end of thread, other threads:[~2025-07-24  5:28 UTC | newest]

Thread overview: 28+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-07-12 17:26 [PATCH] meson: disable PCRE2 dependency by default Carlo Marcelo Arenas Belón
2025-07-12 17:51 ` brian m. carlson
2025-07-14 14:00   ` Carlo Arenas
2025-07-14 15:20     ` Junio C Hamano
2025-07-14 16:46       ` Carlo Marcelo Arenas Belón
2025-07-14 16:58         ` Junio C Hamano
2025-07-13 12:23 ` [PATCH v2] meson: disable PCRE2 dependency by default in macOS Carlo Marcelo Arenas Belón
2025-07-13 15:42   ` Junio C Hamano
2025-07-13 17:48   ` [PATCH v3] " Carlo Marcelo Arenas Belón
2025-07-15  1:55     ` Eli Schwartz
2025-07-15  8:46       ` Patrick Steinhardt
2025-07-15  8:56         ` Carlo Arenas
2025-07-15 10:32           ` Patrick Steinhardt
2025-07-15 12:08             ` Carlo Arenas
2025-07-15 14:14               ` Eli Schwartz
2025-07-15 12:01       ` Carlo Arenas
2025-07-15 14:22         ` Eli Schwartz
2025-07-15 11:44     ` [PATCH v4] meson: woraround broken system PCRE2 dependency " Carlo Marcelo Arenas Belón
2025-07-15 16:48       ` Junio C Hamano
2025-07-15 16:50       ` Eric Sunshine
2025-07-16 19:30       ` [PATCH v5] meson: work around " Carlo Marcelo Arenas Belón
2025-07-16 21:13         ` Junio C Hamano
2025-07-16 21:17           ` Junio C Hamano
2025-07-16 22:10         ` Eli Schwartz
2025-07-16 22:17           ` Carlo Arenas
2025-07-18 17:02         ` [PATCH v6] " Carlo Marcelo Arenas Belón
2025-07-23 22:17           ` Junio C Hamano
2025-07-24  5:28             ` Patrick Steinhardt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).