pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/net/libvncserver NetBSD doens't define __BYTE_ORDER no...
details: https://anonhg.NetBSD.org/pkgsrc/rev/31903210edc5
branches: trunk
changeset: 382941:31903210edc5
user: bouyer <bouyer%pkgsrc.org@localhost>
date: Wed Jul 18 17:55:54 2018 +0000
description:
NetBSD doens't define __BYTE_ORDER nor __BIG_ENDIAN, so the test
# if __BYTE_ORDER == __BIG_ENDIAN
is always true, and e.g. x11vnc wrongly sets bigEndian in the wire
strucure, causing clients to fail.
Check that __BYTE_ORDER is defined before using it, and add a test for
_BYTE_ORDER too.
Bump PKGREVISION
diffstat:
net/libvncserver/Makefile | 4 ++--
net/libvncserver/distinfo | 3 ++-
net/libvncserver/patches/patch-rfb_rfbproto.h | 18 ++++++++++++++++++
3 files changed, 22 insertions(+), 3 deletions(-)
diffs (50 lines):
diff -r 9c78863c81ce -r 31903210edc5 net/libvncserver/Makefile
--- a/net/libvncserver/Makefile Wed Jul 18 16:24:38 2018 +0000
+++ b/net/libvncserver/Makefile Wed Jul 18 17:55:54 2018 +0000
@@ -1,9 +1,9 @@
-# $NetBSD: Makefile,v 1.24 2018/04/17 22:29:33 wiz Exp $
+# $NetBSD: Makefile,v 1.25 2018/07/18 17:55:54 bouyer Exp $
#
DISTNAME= libvncserver-LibVNCServer-0.9.11
PKGNAME= libVNCServer-0.9.11
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= net
MASTER_SITES= ${MASTER_SITE_GITHUB:=LibVNC/}
GITHUB_PROJECT= libvncserver
diff -r 9c78863c81ce -r 31903210edc5 net/libvncserver/distinfo
--- a/net/libvncserver/distinfo Wed Jul 18 16:24:38 2018 +0000
+++ b/net/libvncserver/distinfo Wed Jul 18 17:55:54 2018 +0000
@@ -1,7 +1,8 @@
-$NetBSD: distinfo,v 1.14 2018/01/02 10:09:06 jperkin Exp $
+$NetBSD: distinfo,v 1.15 2018/07/18 17:55:54 bouyer Exp $
SHA1 (libvncserver-LibVNCServer-0.9.11.tar.gz) = d844a2c9e69465d104a8468dce515a49e4db9585
RMD160 (libvncserver-LibVNCServer-0.9.11.tar.gz) = a26da5e88d6571d112dfc48ef94a527b19760a36
SHA512 (libvncserver-LibVNCServer-0.9.11.tar.gz) = e473c081b68dd3cdd96a1756b4f4945ece79d3c8e4cef62140be1699671555fc16d3080e81d764197a14ea83203ffcd0e18c3cc182e012d036e3faae943003fb
Size (libvncserver-LibVNCServer-0.9.11.tar.gz) = 1413739 bytes
SHA1 (patch-libvncserver_websockets.c) = eb4e50f8fcb8442dae54d1360e6950e2ebd4778b
+SHA1 (patch-rfb_rfbproto.h) = 6dcc68a90d444f88ab696616b1aee3eb66708877
diff -r 9c78863c81ce -r 31903210edc5 net/libvncserver/patches/patch-rfb_rfbproto.h
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/net/libvncserver/patches/patch-rfb_rfbproto.h Wed Jul 18 17:55:54 2018 +0000
@@ -0,0 +1,18 @@
+$NetBSD: patch-rfb_rfbproto.h,v 1.1 2018/07/18 17:55:54 bouyer Exp $
+Fix endianess detection on NetBSD
+
+--- rfb/rfbproto.h.orig 2018-07-18 19:35:56.445752955 +0200
++++ rfb/rfbproto.h 2018-07-18 19:36:17.076925368 +0200
+@@ -82,8 +82,11 @@
+ #endif
+
+ #if LIBVNCSERVER_HAVE_ENDIAN_H
++#define _XOPEN_SOURCE
+ # include <endian.h>
+-# if __BYTE_ORDER == __BIG_ENDIAN
++# if defined(__BYTE_ORDER) && __BYTE_ORDER == __BIG_ENDIAN
++# define LIBVNCSERVER_WORDS_BIGENDIAN 1
++# elsif defined(_BYTE_ORDER) && BYTE_ORDER == BIG_ENDIAN
+ # define LIBVNCSERVER_WORDS_BIGENDIAN 1
+ # endif
+ #endif
Home |
Main Index |
Thread Index |
Old Index