Merge pull request #217005 from SFrijters/mailutils-3.15

mailutils: 3.14 -> 3.15, add options, tests, parallel build

authored by

Maximilian Bosch and committed by
GitHub
5ed9c487 ccab7388

+17 -29
+17 -29
pkgs/tools/networking/mailutils/default.nix
··· 23 23 , sasl 24 24 , system-sendmail 25 25 , libxcrypt 26 + 27 + , pythonSupport ? true 28 + , guileSupport ? true 26 29 }: 27 30 28 31 stdenv.mkDerivation rec { 29 32 pname = "mailutils"; 30 - version = "3.14"; 33 + version = "3.15"; 31 34 32 35 src = fetchurl { 33 36 url = "mirror://gnu/${pname}/${pname}-${version}.tar.xz"; 34 - hash = "sha256-wMWzj+qLRaSvzUNkh/Knb9VSUJLQN4gTputVQsIScTk="; 37 + hash = "sha256-t9DChsNS/MfaeXjP1hfMZnNrIfqJGqT4iFX1FjVPLds="; 35 38 }; 36 39 37 40 separateDebugInfo = true; ··· 56 59 gdbm 57 60 gnutls 58 61 gss 59 - guile 60 62 libmysqlclient 61 63 mailcap 62 64 ncurses 63 65 pam 64 - python3 65 66 readline 66 67 sasl 67 68 libxcrypt 68 - ] ++ lib.optionals stdenv.isLinux [ nettools ]; 69 + ] ++ lib.optionals stdenv.isLinux [ nettools ] 70 + ++ lib.optionals pythonSupport [ python3 ] 71 + ++ lib.optionals guileSupport [ guile ]; 69 72 70 73 patches = [ 71 74 ./fix-build-mb-len-max.patch ··· 78 81 }) 79 82 ]; 80 83 81 - enableParallelBuilding = false; 84 + enableParallelBuilding = true; 82 85 hardeningDisable = [ "format" ]; 83 86 84 87 configureFlags = [ ··· 88 91 "--with-path-sendmail=${system-sendmail}/bin/sendmail" 89 92 "--with-mail-rc=/etc/mail.rc" 90 93 "DEFAULT_CUPS_CONFDIR=${mailcap}/etc" # provides mime.types to mimeview 91 - ]; 92 - 93 - readmsg-tests = let 94 - p = "https://raw.githubusercontent.com/gentoo/gentoo/9c921e89d51876fd876f250324893fd90c019326/net-mail/mailutils/files"; 95 - in [ 96 - (fetchurl { url = "${p}/hdr.at"; sha256 = "0phpkqyhs26chn63wjns6ydx9468ng3ssbjbfhcvza8h78jlsd98"; }) 97 - (fetchurl { url = "${p}/nohdr.at"; sha256 = "1vkbkfkbqj6ml62s1am8i286hxwnpsmbhbnq0i2i0j1i7iwkk4b7"; }) 98 - (fetchurl { url = "${p}/twomsg.at"; sha256 = "15m29rg2xxa17xhx6jp4s2vwa9d4khw8092vpygqbwlhw68alk9g"; }) 99 - (fetchurl { url = "${p}/weed.at"; sha256 = "1101xakhc99f5gb9cs3mmydn43ayli7b270pzbvh7f9rbvh0d0nh"; }) 100 - ]; 94 + ] ++ lib.optional (!pythonSupport) "--without-python" 95 + ++ lib.optional (!guileSupport) "--without-guile"; 101 96 102 97 nativeCheckInputs = [ dejagnu ]; 103 - doCheck = false; # fails 1 out of a bunch of tests, looks like a bug 98 + doCheck = true; 104 99 doInstallCheck = false; # fails 105 100 106 101 preCheck = '' 107 - # Add missing test files 108 - cp ${builtins.toString readmsg-tests} readmsg/tests/ 109 - for f in hdr.at nohdr.at twomsg.at weed.at; do 110 - mv readmsg/tests/*-$f readmsg/tests/$f 111 - done 112 102 # Disable comsat tests that fail without tty in the sandbox. 113 103 tty -s || echo > comsat/tests/testsuite.at 114 - # Disable lmtp tests that require root spool. 115 - echo > maidag/tests/lmtp.at 116 - # Disable mda tests that require /etc/passwd to contain root. 117 - grep -qo '^root:' /etc/passwd || echo > maidag/tests/mda.at 104 + # Remove broken macro 105 + sed -i '/AT_TESTED/d' libmu_scm/tests/testsuite.at 118 106 # Provide libraries for mhn. 119 107 export LD_LIBRARY_PATH=$(pwd)/lib/.libs 120 108 ''; ··· 141 129 Scheme. 142 130 143 131 The utilities provided by Mailutils include imap4d and pop3d mail 144 - servers, mail reporting utility comsatd, general-purpose mail delivery 145 - agent maidag, mail filtering program sieve, and an implementation of MH 146 - message handling system. 132 + servers, mail reporting utility comsatd, mail filtering program sieve, 133 + and an implementation of MH message handling system. 147 134 ''; 148 135 149 136 license = with licenses; [ ··· 154 141 maintainers = with maintainers; [ orivej vrthra ]; 155 142 156 143 homepage = "https://www.gnu.org/software/mailutils/"; 144 + changelog = "https://git.savannah.gnu.org/cgit/mailutils.git/tree/NEWS"; 157 145 158 146 # Some of the dependencies fail to build on {cyg,dar}win. 159 147 platforms = platforms.gnu ++ platforms.unix;