commit:     a07cc68a64452e90916ced64870b11455a898a76
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Sat Jan  9 11:44:03 2016 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Sat Jan  9 11:44:32 2016 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a07cc68a

net-misc/tigervnc: Fix byte order issues (bug #567568).

Package-Manager: portage-2.2.26

 .../tigervnc/files/tigervnc-1.4.2-byteorder.patch   | 21 +++++++++++++++++++++
 net-misc/tigervnc/tigervnc-1.4.2-r2.ebuild          |  1 +
 2 files changed, 22 insertions(+)

diff --git a/net-misc/tigervnc/files/tigervnc-1.4.2-byteorder.patch 
b/net-misc/tigervnc/files/tigervnc-1.4.2-byteorder.patch
new file mode 100644
index 0000000..bd2dc51
--- /dev/null
+++ b/net-misc/tigervnc/files/tigervnc-1.4.2-byteorder.patch
@@ -0,0 +1,21 @@
+--- a/include/dix-config.h.in
++++ b/include/dix-config.h.in
+@@ -3,6 +3,14 @@
+ #ifndef _DIX_CONFIG_H_
+ #define _DIX_CONFIG_H_
+ 
++#ifndef X_BIG_ENDIAN
++#  define X_BIG_ENDIAN 4321
++#endif
++
++#ifndef X_LITTLE_ENDIAN
++#  define X_LITTLE_ENDIAN 1234
++#endif
++
+ /* Support BigRequests extension */
+ #undef BIGREQS
+ 
+-- 
+2.3.5
+
+

diff --git a/net-misc/tigervnc/tigervnc-1.4.2-r2.ebuild 
b/net-misc/tigervnc/tigervnc-1.4.2-r2.ebuild
index b2a56d1..13675ae 100644
--- a/net-misc/tigervnc/tigervnc-1.4.2-r2.ebuild
+++ b/net-misc/tigervnc/tigervnc-1.4.2-r2.ebuild
@@ -114,6 +114,7 @@ src_prepare() {
                cd unix/xserver
                epatch 
"${WORKDIR}"/patches/1000_server_xserver-1.16-rebased.patch
                epatch "${WORKDIR}"/patches/1005_server_xserver-1.17.patch
+               epatch "${FILESDIR}"/tigervnc-1.4.2-byteorder.patch
                eautoreconf
        fi
 }

Reply via email to