diff --git a/meta-networking/recipes-support/dovecot/dovecot/0001-adapt-lua_newstate-to-new-api.patch b/meta-networking/recipes-support/dovecot/dovecot/0001-adapt-lua_newstate-to-new-api.patch new file mode 100644 index 0000000000..363361fcd5 --- /dev/null +++ b/meta-networking/recipes-support/dovecot/dovecot/0001-adapt-lua_newstate-to-new-api.patch @@ -0,0 +1,29 @@ +From 5efcbab91b510f5a2495369b729248e8bf8a5d63 Mon Sep 17 00:00:00 2001 +From: Gyorgy Sarvari +Date: Tue, 31 Mar 2026 11:05:52 +0000 +Subject: [PATCH] adapt lua_newstate to new api + +lua_newstate() in lua 5.5 has gained a new, third argument, which made +it not backwards compatible. This change adapts this call to the lua version +used in OE. + +Upstream-Status: Pending + +Signed-off-by: Gyorgy Sarvari +--- + src/lib-lua/dlua-script.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/lib-lua/dlua-script.c b/src/lib-lua/dlua-script.c +index 20f91ad..789d603 100644 +--- a/src/lib-lua/dlua-script.c ++++ b/src/lib-lua/dlua-script.c +@@ -253,7 +253,7 @@ static struct dlua_script *dlua_create_script(const char *name, + /* lua API says that lua_newstate will return NULL only if it's out of + memory. this cannot really happen with our allocator as it will + call i_fatal_status anyways if it runs out of memory */ +- script->L = lua_newstate(dlua_alloc, script); ++ script->L = lua_newstate(dlua_alloc, script, luaL_makeseed(NULL)); + i_assert(script->L != NULL); + script->ref = 1; + lua_atpanic(script->L, dlua_atpanic); diff --git a/meta-networking/recipes-support/dovecot/dovecot/0001-lib-regex-remove-LIBPCRE_LIBS-from.patch b/meta-networking/recipes-support/dovecot/dovecot/0001-lib-regex-remove-LIBPCRE_LIBS-from.patch deleted file mode 100644 index b872587a88..0000000000 --- a/meta-networking/recipes-support/dovecot/dovecot/0001-lib-regex-remove-LIBPCRE_LIBS-from.patch +++ /dev/null @@ -1,26 +0,0 @@ -From fd3d65c65c778cf0a2fba6487c8d0eb30b6780b7 Mon Sep 17 00:00:00 2001 -From: Aki Tuomi -Date: Fri, 31 Oct 2025 12:53:33 +0200 -Subject: [PATCH] lib-regex: Remove LIBPCRE_LIBS from test dependencies - -Was accidentically added in 49ae6e798310e5c4b96709db435a3714ea6468a8 - -Upstream-Status: Backport [https://github.com/dovecot/core/commit/fd3d65c65c778cf0a2fba6487c8d0eb30b6780b7] -Signed-off-by: Gyorgy Sarvari ---- - src/lib-regex/Makefile.am | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/src/lib-regex/Makefile.am b/src/lib-regex/Makefile.am -index 60f43d9779..9d26d27fa1 100644 ---- a/src/lib-regex/Makefile.am -+++ b/src/lib-regex/Makefile.am -@@ -34,7 +34,7 @@ test_regex_LDADD = libdregex.la \ - ../lib-test/libtest.la \ - ../lib/liblib.la \ - $(LIBPCRE_LIBS) --test_regex_DEPENDENCIES = libdregex.la $(LIBPCRE_LIBS) -+test_regex_DEPENDENCIES = libdregex.la - - check-local: - for bin in $(test_programs); do \ diff --git a/meta-networking/recipes-support/dovecot/dovecot_2.4.2.bb b/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb similarity index 89% rename from meta-networking/recipes-support/dovecot/dovecot_2.4.2.bb rename to meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb index e94306dd32..a8930979ea 100644 --- a/meta-networking/recipes-support/dovecot/dovecot_2.4.2.bb +++ b/meta-networking/recipes-support/dovecot/dovecot_2.4.3.bb @@ -6,17 +6,17 @@ in mind. Dovecot is an excellent choice for both small and large \ installations. It's fast, simple to set up, requires no special \ administration and it uses very little memory." SECTION = "mail" -LICENSE = "LGPL-2.1-only & MIT" -LIC_FILES_CHKSUM = "file://COPYING;md5=2956560272e5b31d9d64f03111732048" +LICENSE = "LGPL-2.1-only & MIT & Unicode-3.0 & BSD-3-Clause & PD" +LIC_FILES_CHKSUM = "file://COPYING;md5=cb805cc6bdb95ba8fc2398a55fd50877" -SRC_URI = "http://dovecot.org/releases/2.4/dovecot-${PV}.tar.gz \ +SRC_URI = "https://dovecot.org/releases/2.4/dovecot-${PV}.tar.gz \ file://0001-configure.ac-convert-AC_TRY_RUN-to-AC_TRY_LINK-state.patch \ file://dovecot.service \ file://dovecot.socket \ file://0001-m4-Check-for-libunwind-instead-of-libunwind-generic.patch \ - file://0001-lib-regex-remove-LIBPCRE_LIBS-from.patch \ + file://0001-adapt-lua_newstate-to-new-api.patch \ " -SRC_URI[sha256sum] = "2cd62e4d22b9fc1c80bd38649739950f0dbda34fbc3e62624fb6842264e93c6e" +SRC_URI[sha256sum] = "e0b30330fe51e47ecfcf641bc16041184d91bdd0ac3db789b7cef54e3a75ac9b" DEPENDS = "openssl xz zlib bzip2 libcap icu libtirpc bison-native" CFLAGS += "-I${STAGING_INCDIR}/tirpc" @@ -29,6 +29,7 @@ PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'ldap pam systemd', d)} PACKAGECONFIG[pam] = "--with-pam,--without-pam,libpam," PACKAGECONFIG[systemd] = "--with-systemd,--without-systemd,systemd," PACKAGECONFIG[ldap] = "--with-ldap=plugin,--without-ldap,openldap," +PACKAGECONFIG[lua] = "--with-lua=yes, --without-lua, lua" PACKAGECONFIG[lz4] = "--with-lz4,--without-lz4,lz4," # From native build in armv7a-hf/eglibc