dovecot_2_4: 2.4.2 -> 2.4.3 (#504136)

This commit is contained in:
Sizhe Zhao
2026-03-28 04:08:02 +00:00
committed by GitHub
5 changed files with 13 additions and 24 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
import ./generic.nix {
version = "2.4.2";
hash = "sha256-uOW0gOernPRb+3fkupTISiQ34An0HEMFrdH0mjmFLKQ=";
version = "2.4.3";
hash = "sha256-NTtQMHK/IzAYHKb1lxClUUJkyJpeLo7mKRCAR1GaUTo=";
patches = _: [
# Fix loading extended modules.
./load-extended-modules.patch
+1 -7
View File
@@ -106,12 +106,6 @@ stdenv.mkDerivation (finalAttrs: {
env.NIX_LDFLAGS = lib.optionalString stdenv.hostPlatform.isDarwin "-liconv";
postConfigure = lib.optionalString (lib.strings.versionAtLeast version "2.4") ''
substituteInPlace src/lib-regex/Makefile --replace-fail \
"test_regex_DEPENDENCIES = libdregex.la \$(LIBPCRE_LIBS)" \
"test_regex_DEPENDENCIES = libdregex.la"
'';
postPatch = ''
sed -i -E \
-e 's!/bin/sh\b!${stdenv.shell}!g' \
@@ -174,6 +168,7 @@ stdenv.mkDerivation (finalAttrs: {
"--with-lucene"
"--with-icu"
"--with-textcat"
"--with-lua=${lib.boolToYesNo withLua}"
]
++ lib.optionals (stdenv.hostPlatform != stdenv.buildPlatform) [
"i_cv_epoll_works=${lib.boolToYesNo stdenv.hostPlatform.isLinux}"
@@ -195,7 +190,6 @@ stdenv.mkDerivation (finalAttrs: {
++ lib.optional stdenv.hostPlatform.isDarwin "--enable-static"
++ lib.optional withLDAP "--with-ldap"
++ lib.optional withPCRE2 "--with-pcre2"
++ lib.optional withLua "--with-lua"
++ lib.optional withMySQL "--with-mysql"
++ lib.optional withPgSQL "--with-pgsql"
++ lib.optional withSQLite "--with-sqlite";
+2 -3
View File
@@ -1,14 +1,13 @@
import ./generic.nix {
version = "2.4.2";
version = "2.4.3";
url =
{
version,
dovecotMajorMinor,
}:
"https://pigeonhole.dovecot.org/releases/${dovecotMajorMinor}/dovecot-pigeonhole-${version}.tar.gz";
hash = "sha256-nXiBii9LGe6VkGKkUBpvlntuvkQbqhAOqeSwwJb/ghE=";
hash = "sha256-LQNhqYnBVICabluj8F07UOZR5frt6bd9JSyuHJDS6hc=";
patches = fetchpatch: [
./max_lookup_size.patch
# https://github.com/NixOS/nixpkgs/pull/388463#issuecomment-3066016707
(fetchpatch {
url = "https://github.com/dovecot/pigeonhole/commit/517d74aa1d98b853b72608ce722bc58009c0f4a9.patch";
@@ -14,6 +14,7 @@
openssl,
libstemmer,
perl,
python3,
withLDAP ? true,
cyrus_sasl,
openldap,
@@ -68,10 +69,16 @@ stdenv.mkDerivation (finalAttrs: {
]
++ lib.optional withLDAP "--with-ldap";
preBuild = lib.optionalString (lib.strings.versionOlder version "2.4" && stdenv.isDarwin) ''
preBuild = lib.optionalString (!isCurrent && stdenv.isDarwin) ''
export NIX_LDFLAGS="$NIX_LDFLAGS -undefined dynamic_lookup"
'';
# https://github.com/dovecot/pigeonhole/blob/2.4.3/src/plugins/settings/Makefile.am#L43-L44
makeFlags = lib.optionals isCurrent [
"PYTHON=${python3.pythonOnBuildForHost.interpreter}"
"SETTINGS_HISTORY_PY=${dovecot}/libexec/dovecot/settings-history.py"
];
enableParallelBuilding = true;
meta = {
@@ -1,11 +0,0 @@
--- a/src/lib-sieve/plugins/extlists/ext-extlists-settings.h
+++ b/src/lib-sieve/plugins/extlists/ext-extlists-settings.h
@@ -12,7 +12,7 @@
const char *name;
/* Maximum size of lookup value */
- size_t max_lookup_size;
+ uoff_t max_lookup_size;
struct {
const char *name;