Merge pull request #16688 from vrthra/mailutils

mailutils: fix build break
This commit is contained in:
Arseniy Seroka 2016-07-04 18:01:47 +03:00 committed by GitHub
commit dc0c01f929
3 changed files with 26 additions and 10 deletions

View File

@ -1,7 +1,6 @@
{ fetchurl, stdenv, gettext, gdbm, libtool, pam, readline { fetchurl, stdenv, gettext, gdbm, libtool, pam, readline
, ncurses, gnutls, mysql, guile, texinfo, gnum4, dejagnu, sendmailPath ? "/var/setuid-wrappers/sendmail" }: , ncurses, gnutls, sasl, fribidi, gss , mysql, guile, texinfo,
gnum4, dejagnu, nettools }:
/* TODO: Add GNU SASL, GNU GSSAPI, and FreeBidi. */
stdenv.mkDerivation rec { stdenv.mkDerivation rec {
name = "mailutils-2.2"; name = "mailutils-2.2";
@ -11,17 +10,19 @@ stdenv.mkDerivation rec {
sha256 = "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65"; sha256 = "0szbqa12zqzldqyw97lxqax3ja2adis83i7brdfsxmrfw68iaf65";
}; };
patches = [ ./path-to-cat.patch ./no-gets.patch ]; patches = [ ./path-to-cat.patch ./no-gets.patch ./scm_c_string.patch ];
configureFlags = "--with-path-sendmail=${sendmailPath}"; configureFlags = [
"--with-gsasl"
"--with-gssapi=${gss}"
];
buildInputs = buildInputs =
[ gettext gdbm libtool pam readline ncurses [ gettext gdbm libtool pam readline ncurses
gnutls mysql.lib guile texinfo gnum4 ] gnutls mysql.lib guile texinfo gnum4 sasl fribidi gss nettools ]
++ stdenv.lib.optional doCheck dejagnu; ++ stdenv.lib.optional doCheck dejagnu;
# Tests fail since gcc 4.8 doCheck = true;
doCheck = false;
meta = with stdenv.lib; { meta = with stdenv.lib; {
description = "Rich and powerful protocol-independent mail framework"; description = "Rich and powerful protocol-independent mail framework";
@ -51,7 +52,7 @@ stdenv.mkDerivation rec {
gpl3Plus /* tools */ gpl3Plus /* tools */
]; ];
maintainers = [ ]; maintainers = with maintainers; [ vrthra ];
homepage = http://www.gnu.org/software/mailutils/; homepage = http://www.gnu.org/software/mailutils/;

View File

@ -0,0 +1,15 @@
See https://lists.gnu.org/archive/html/bug-mailutils/2010-10/msg00005.html
diff -u mailutils-2.2/libmu_scm/mu_message.c mailutils-2.2.new/libmu_scm/mu_message.c
--- mailutils-2.2/libmu_scm/mu_message.c 2010-04-18 10:29:07.000000000 -0700
+++ mailutils-2.2.new/libmu_scm/mu_message.c 2016-07-03 21:18:53.746185547 -0700
@@ -510,8 +510,8 @@
{
SCM car = SCM_CAR (lst);
if (scm_is_string (car)
&& mu_c_strncasecmp (scm_i_string_chars (car), name,
- scm_i_string_length (car)) == 0)
+ scm_c_string_length (car)) == 0)
return 1;
}
return 0;

View File

@ -2429,7 +2429,7 @@ in
mailpile = callPackage ../applications/networking/mailreaders/mailpile { }; mailpile = callPackage ../applications/networking/mailreaders/mailpile { };
mailutils = callPackage ../tools/networking/mailutils { mailutils = callPackage ../tools/networking/mailutils {
guile = guile_1_8; sasl = gsasl;
}; };
email = callPackage ../tools/networking/email { }; email = callPackage ../tools/networking/email { };