diff options
author | Tim Harder <radhermit@gentoo.org> | 2018-12-25 13:18:21 -0600 |
---|---|---|
committer | Tim Harder <radhermit@gentoo.org> | 2018-12-25 13:28:57 -0600 |
commit | 7a9a1e95090d8c20172dbe7f51d267240cde2bd4 (patch) | |
tree | ebaed04b95d92a8d4076f5b6790eb360c38f8e73 /mail-filter/maildrop/files | |
parent | mail-client/cone: version bump to 1.0 (diff) | |
download | gentoo-7a9a1e95090d8c20172dbe7f51d267240cde2bd4.tar.gz gentoo-7a9a1e95090d8c20172dbe7f51d267240cde2bd4.tar.bz2 gentoo-7a9a1e95090d8c20172dbe7f51d267240cde2bd4.zip |
mail-filter/maildrop: version bump to 3.0.0
Closes: https://bugs.gentoo.org/582928
Closes: https://bugs.gentoo.org/639124
Closes: https://bugs.gentoo.org/657288
Signed-off-by: Tim Harder <radhermit@gentoo.org>
Diffstat (limited to 'mail-filter/maildrop/files')
-rw-r--r-- | mail-filter/maildrop/files/maildrop-3.0.0-testsuite.patch | 65 |
1 files changed, 65 insertions, 0 deletions
diff --git a/mail-filter/maildrop/files/maildrop-3.0.0-testsuite.patch b/mail-filter/maildrop/files/maildrop-3.0.0-testsuite.patch new file mode 100644 index 000000000000..a6aa1626e1b7 --- /dev/null +++ b/mail-filter/maildrop/files/maildrop-3.0.0-testsuite.patch @@ -0,0 +1,65 @@ +Force en_US locale for certain tests. + +--- maildrop-3.0.0/libs/maildrop/Makefile.am ++++ maildrop-3.0.0/libs/maildrop/Makefile.am +@@ -69,9 +69,11 @@ + maildrop.lsm testsuite.txt.idn testsuite2 + + check-am: ++if HAS_EN_US + @chmod +x testsuite + ./testsuite | cmp -s - $(srcdir)/testsuite.txt.idn + @SHELL@ $(srcdir)/testsuite2 ++endif + + noinst_DATA=maildrop.html maildrop.1 maildropfilter.html maildropfilter.7 \ + maildropgdbm.html maildropgdbm.7 +--- maildrop-3.0.0/libs/maildrop/configure.ac ++++ maildrop-3.0.0/libs/maildrop/configure.ac +@@ -195,6 +195,15 @@ + AC_DEFINE_UNQUOTED(MAXLONGSIZE, $MAXLONGSIZE, + [ Maximum character size of a long ]) + ++dnl check for en_US locale ++check_en_US() { ++ locale -a | grep en_US.utf8 > /dev/null ++ return $? ++} ++AC_MSG_CHECKING([for en_US.utf8]) ++AM_CONDITIONAL([HAS_EN_US], [check_en_US]) ++AM_COND_IF([HAS_EN_US],[AC_MSG_RESULT([yes])],[AC_MSG_RESULT([not found])]) ++ + dnl Checks for library functions. + + AC_FUNC_CLOSEDIR_VOID +--- maildrop-3.0.0/libs/rfc2045/Makefile.am ++++ maildrop-3.0.0/libs/rfc2045/Makefile.am +@@ -84,7 +84,10 @@ + endif + + check-am: ++if HAS_EN_US + @SHELL@ $(srcdir)/testsuite | cmp -s - $(srcdir)/$(TESTSUITE) + @SHELL@ $(srcdir)/testsuitemm | cmp -s - $(srcdir)/testsuitemm.txt + @SHELL@ $(srcdir)/testrfc3676parsersuite | diff -U 3 $(srcdir)/testrfc3676parsersuite.txt - + ./testrfc6533parser ++endif ++ +--- maildrop-3.0.0/libs/rfc2045/configure.ac ++++ maildrop-3.0.0/libs/rfc2045/configure.ac +@@ -62,6 +62,15 @@ + AC_CHECK_FUNC(strncasecmp,,CFLAGS="$CFLAGS -Dstrncasecmp=strnicmp") + AC_CHECK_FUNC(strcasecmp,,CFLAGS="$CFLAGS -Dstrcasecmp=stricmp") + ++dnl check for en_US locale ++check_en_US() { ++ locale -a | grep en_US.utf8 > /dev/null ++ return $? ++} ++AC_MSG_CHECKING([for en_US.utf8]) ++AM_CONDITIONAL([HAS_EN_US], [check_en_US]) ++AM_COND_IF([HAS_EN_US],[AC_MSG_RESULT([yes])],[AC_MSG_RESULT([not found])]) ++ + AC_ARG_WITH(package, [], package="$withval", + [ + package="$PACKAGE" |