diff --git a/tigervnc-ppc64le.patch b/tigervnc-ppc64le.patch new file mode 100644 index 0000000..53f6ec7 --- /dev/null +++ b/tigervnc-ppc64le.patch @@ -0,0 +1,32 @@ +From cf3b41ab32a894c19de50a2759a38c90cc2c8351 Mon Sep 17 00:00:00 2001 +From: Gustavo Luiz Duarte +Date: Wed, 19 Mar 2014 13:51:18 -0500 +Subject: [PATCH] Add support for ppc64le architecture. + +--- + unix/xserver/include/servermd.h | 6 ++++++ + 1 file changed, 6 insertions(+) + +diff --git a/unix/xserver/include/servermd.h b/unix/xserver/include/servermd.h +index 11f6c10..17951da 100644 +--- a/unix/xserver/include/servermd.h ++++ b/unix/xserver/include/servermd.h +@@ -114,9 +114,15 @@ SOFTWARE. + + #if defined(__powerpc__) || defined(__ppc__) || defined(__ppc64__) + ++#if defined(__BIG_ENDIAN__) + #define IMAGE_BYTE_ORDER MSBFirst + #define BITMAP_BIT_ORDER MSBFirst + #define GLYPHPADBYTES 4 ++#else ++#define IMAGE_BYTE_ORDER LSBFirst ++#define BITMAP_BIT_ORDER LSBFirst ++#define GLYPHPADBYTES 4 ++#endif + + #endif /* PowerPC */ + +-- +1.9.0 + diff --git a/tigervnc.spec b/tigervnc.spec index 458a0bb..8fc5ec7 100644 --- a/tigervnc.spec +++ b/tigervnc.spec @@ -53,6 +53,7 @@ Patch11: tigervnc-format-security.patch Patch12: tigervnc-zrle-crash.patch Patch13: tigervnc-cursor.patch Patch14: tigervnc-xstartup.patch +Patch15: tigervnc-ppc64le.patch %description Virtual Network Computing (VNC) is a remote display system which @@ -189,6 +190,9 @@ popd # Clearer xstartup file (bug #923655). %patch14 -p1 -b .xstartup +# Add ppc64le support (bug #1078495). +%patch15 -p1 -b .ppc64le + %build %ifarch sparcv9 sparc64 s390 s390x export CFLAGS="$RPM_OPT_FLAGS -fPIC" @@ -363,6 +367,7 @@ fi %changelog * Thu Mar 27 2014 Tim Waugh 1.3.1-1 - 1.3.1 (bug #1078806). +- Add ppc64le support (bug #1078495). * Wed Mar 19 2014 Tim Waugh 1.3.0-15 - Disable dri3 to enable building (bug #1063392).