Unverified Commit c4fbd818 authored by Sizhe Zhao's avatar Sizhe Zhao Committed by GitHub
Browse files

dovecot_2_4: 2.4.2 -> 2.4.3 (#504136)

parents f6287cbc 5c91cd7c
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
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
Original line number Diff line number Diff line
@@ -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
Original line number Diff line number Diff line
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";
+8 −1
Original line number Diff line number Diff line
@@ -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 = {
+0 −11
Original line number Diff line number Diff line
--- 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;