libs/glib2: remove pcre2 fallback workaround
authorYegor Yefremov <[email protected]>
Thu, 4 Jul 2024 05:35:44 +0000 (07:35 +0200)
committerRosen Penev <[email protected]>
Thu, 4 Jul 2024 05:57:10 +0000 (22:57 -0700)
pcre2 can now be properly linked statically. Hence, remove both
the patch and -Dforce_fallback_for=libpcre2-8 option.

Signed-off-by: Yegor Yefremov <[email protected]>
libs/glib2/Makefile
libs/glib2/patches/010-pcre.patch [deleted file]

index 3c2e359d7e6ca1b304c70f36e77be1413f90b364..14032e4bfe436d079fa5b545fd682bdff6f80115 100644 (file)
@@ -68,7 +68,7 @@ COMP_ARGS+=-Dintrospection=disabled
 # set runtime dir to /var/run
 COMP_ARGS+=-Druntime_dir=/var/run
 
-MESON_HOST_ARGS += $(COMP_ARGS) -Dxattr=false -Ddefault_library=static -Dnls=disabled -Dforce_fallback_for=libpcre2-8
+MESON_HOST_ARGS += $(COMP_ARGS) -Dxattr=false -Ddefault_library=static -Dnls=disabled
 MESON_ARGS += $(COMP_ARGS) -Dxattr=true -Db_lto=true -Ddefault_library=both -Dnls=$(if $(CONFIG_BUILD_NLS),en,dis)abled
 
 define Build/InstallDev
diff --git a/libs/glib2/patches/010-pcre.patch b/libs/glib2/patches/010-pcre.patch
deleted file mode 100644 (file)
index 2ce2a7b..0000000
+++ /dev/null
@@ -1,10 +0,0 @@
---- a/glib/meson.build
-+++ b/glib/meson.build
-@@ -404,6 +404,7 @@ pcre2_static_args = []
- if use_pcre2_static_flag
-   pcre2_static_args = ['-DPCRE2_STATIC']
-+  pcre2 = pcre2.as_link_whole()
- endif
- glib_c_args = ['-DG_LOG_DOMAIN="GLib"'] + glib_c_args_internal + pcre2_static_args