postfix: switch to libpcre2
PATCH 1/3 postfix: switch to libpcre2
Postfix 3.7 and later supports pcre2 library [1]
[1] https://www.postfix.org/PCRE_README.html
Signed-off-by Hongxu Jia <[email protected]>
--- meta-networking/recipes-daemons/postfix/postfix_3.10.5.bb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
meta-networking/recipes-daemons/postfix/postfix_3.10.5.bb +3 -3
@@ -6,7 +6,7 @@ has a definite Sendmail-ish flavor, but the inside is completely different." HOMEPAGE = "http://www.postfix.org" SECTION = "mail" -DEPENDS = "db icu libpcre libnsl2 m4-native openssl postfix-native \ +DEPENDS = "db icu libpcre2 libnsl2 m4-native openssl postfix-native \ ${@bb.utils.contains('DISTRO_FEATURES', 'ldap', 'openldap', '', d)} \ ${@bb.utils.contains('DISTRO_FEATURES', 'sasl', 'cyrus-sasl', '', d)} \ "
@@ -80,8 +80,8 @@ export CCARGS-sasl:class-native = "" export AUXLIBS-sasl:class-native = "" # PCRE, TLS support default -export CCARGS = "${CFLAGS} -DHAS_PCRE -DUSE_TLS -I${STAGING_INCDIR}/openssl ${CCARGS-ldap} ${CCARGS-sasl} ${CCARGS-nonis}" -export AUXLIBS = "-lpcre -lssl -lcrypto ${AUXLIBS-sasl} ${AUXLIBS-ldap}" +export CCARGS = "${CFLAGS} -DHAS_PCRE=2 -DUSE_TLS -I${STAGING_INCDIR}/openssl ${CCARGS-ldap} ${CCARGS-sasl} ${CCARGS-nonis}" +export AUXLIBS = "-lpcre2-8 -lssl -lcrypto ${AUXLIBS-sasl} ${AUXLIBS-ldap}" export POSTCONF = "${STAGING_DIR_NATIVE}${sbindir_native}/postconf" # OPT,DEBUG is aready in CFLAGS
Signature · 1 line
2.34.1
PATCH 2/3 nginx: switch to libpcre2
NGINX 1.22 and later supports PCRE2 [1]
[1] https://github.com/nginx/nginx/commit/c6fec0b027569a4e0b1d8aaee7dea0f2e4d6052b
Signed-off-by Hongxu Jia <[email protected]>
--- meta-webserver/recipes-httpd/nginx/nginx.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-webserver/recipes-httpd/nginx/nginx.inc +1 -1
@@ -9,7 +9,7 @@ LICENSE = "BSD-2-Clause" SECTION = "net" -DEPENDS = "libpcre zlib" +DEPENDS = "libpcre2 zlib" SRC_URI = " \ http://nginx.org/download/nginx-${PV}.tar.gz \
Signature · 1 line
2.34.1
PATCH 3/3 syslog-ng: switch to libpcre2
In reply to Hongxu JiaThe syslog-ng used pcre2 instead of pcre since 2023 [1]
[1] https://github.com/syslog-ng/syslog-ng/commit/cb6de08dc9078644d48ca536b5660e406b1a50d6
Signed-off-by Hongxu Jia <[email protected]>
--- meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
meta-oe/recipes-support/syslog-ng/syslog-ng_4.8.2.bb +1 -1
@@ -13,7 +13,7 @@ LICENSE = "GPL-2.0-only & LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=924958cefc9f7de3e0b818832b8a1cec" # util-linux added to get libuuid -DEPENDS = "libpcre flex glib-2.0 openssl util-linux bison-native curl json-c" +DEPENDS = "libpcre2 flex glib-2.0 openssl util-linux bison-native curl json-c" SRC_URI = "https://github.com/balabit/syslog-ng/releases/download/${BP}/${BP}.tar.gz \ file://syslog-ng.conf.systemd \
Signature · 1 line
2.34.1