pkgsrc-Changes archive

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

CVS commit: pkgsrc/comms/gammu



Module Name:    pkgsrc
Committed By:   jperkin
Date:           Tue Jul 31 13:13:46 UTC 2018

Modified Files:
        pkgsrc/comms/gammu: Makefile distinfo
Added Files:
        pkgsrc/comms/gammu/patches: patch-smsd_services_pgsql.c
            patch-smsd_services_sql.c

Log Message:
gammu: Fix build on SunOS.


To generate a diff of this commit:
cvs rdiff -u -r1.30 -r1.31 pkgsrc/comms/gammu/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/comms/gammu/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/comms/gammu/patches/patch-smsd_services_pgsql.c \
    pkgsrc/comms/gammu/patches/patch-smsd_services_sql.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/comms/gammu/Makefile
diff -u pkgsrc/comms/gammu/Makefile:1.30 pkgsrc/comms/gammu/Makefile:1.31
--- pkgsrc/comms/gammu/Makefile:1.30    Wed May 16 08:23:29 2018
+++ pkgsrc/comms/gammu/Makefile Tue Jul 31 13:13:46 2018
@@ -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_LANGUAGES=        c c++
 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
 

Index: pkgsrc/comms/gammu/distinfo
diff -u pkgsrc/comms/gammu/distinfo:1.17 pkgsrc/comms/gammu/distinfo:1.18
--- pkgsrc/comms/gammu/distinfo:1.17    Wed May 16 08:23:29 2018
+++ pkgsrc/comms/gammu/distinfo Tue Jul 31 13:13:46 2018
@@ -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 @@ SHA512 (gammu-1.39.0.tar.bz2) = ed8994f6
 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

Added files:

Index: pkgsrc/comms/gammu/patches/patch-smsd_services_pgsql.c
diff -u /dev/null pkgsrc/comms/gammu/patches/patch-smsd_services_pgsql.c:1.1
--- /dev/null   Tue Jul 31 13:13:46 2018
+++ pkgsrc/comms/gammu/patches/patch-smsd_services_pgsql.c      Tue Jul 31 13:13:46 2018
@@ -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>
Index: pkgsrc/comms/gammu/patches/patch-smsd_services_sql.c
diff -u /dev/null pkgsrc/comms/gammu/patches/patch-smsd_services_sql.c:1.1
--- /dev/null   Tue Jul 31 13:13:46 2018
+++ pkgsrc/comms/gammu/patches/patch-smsd_services_sql.c        Tue Jul 31 13:13:46 2018
@@ -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