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