pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/converters/p5-Sereal-Decoder Add patch to fix the buil...
details: https://anonhg.NetBSD.org/pkgsrc/rev/585a7877810f
branches: trunk
changeset: 355742:585a7877810f
user: wiedi <wiedi%pkgsrc.org@localhost>
date: Sun Dec 11 20:30:35 2016 +0000
description:
Add patch to fix the build when using gcc on SunOS
diffstat:
converters/p5-Sereal-Decoder/Makefile | 4 +-
converters/p5-Sereal-Decoder/distinfo | 3 +-
converters/p5-Sereal-Decoder/patches/patch-snappy_csnappy__internal__userspace.h | 30 ++++++++++
3 files changed, 34 insertions(+), 3 deletions(-)
diffs (60 lines):
diff -r dd7102f7b4b9 -r 585a7877810f converters/p5-Sereal-Decoder/Makefile
--- a/converters/p5-Sereal-Decoder/Makefile Sun Dec 11 19:42:45 2016 +0000
+++ b/converters/p5-Sereal-Decoder/Makefile Sun Dec 11 20:30:35 2016 +0000
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.8 2016/06/08 19:22:21 wiz Exp $
+# $NetBSD: Makefile,v 1.9 2016/12/11 20:30:35 wiedi Exp $
DISTNAME= Sereal-Decoder-3.014
PKGNAME= p5-${DISTNAME}
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= security perl5 converters
MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=../../CPAN/authors/id/Y/YV/YVES/}
diff -r dd7102f7b4b9 -r 585a7877810f converters/p5-Sereal-Decoder/distinfo
--- a/converters/p5-Sereal-Decoder/distinfo Sun Dec 11 19:42:45 2016 +0000
+++ b/converters/p5-Sereal-Decoder/distinfo Sun Dec 11 20:30:35 2016 +0000
@@ -1,6 +1,7 @@
-$NetBSD: distinfo,v 1.6 2016/05/08 15:07:40 wen Exp $
+$NetBSD: distinfo,v 1.7 2016/12/11 20:30:35 wiedi Exp $
SHA1 (Sereal-Decoder-3.014.tar.gz) = 79962f925b2f7dc3920c913d0b033da860a84012
RMD160 (Sereal-Decoder-3.014.tar.gz) = bc15b504e216305349fd5192f337202d93e21480
SHA512 (Sereal-Decoder-3.014.tar.gz) = 00ac49d18033fa177fa12d36b0527f327eaed54c96a065783da6c209db24764b4487464312a933ac24d51d94ef79293c0cb1aa938f6e4704a3b0a11b30151e22
Size (Sereal-Decoder-3.014.tar.gz) = 369546 bytes
+SHA1 (patch-snappy_csnappy__internal__userspace.h) = 604f36231909881d4c424c06cd0b6065b4912006
diff -r dd7102f7b4b9 -r 585a7877810f converters/p5-Sereal-Decoder/patches/patch-snappy_csnappy__internal__userspace.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/converters/p5-Sereal-Decoder/patches/patch-snappy_csnappy__internal__userspace.h Sun Dec 11 20:30:35 2016 +0000
@@ -0,0 +1,30 @@
+$NetBSD: patch-snappy_csnappy__internal__userspace.h,v 1.1 2016/12/11 20:30:35 wiedi Exp $
+
+reorder so that __sun matches before __GNUC__
+
+--- snappy/csnappy_internal_userspace.h.orig 2015-11-24 17:55:03.000000000 +0000
++++ snappy/csnappy_internal_userspace.h
+@@ -154,11 +154,6 @@ Albert Lee
+ #define __LITTLE_ENDIAN LITTLE_ENDIAN
+ #define __BIG_ENDIAN BIG_ENDIAN
+
+-#elif defined(__GNUC__) || defined(__ANDROID__) || defined(__CYGWIN__)
+-
+-#include <endian.h>
+-#include <byteswap.h>
+-
+ #elif defined(__sun)
+
+ #include <sys/byteorder.h>
+@@ -173,6 +168,11 @@ Albert Lee
+ #define __BYTE_ORDER __BIG_ENDIAN
+ #endif
+
++#elif defined(__GNUC__) || defined(__ANDROID__) || defined(__CYGWIN__)
++
++#include <endian.h>
++#include <byteswap.h>
++
+ #elif defined(__hpux)
+
+ #ifdef __LP64__
Home |
Main Index |
Thread Index |
Old Index