Commit 22ea5d44 authored by Sören Tempel's avatar Sören Tempel
Browse files

testing/mailutils: fix build with gcc >= 10

parent f1fcbbcf
......@@ -13,7 +13,8 @@ makedepends="readline-dev libtool"
checkdepends="autoconf"
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs $pkgname-servers $pkgname-mh"
source="https://ftp.gnu.org/gnu/mailutils/mailutils-$pkgver.tar.xz
disable-koi8-r-test.patch"
disable-koi8-r-test.patch
fix-build-with-gcc-10.patch"
build() {
./configure \
......@@ -68,5 +69,8 @@ mh() {
rmdir -p "$pkgdir"/usr/share/$pkgname || true
}
sha512sums="1eef9bebeeafbf974e54b87705444ee02b663a86e22442a9ec5db16ade38e6e9a3079ee8a8267393e97d6e9e477917617b2e1d57d3287ab19e4df73b66e5a8d4 mailutils-3.9.tar.xz
d0d78bba10d3ce039bb00657a570fb9411fabf448548994860285701939ae52afd15c007daa85bb18662a67153dda86069afe240b430fbe1b28a45755108f477 disable-koi8-r-test.patch"
sha512sums="
1eef9bebeeafbf974e54b87705444ee02b663a86e22442a9ec5db16ade38e6e9a3079ee8a8267393e97d6e9e477917617b2e1d57d3287ab19e4df73b66e5a8d4 mailutils-3.9.tar.xz
d0d78bba10d3ce039bb00657a570fb9411fabf448548994860285701939ae52afd15c007daa85bb18662a67153dda86069afe240b430fbe1b28a45755108f477 disable-koi8-r-test.patch
7050e5069f82d51971096e7f3c9835a4162d593c38e7e8a60184144c985901e0092c7ab230eed340023909e3b856f2619a2c26f983f4dd9cc5397548e9e173ef fix-build-with-gcc-10.patch
"
Otherwise doesn't compile with -fcommon.
diff -upr mailutils-3.9.orig/imap4d/imap4d.h mailutils-3.9/imap4d/imap4d.h
--- mailutils-3.9.orig/imap4d/imap4d.h 2021-07-10 14:39:56.469994975 +0200
+++ mailutils-3.9/imap4d/imap4d.h 2021-07-10 14:41:29.953368933 +0200
@@ -229,8 +229,6 @@ extern struct mu_tls_config global_tls_c
extern int test_mode;
extern int silent_expunge;
-int tls_available;
-
/* Input functions */
extern mu_stream_t iostream;
extern int io_untagged_response (int, const char *, ...) MU_PRINTFLIKE(2,3);
diff -upr mailutils-3.9.orig/lib/tcpwrap.h mailutils-3.9/lib/tcpwrap.h
--- mailutils-3.9.orig/lib/tcpwrap.h 2021-07-10 14:39:56.526661667 +0200
+++ mailutils-3.9/lib/tcpwrap.h 2021-07-10 14:40:13.370002323 +0200
@@ -17,7 +17,7 @@
#include <mailutils/types.h>
extern int mu_tcp_wrapper_enable;
-const char *mu_tcp_wrapper_daemon;
+extern const char *mu_tcp_wrapper_daemon;
extern int mu_tcpwrapper_access (int fd);
extern void mu_tcpwrapper_cfg_init (void);
extern int mu_tcp_wrapper_prefork (int fd,
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment