git » mariadb.git » commit 7be8cb5

build with system pcre2

author Christian Hesse
2023-06-15 11:25:17 UTC
committer Christian Hesse
2023-06-15 11:25:17 UTC
parent b7a445fabdf27f9c461cd9e05a636314f05cc5db

build with system pcre2

PKGBUILD +3 -3

diff --git a/PKGBUILD b/PKGBUILD
index 5775614..784141a 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -10,7 +10,7 @@ arch=('x86_64')
 license=('GPL')
 url='https://mariadb.org/'
 makedepends=('boost' 'bzip2' 'cmake' 'cracklib' 'curl' 'jemalloc' 'judy' 'krb5' 'liburing'
-             'libxcrypt' 'libxml2' 'lz4' 'openssl' 'systemd' 'zlib' 'zstd' 'xz')
+             'libxcrypt' 'libxml2' 'lz4' 'openssl' 'pcre2' 'systemd' 'zlib' 'zstd' 'xz')
 validpgpkeys=('177F4010FE56CA3336300305F1656F24C74CD1D8') # MariaDB Signing Key <signing-key@mariadb.org>
 # The default links with mirror redirection fail for signatures, specific
 # mirrors may be out of date every now and then. Let's use the upstream
@@ -78,7 +78,7 @@ build() {
     -DWITH_EXTRA_CHARSETS=complex
     -DWITH_JEMALLOC=ON
     -DWITH_LIBWRAP=OFF
-    -DWITH_PCRE=bundled
+    -DWITH_PCRE2=system
     -DWITH_READLINE=ON
     -DWITH_SSL=system
     -DWITH_SYSTEMD=yes
@@ -103,7 +103,7 @@ check() {
 
 package_mariadb-libs() {
   pkgdesc='MariaDB libraries'
-  depends=('liburing' 'libxcrypt' 'libcrypt.so' 'openssl' 'zlib' 'zstd')
+  depends=('liburing' 'libxcrypt' 'libcrypt.so' 'openssl' 'pcre2' 'zlib' 'zstd')
   optdepends=('krb5: for gssapi authentication')
   conflicts=('libmysqlclient' 'libmariadbclient' 'mariadb-connector-c')
   provides=('libmariadbclient' 'mariadb-connector-c' 'libmariadb.so' 'libmariadbd.so')