diff options
author | schmonz <schmonz@pkgsrc.org> | 2021-01-15 22:01:29 +0000 |
---|---|---|
committer | schmonz <schmonz@pkgsrc.org> | 2021-01-15 22:01:29 +0000 |
commit | ba966d9cff7813e6bf96e5a4d86bce98d9dddbbd (patch) | |
tree | efdeaaacac0b7866c2319274adb98896dc81da59 /mail | |
parent | 7716376d2ea01c0c286f8e3272de1930769e709a (diff) | |
download | pkgsrc-ba966d9cff7813e6bf96e5a4d86bce98d9dddbbd.tar.gz |
Fix build on at least FreeBSD, CentOS, NetBSD, and Tribblix.
Diffstat (limited to 'mail')
-rw-r--r-- | mail/bincimap/distinfo | 6 | ||||
-rw-r--r-- | mail/bincimap/patches/patch-src_convert.h | 18 | ||||
-rw-r--r-- | mail/bincimap/patches/patch-src_greeting.cc | 16 | ||||
-rw-r--r-- | mail/bincimap/patches/patch-src_tools.cc | 18 |
4 files changed, 54 insertions, 4 deletions
diff --git a/mail/bincimap/distinfo b/mail/bincimap/distinfo index 9ea6d4e94f2..3eb14f1fcfd 100644 --- a/mail/bincimap/distinfo +++ b/mail/bincimap/distinfo @@ -1,4 +1,4 @@ -$NetBSD: distinfo,v 1.1 2021/01/15 19:50:25 schmonz Exp $ +$NetBSD: distinfo,v 1.2 2021/01/15 22:01:29 schmonz Exp $ SHA1 (bincimap-1.2.13final.tar.gz) = 76e9e96125ef683c7ca3474363723162569e5ec3 RMD160 (bincimap-1.2.13final.tar.gz) = 454bc8d34c52b5cc1af68e55bfdc82ac0f36ced3 @@ -9,4 +9,6 @@ SHA1 (patch-conf_Makefile.in) = 8a979b150aff3c08a9be255be893cbe28094f7f7 SHA1 (patch-conf_bincimap.conf.in) = d1083ebf2b12704545de8797d07c02c309f1ddfa SHA1 (patch-doc_manual_Makefile.in) = 713308a43bfdfc408de368692ae50b159a7db298 SHA1 (patch-man_bincimap-up.1) = e052a7575754a6df7904d61718ad433d2d00eb0f -SHA1 (patch-src_convert.h) = 387c56e49ded666f32680ff6983e1f155024bfde +SHA1 (patch-src_convert.h) = 5425eefd9511746639c5ec9d428bb3dd2356402f +SHA1 (patch-src_greeting.cc) = 99466bd65eadf734dbe84800639cdc25a2f1eaa7 +SHA1 (patch-src_tools.cc) = ead7735ee234b2324c59d55bd4a7ca20a306971f diff --git a/mail/bincimap/patches/patch-src_convert.h b/mail/bincimap/patches/patch-src_convert.h index 35d922a35b1..7e9dda2d159 100644 --- a/mail/bincimap/patches/patch-src_convert.h +++ b/mail/bincimap/patches/patch-src_convert.h @@ -1,10 +1,24 @@ -$NetBSD: patch-src_convert.h,v 1.1 2021/01/15 19:50:25 schmonz Exp $ +$NetBSD: patch-src_convert.h,v 1.2 2021/01/15 22:01:29 schmonz Exp $ Fix "assigning to 'char *' from incompatible type 'const char *'". +Fix "error: 'strchr' was not declared in this scope" on at least NetBSD +and Tribblix. + +Fix "error: '::atoi' has not been declared" on at least CentOS 7. + --- src/convert.h.orig 2005-02-08 20:30:22.000000000 +0000 +++ src/convert.h -@@ -111,7 +111,7 @@ namespace Binc { +@@ -43,6 +43,8 @@ + #include <iostream> + + #include <stdio.h> ++#include <stdlib.h> ++#include <string.h> + #include <sys/stat.h> + + #include "address.h" +@@ -111,7 +113,7 @@ namespace Binc { unsigned char c = *i; unsigned char d = *(i + 1); diff --git a/mail/bincimap/patches/patch-src_greeting.cc b/mail/bincimap/patches/patch-src_greeting.cc new file mode 100644 index 00000000000..fa981c9b3e6 --- /dev/null +++ b/mail/bincimap/patches/patch-src_greeting.cc @@ -0,0 +1,16 @@ +$NetBSD: patch-src_greeting.cc,v 1.1 2021/01/15 22:01:29 schmonz Exp $ + +Fix "error: invalid suffix on literal; C++11 requires a space between +literal and identifier" on at least FreeBSD. + +--- src/greeting.cc.orig 2005-03-22 09:47:34.000000000 +0000 ++++ src/greeting.cc +@@ -69,7 +69,7 @@ void Binc::showGreeting(void) + string tmp = session.globalconfig["Security"]["version in greeting"]; + lowercase(tmp); + if (tmp == "yes") +- version = "v"VERSION" "; ++ version = "v" VERSION" "; + + com << "* OK Welcome to Binc IMAP " << version + << "Copyright (C) 2002-2005 Andreas Aardal Hanssen at " diff --git a/mail/bincimap/patches/patch-src_tools.cc b/mail/bincimap/patches/patch-src_tools.cc new file mode 100644 index 00000000000..4189c754344 --- /dev/null +++ b/mail/bincimap/patches/patch-src_tools.cc @@ -0,0 +1,18 @@ +$NetBSD: patch-src_tools.cc,v 1.1 2021/01/15 22:01:29 schmonz Exp $ + +Fix "error: 'strdup' was not declared in this scope" on at least NetBSD +and Tribblix. + +Fix "error: '::getenv' has not been declared" on at least CentOS 7. + +--- src/tools.cc.orig 2005-01-08 10:20:48.000000000 +0000 ++++ src/tools.cc +@@ -35,6 +35,8 @@ + #include <config.h> + #endif + #include <errno.h> ++#include <stdlib.h> ++#include <string.h> + + #include "tools.h" + |