pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/comms/gammu gammu: Fix build on SunOS.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/6b45445e935a
branches:  trunk
changeset: 383456:6b45445e935a
user:      jperkin <jperkin%pkgsrc.org@localhost>
date:      Tue Jul 31 13:13:46 2018 +0000

description:
gammu: Fix build on SunOS.

diffstat:

 comms/gammu/Makefile                            |   4 +++-
 comms/gammu/distinfo                            |   4 +++-
 comms/gammu/patches/patch-smsd_services_pgsql.c |  16 ++++++++++++++++
 comms/gammu/patches/patch-smsd_services_sql.c   |  16 ++++++++++++++++
 4 files changed, 38 insertions(+), 2 deletions(-)

diffs (73 lines):

diff -r daa7dc40f4ef -r 6b45445e935a comms/gammu/Makefile
--- a/comms/gammu/Makefile      Tue Jul 31 12:39:52 2018 +0000
+++ b/comms/gammu/Makefile      Tue Jul 31 13:13:46 2018 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.30 2018/05/16 08:23:29 leot Exp $
+# $NetBSD: Makefile,v 1.31 2018/07/31 13:13:46 jperkin Exp $
 #
 
 DISTNAME=      gammu-1.39.0
@@ -36,6 +36,8 @@
 USE_TOOLS+=    bash:run msgfmt
 REPLACE_BASH=  utils/gammu-config utils/jadmaker
 
+CFLAGS.SunOS+= -Du_int8_t=uint8_t -Du_int32_t=uint32_t
+
 # needed because of https://bugs.cihar.com/view.php?id=908
 BUILDLINK_TRANSFORM+=  rm:-Werror
 
diff -r daa7dc40f4ef -r 6b45445e935a comms/gammu/distinfo
--- a/comms/gammu/distinfo      Tue Jul 31 12:39:52 2018 +0000
+++ b/comms/gammu/distinfo      Tue Jul 31 13:13:46 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.17 2018/05/16 08:23:29 leot Exp $
+$NetBSD: distinfo,v 1.18 2018/07/31 13:13:46 jperkin Exp $
 
 SHA1 (gammu-1.39.0.tar.bz2) = fed18466f714358a9a5a04b0c421bd2e6757f6e4
 RMD160 (gammu-1.39.0.tar.bz2) = fad2d1cd03fbdce0ee35f374a6834a9ab92c2c47
@@ -6,3 +6,5 @@
 Size (gammu-1.39.0.tar.bz2) = 2151226 bytes
 SHA1 (patch-contrib_smscgi_sms__cgi.c) = 39598119eae4fd27d6d1844ca4a846fc79b126c1
 SHA1 (patch-libgammu_phone_at_at-sms.c) = fb9dd703f822f20efa35303b15faba482e39538c
+SHA1 (patch-smsd_services_pgsql.c) = 35d30183851c6d6b14e0450b59a56c858889e701
+SHA1 (patch-smsd_services_sql.c) = 62a2c113f18d767360a598284ac1083b9abb1f29
diff -r daa7dc40f4ef -r 6b45445e935a comms/gammu/patches/patch-smsd_services_pgsql.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/gammu/patches/patch-smsd_services_pgsql.c   Tue Jul 31 13:13:46 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-smsd_services_pgsql.c,v 1.1 2018/07/31 13:13:46 jperkin Exp $
+
+Set _XOPEN_SOURCE correctly.
+
+--- smsd/services/pgsql.c.orig 2018-01-05 10:14:14.000000000 +0000
++++ smsd/services/pgsql.c
+@@ -1,7 +1,9 @@
+ /* (c) 2006 by Andrea Riciputi */
+ /* Copyright (c) 2009 - 2018 Michal Cihar <michal%cihar.com@localhost> */
+ 
++#if !defined(__sun)
+ #define _XOPEN_SOURCE
++#endif
+ #define _BSD_SOURCE
+ #define _DEFAULT_SOURCE
+ #include <time.h>
diff -r daa7dc40f4ef -r 6b45445e935a comms/gammu/patches/patch-smsd_services_sql.c
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/comms/gammu/patches/patch-smsd_services_sql.c     Tue Jul 31 13:13:46 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-smsd_services_sql.c,v 1.1 2018/07/31 13:13:46 jperkin Exp $
+
+Set _XOPEN_SOURCE correctly.
+
+--- smsd/services/sql.c.orig   2018-01-05 10:14:14.000000000 +0000
++++ smsd/services/sql.c
+@@ -9,7 +9,9 @@
+  * Licensed under GNU GPL version 2 or later
+  */
+ 
++#if !defined(__sun)
+ #define _XOPEN_SOURCE
++#endif
+ #define _BSD_SOURCE
+ #define _DEFAULT_SOURCE
+ #include <time.h>



Home | Main Index | Thread Index | Old Index