pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/mail/balsa Various patches to fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/42b5b4f23a79
branches:  trunk
changeset: 362445:42b5b4f23a79
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Mon May 15 13:04:03 2017 +0000

description:
Various patches to fix build on SunOS.

diffstat:

 mail/balsa/Makefile                      |   4 +++-
 mail/balsa/distinfo                      |   5 +++--
 mail/balsa/patches/patch-ag              |   8 +++++---
 mail/balsa/patches/patch-libbalsa_misc.c |  14 ++++++++++++++
 4 files changed, 25 insertions(+), 6 deletions(-)

diffs (79 lines):

diff -r 12953883ef6b -r 42b5b4f23a79 mail/balsa/Makefile
--- a/mail/balsa/Makefile       Mon May 15 12:31:46 2017 +0000
+++ b/mail/balsa/Makefile       Mon May 15 13:04:03 2017 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.128 2017/04/22 21:03:41 adam Exp $
+# $NetBSD: Makefile,v 1.129 2017/05/15 13:04:03 jperkin Exp $
 
 DISTNAME=      balsa-2.4.14
 PKGREVISION=   24
@@ -29,6 +29,8 @@
 EGDIR=         ${PREFIX}/share/examples/balsa
 CONF_FILES=    ${EGDIR}/balsa.soundlist ${PKG_SYSCONFDIR}/sound/events/balsa.soundlist
 
+CFLAGS.SunOS+= -D__EXTENSIONS__
+
 .include "options.mk"
 
 .include "../../devel/gettext-lib/buildlink3.mk"
diff -r 12953883ef6b -r 42b5b4f23a79 mail/balsa/distinfo
--- a/mail/balsa/distinfo       Mon May 15 12:31:46 2017 +0000
+++ b/mail/balsa/distinfo       Mon May 15 13:04:03 2017 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.19 2015/11/03 23:27:01 agc Exp $
+$NetBSD: distinfo,v 1.20 2017/05/15 13:04:03 jperkin Exp $
 
 SHA1 (balsa-2.4.14.tar.bz2) = 7541b10cd268d06d7e4c483c3e4659db901d4581
 RMD160 (balsa-2.4.14.tar.bz2) = 809c0a455097d08a0c2214f000adb2e6497b5380
@@ -7,6 +7,7 @@
 SHA1 (patch-aa) = 2c5e6d7621ad4ce66f6bcd355c1fcf7af1a42539
 SHA1 (patch-ab) = abfb66c9cb552e291f48dc9fe38608df2de5c7d3
 SHA1 (patch-ac) = 061f956f7980ed0694e007be39e209f07f3ed2b7
-SHA1 (patch-ag) = f9cc4534c5dd496b5dd7565794e4273fdeed2b5d
+SHA1 (patch-ag) = ca5a38d07e8b9c4c229776072ae5b442c6b921b6
 SHA1 (patch-ak) = abe90f5117fdcd3381c2a7061cf3ab29e9a3f025
 SHA1 (patch-ba) = 2410b1e5e19c131a9417fbdcc82b62e67e8db5a8
+SHA1 (patch-libbalsa_misc.c) = ac237e4600607c8f0cc5491bef9192004da41885
diff -r 12953883ef6b -r 42b5b4f23a79 mail/balsa/patches/patch-ag
--- a/mail/balsa/patches/patch-ag       Mon May 15 12:31:46 2017 +0000
+++ b/mail/balsa/patches/patch-ag       Mon May 15 13:04:03 2017 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-ag,v 1.6 2012/12/25 21:07:13 joerg Exp $
+$NetBSD: patch-ag,v 1.7 2017/05/15 13:04:03 jperkin Exp $
 
---- libbalsa/imap/imap-handle.c.orig   2010-08-13 19:15:36.000000000 +0000
+--- libbalsa/imap/imap-handle.c.orig   2012-10-29 22:33:31.000000000 +0000
 +++ libbalsa/imap/imap-handle.c
-@@ -16,11 +16,13 @@
+@@ -16,11 +16,15 @@
   * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  
   * 02111-1307, USA.
   */
@@ -10,7 +10,9 @@
  
  #define _POSIX_C_SOURCE 199506L
 -#define _XOPEN_SOURCE 500
++#ifndef __sun
 +#define _XOPEN_SOURCE 520
++#endif
  #define _BSD_SOURCE     1
 +#define _NETBSD_SOURCE
 +
diff -r 12953883ef6b -r 42b5b4f23a79 mail/balsa/patches/patch-libbalsa_misc.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/mail/balsa/patches/patch-libbalsa_misc.c  Mon May 15 13:04:03 2017 +0000
@@ -0,0 +1,14 @@
+$NetBSD: patch-libbalsa_misc.c,v 1.1 2017/05/15 13:04:03 jperkin Exp $
+
+Need fcntl for flock.
+
+--- libbalsa/misc.c.orig       2012-10-29 22:33:31.000000000 +0000
++++ libbalsa/misc.c
+@@ -31,6 +31,7 @@
+ #include <ctype.h>
+ #include <dirent.h>
+ #include <errno.h>
++#include <fcntl.h>
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>



Home | Main Index | Thread Index | Old Index