Add ppc64le support (bug #1078495).

Resolves: rhbz#1078495
This commit is contained in:
Tim Waugh 2014-03-27 13:29:21 +00:00
parent 408d52b04e
commit 30ea4b666c
2 changed files with 37 additions and 0 deletions

32
tigervnc-ppc64le.patch Normal file
View File

@ -0,0 +1,32 @@
From cf3b41ab32a894c19de50a2759a38c90cc2c8351 Mon Sep 17 00:00:00 2001
From: Gustavo Luiz Duarte <gustavold@linux.vnet.ibm.com>
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

View File

@ -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 <twaugh@redhat.com> 1.3.1-1
- 1.3.1 (bug #1078806).
- Add ppc64le support (bug #1078495).
* Wed Mar 19 2014 Tim Waugh <twaugh@redhat.com> 1.3.0-15
- Disable dri3 to enable building (bug #1063392).