Mon Oct 5 04:37:40 2015 UTC ()
patches to undefine DS if sys/regset.h is pulled in on SunOS


(richard)
diff -r1.19 -r1.20 pkgsrc/graphics/libraw/distinfo
diff -r0 -r1.1 pkgsrc/graphics/libraw/patches/patch-internal_libraw__x3f.cpp
diff -r0 -r1.1 pkgsrc/graphics/libraw/patches/patch-src_libraw__cxx.cpp

cvs diff -r1.19 -r1.20 pkgsrc/graphics/libraw/distinfo (expand / switch to unified diff)

--- pkgsrc/graphics/libraw/distinfo 2015/07/18 10:40:20 1.19
+++ pkgsrc/graphics/libraw/distinfo 2015/10/05 04:37:39 1.20
@@ -1,7 +1,9 @@ @@ -1,7 +1,9 @@
1$NetBSD: distinfo,v 1.19 2015/07/18 10:40:20 adam Exp $ 1$NetBSD: distinfo,v 1.20 2015/10/05 04:37:39 richard Exp $
2 2
3SHA1 (LibRaw-0.16.2.tar.gz) = fd74432c9167a5621d24cb5ba0d1fc082a8963b4 3SHA1 (LibRaw-0.16.2.tar.gz) = fd74432c9167a5621d24cb5ba0d1fc082a8963b4
4RMD160 (LibRaw-0.16.2.tar.gz) = 8857b3531be0c96e4715dd7e3f4ba97e9d0f82ac 4RMD160 (LibRaw-0.16.2.tar.gz) = 8857b3531be0c96e4715dd7e3f4ba97e9d0f82ac
5Size (LibRaw-0.16.2.tar.gz) = 1476575 bytes 5Size (LibRaw-0.16.2.tar.gz) = 1476575 bytes
6SHA1 (patch-configure) = 7626ff87dff75da3c7c136b095ee920a0045c064 6SHA1 (patch-configure) = 7626ff87dff75da3c7c136b095ee920a0045c064
 7SHA1 (patch-internal_libraw__x3f.cpp) = c141c9a86193717b829afc2795b9c4d3976fa490
7SHA1 (patch-libraw__r.pc.in) = e691f79c69c5530c93262c270fe7e2f5b1c959d9 8SHA1 (patch-libraw__r.pc.in) = e691f79c69c5530c93262c270fe7e2f5b1c959d9
 9SHA1 (patch-src_libraw__cxx.cpp) = cfbb3afbd0b44ce1bbc24e5af212ad5c53d251b7

File Added: pkgsrc/graphics/libraw/patches/Attic/patch-internal_libraw__x3f.cpp
$NetBSD: patch-internal_libraw__x3f.cpp,v 1.1 2015/10/05 04:37:39 richard Exp $

undefine DS if sys/regset.h is pulled in on SunOS

--- internal/libraw_x3f.cpp.orig	2015-05-16 12:32:15.000000000 +0000
+++ internal/libraw_x3f.cpp
@@ -619,7 +619,9 @@ static x3f_huffman_t *new_huffman(x3f_hu
 /* --------------------------------------------------------------------- */
 /* Creating a new x3f structure from file                                */
 /* --------------------------------------------------------------------- */
-
+#ifdef DS
+#undef DS
+#endif
 /* extern */ x3f_t *x3f_new_from_file(LibRaw_abstract_datastream *infile)
 {
   x3f_t *x3f = (x3f_t *)calloc(1, sizeof(x3f_t));

File Added: pkgsrc/graphics/libraw/patches/Attic/patch-src_libraw__cxx.cpp
$NetBSD: patch-src_libraw__cxx.cpp,v 1.1 2015/10/05 04:37:39 richard Exp $
  
undefine DS if sys/regset.h is pulled in on SunOS                               

--- src/libraw_cxx.cpp.orig	2015-05-16 12:32:15.000000000 +0000
+++ src/libraw_cxx.cpp
@@ -3623,6 +3623,9 @@ void LibRaw::parse_x3f()
   _x3f_data = x3f;
 
   x3f_header_t *H = NULL;
+#ifdef DS
+#undef DS
+#endif
   x3f_directory_section_t *DS = NULL;
 
   H = &x3f->header;