pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/devel/libgphoto2 libgphoto2: Set _{POSIX, XOPEN}*_SOURC...
details: https://anonhg.NetBSD.org/pkgsrc/rev/b13efab1ca10
branches: trunk
changeset: 374899:b13efab1ca10
user: jperkin <jperkin%pkgsrc.org@localhost>
date: Wed Jan 31 10:53:40 2018 +0000
description:
libgphoto2: Set _{POSIX,XOPEN}*_SOURCE correctly.
diffstat:
devel/libgphoto2/distinfo | 9 +++-
devel/libgphoto2/patches/patch-camlibs_barbie_barbie.c | 16 ++++++
devel/libgphoto2/patches/patch-camlibs_kodak_dc120_dc120.c | 16 ++++++
devel/libgphoto2/patches/patch-camlibs_kodak_dc120_library.c | 16 ++++++
devel/libgphoto2/patches/patch-camlibs_panasonic_coolshot_library.c | 16 ++++++
devel/libgphoto2/patches/patch-camlibs_st2205_st2205.c | 16 ++++++
devel/libgphoto2/patches/patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h | 26 ++++++++++
devel/libgphoto2/patches/patch-libgphoto2_gphoto2-file.c | 16 ++++++
8 files changed, 130 insertions(+), 1 deletions(-)
diffs (172 lines):
diff -r 8430e4551b23 -r b13efab1ca10 devel/libgphoto2/distinfo
--- a/devel/libgphoto2/distinfo Wed Jan 31 10:43:03 2018 +0000
+++ b/devel/libgphoto2/distinfo Wed Jan 31 10:53:40 2018 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.28 2016/02/04 11:58:00 wiz Exp $
+$NetBSD: distinfo,v 1.29 2018/01/31 10:53:40 jperkin Exp $
SHA1 (libgphoto2-2.5.8.tar.bz2) = 976feb07d51026e6ca647f9fa333c500c5e0c041
RMD160 (libgphoto2-2.5.8.tar.bz2) = bbb57fdace9783f9829bafbd89818949f6d0fce3
@@ -9,5 +9,12 @@
SHA1 (patch-ao) = 01e7eea353ef12b97b54aeb34f00abfd1f50c3ff
SHA1 (patch-camlibs_ax203_jpeg__memsrcdest.c) = 763f39f07023aa82de6e91014a3fbf19e9e79afa
SHA1 (patch-camlibs_ax203_jpeg__memsrcdest.h) = a78c6fd04f1fb72863ce609ac3ad25ebe12dc51c
+SHA1 (patch-camlibs_barbie_barbie.c) = 0dc3d60155ce221b356d59c173d5842b9b2cc98d
SHA1 (patch-camlibs_jl2005c_jpeg__memsrcdest.c) = 0b178dc031b0b051a230eff6cc6c322596d1a8ee
SHA1 (patch-camlibs_jl2005c_jpeg__memsrcdest.h) = 49bff8c0523d9cf87be92856cef3dd9127b983a0
+SHA1 (patch-camlibs_kodak_dc120_dc120.c) = 5b009334d954fcfa7b852281fa0bcc73b7355bbc
+SHA1 (patch-camlibs_kodak_dc120_library.c) = da5842b447e5cf2627c52b2fed64ec9b12d427d5
+SHA1 (patch-camlibs_panasonic_coolshot_library.c) = bb476c660d8ef011f11da119a718357d9672aadf
+SHA1 (patch-camlibs_st2205_st2205.c) = 2269a9d6d143bd74c49e21fafb706c6ee528748e
+SHA1 (patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h) = 9f62a7c4213f8be273b6da7b2cbbd1f68e697631
+SHA1 (patch-libgphoto2_gphoto2-file.c) = 2b63f2e3bb3b6ef73c8d860efdda5e342f093eb8
diff -r 8430e4551b23 -r b13efab1ca10 devel/libgphoto2/patches/patch-camlibs_barbie_barbie.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libgphoto2/patches/patch-camlibs_barbie_barbie.c Wed Jan 31 10:53:40 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_barbie_barbie.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/barbie/barbie.c.orig 2014-06-04 18:19:35.000000000 +0000
++++ camlibs/barbie/barbie.c
+@@ -21,7 +21,9 @@
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA
+ */
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 199309L
++#endif
+
+ #include "config.h"
+
diff -r 8430e4551b23 -r b13efab1ca10 devel/libgphoto2/patches/patch-camlibs_kodak_dc120_dc120.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libgphoto2/patches/patch-camlibs_kodak_dc120_dc120.c Wed Jan 31 10:53:40 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_kodak_dc120_dc120.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/kodak/dc120/dc120.c.orig 2015-02-22 08:30:09.000000000 +0000
++++ camlibs/kodak/dc120/dc120.c
+@@ -19,7 +19,9 @@
+ */
+
+ #define _BSD_SOURCE
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 199309L
++#endif
+
+ #include "config.h"
+
diff -r 8430e4551b23 -r b13efab1ca10 devel/libgphoto2/patches/patch-camlibs_kodak_dc120_library.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libgphoto2/patches/patch-camlibs_kodak_dc120_library.c Wed Jan 31 10:53:40 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_kodak_dc120_library.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/kodak/dc120/library.c.orig 2015-02-22 08:30:12.000000000 +0000
++++ camlibs/kodak/dc120/library.c
+@@ -19,7 +19,9 @@
+ */
+
+ #define _BSD_SOURCE
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 199309L
++#endif
+ #include "config.h"
+
+ #include <stdio.h>
diff -r 8430e4551b23 -r b13efab1ca10 devel/libgphoto2/patches/patch-camlibs_panasonic_coolshot_library.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libgphoto2/patches/patch-camlibs_panasonic_coolshot_library.c Wed Jan 31 10:53:40 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_panasonic_coolshot_library.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/panasonic/coolshot/library.c.orig 2014-06-27 05:31:22.000000000 +0000
++++ camlibs/panasonic/coolshot/library.c
+@@ -24,7 +24,9 @@
+ /* Boston, MA 02110-1301 USA */
+ /****************************************************************/
+
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 199309L
++#endif
+ #define _BSD_SOURCE
+
+ #include "config.h"
diff -r 8430e4551b23 -r b13efab1ca10 devel/libgphoto2/patches/patch-camlibs_st2205_st2205.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libgphoto2/patches/patch-camlibs_st2205_st2205.c Wed Jan 31 10:53:40 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-camlibs_st2205_st2205.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_C_SOURCE correctly.
+
+--- camlibs/st2205/st2205.c.orig 2014-07-22 21:59:09.000000000 +0000
++++ camlibs/st2205/st2205.c
+@@ -18,7 +18,9 @@
+ * Boston, MA 02110-1301 USA
+ */
+ #define _BSD_SOURCE
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_C_SOURCE 1
++#endif
+ #include "config.h"
+
+ #include <stdio.h>
diff -r 8430e4551b23 -r b13efab1ca10 devel/libgphoto2/patches/patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libgphoto2/patches/patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h Wed Jan 31 10:53:40 2018 +0000
@@ -0,0 +1,26 @@
+$NetBSD: patch-libgphoto2__port_gphoto2_gphoto2-port-portability.h,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _XOPEN_SOURCE / _POSIX_C_SOURCE correctly.
+
+--- libgphoto2_port/gphoto2/gphoto2-port-portability.h.orig 2014-06-27 05:26:01.000000000 +0000
++++ libgphoto2_port/gphoto2/gphoto2-port-portability.h
+@@ -176,7 +176,9 @@ typedef struct {
+
+ /* XOPEN needed for usleep */
+ #ifndef _XOPEN_SOURCE
++# if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ # define _XOPEN_SOURCE 500
++# endif
+ #else
+ # if ((_XOPEN_SOURCE - 0) < 500)
+ # undef _XOPEN_SOURCE
+@@ -186,7 +188,9 @@ typedef struct {
+
+ /* for nanosleep */
+ # ifndef _POSIX_C_SOURCE
++# if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ # define _POSIX_C_SOURCE 199309
++# endif
+ # endif
+ # include <time.h>
+
diff -r 8430e4551b23 -r b13efab1ca10 devel/libgphoto2/patches/patch-libgphoto2_gphoto2-file.c
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/devel/libgphoto2/patches/patch-libgphoto2_gphoto2-file.c Wed Jan 31 10:53:40 2018 +0000
@@ -0,0 +1,16 @@
+$NetBSD: patch-libgphoto2_gphoto2-file.c,v 1.1 2018/01/31 10:53:40 jperkin Exp $
+
+Set _POSIX_SOURCE correctly.
+
+--- libgphoto2/gphoto2-file.c.orig 2014-11-05 20:37:59.000000000 +0000
++++ libgphoto2/gphoto2-file.c
+@@ -24,7 +24,9 @@
+ * This file contains internal functions. Use of these functions from
+ * external software modules is considered <strong>deprecated</strong>.
+ */
++#if !defined(__sun) || (__STDC_VERSION__-0 < 199901L)
+ #define _POSIX_SOURCE
++#endif
+ #define _BSD_SOURCE
+
+ #include "config.h"
Home |
Main Index |
Thread Index |
Old Index