summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRaúl Porcel <armin76@gentoo.org>2009-11-04 19:12:33 +0000
committerRaúl Porcel <armin76@gentoo.org>2009-11-04 19:12:33 +0000
commit218ca679a5d0db44700390b71892888446cf8731 (patch)
tree9cb8ffc7325f0aeb078f521181d2c1cf29a47d77 /net-misc/tightvnc
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-218ca679a5d0db44700390b71892888446cf8731.tar.gz
gentoo-2-218ca679a5d0db44700390b71892888446cf8731.tar.bz2
gentoo-2-218ca679a5d0db44700390b71892888446cf8731.zip
Add a patch to fix corruption on sparc
(Portage version: 2.1.6.13/cvs/Linux ia64)
Diffstat (limited to 'net-misc/tightvnc')
-rw-r--r--net-misc/tightvnc/ChangeLog6
-rw-r--r--net-misc/tightvnc/files/1.3.10-sparc.patch24
-rw-r--r--net-misc/tightvnc/tightvnc-1.3.10-r1.ebuild3
3 files changed, 31 insertions, 2 deletions
diff --git a/net-misc/tightvnc/ChangeLog b/net-misc/tightvnc/ChangeLog
index 539b979c58c8..645ed92751d3 100644
--- a/net-misc/tightvnc/ChangeLog
+++ b/net-misc/tightvnc/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for net-misc/tightvnc
# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tightvnc/ChangeLog,v 1.143 2009/10/04 17:17:54 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tightvnc/ChangeLog,v 1.144 2009/11/04 19:12:32 armin76 Exp $
+
+ 04 Nov 2009; Raúl Porcel <armin76@gentoo.org> +files/1.3.10-sparc.patch,
+ tightvnc-1.3.10-r1.ebuild:
+ Add a patch to fix corruption on sparc
04 Oct 2009; Raúl Porcel <armin76@gentoo.org> -tightvnc-1.3.9-r2.ebuild,
-tightvnc-1.3.9-r3.ebuild, -tightvnc-1.3.10.ebuild,
diff --git a/net-misc/tightvnc/files/1.3.10-sparc.patch b/net-misc/tightvnc/files/1.3.10-sparc.patch
new file mode 100644
index 000000000000..26b7bddae75b
--- /dev/null
+++ b/net-misc/tightvnc/files/1.3.10-sparc.patch
@@ -0,0 +1,24 @@
+diff -ur vnc_unixsrc.orig/Xvnc/programs/Xserver/include/servermd.h vnc_unixsrc/Xvnc/programs/Xserver/include/servermd.h
+--- vnc_unixsrc.orig/Xvnc/programs/Xserver/include/servermd.h 2009-11-04 18:44:50.000000000 +0000
++++ vnc_unixsrc/Xvnc/programs/Xserver/include/servermd.h 2009-11-04 18:47:48.000000000 +0000
+@@ -421,6 +421,20 @@
+
+ #endif /* Linux/PPC */
+
++#if defined (linux) && defined(__sparc__)
++
++#define IMAGE_BYTE_ORDER MSBFirst
++#define BITMAP_BIT_ORDER MSBFirst
++#define GLYPHPADBYTES 4
++#define GETLEFTBITS_ALIGNMENT 1
++
++#define AVOID_MEMORY_READ
++#define LARGE_INSTRUCTION_CACHE
++#define FAST_CONSTANT_OFFSET_MODE
++#define SHARED_IDCACHE
++
++#endif /* Linux/sparc */
++
+ #if defined(__MACH__) && defined(__POWERPC__)
+
+ #define IMAGE_BYTE_ORDER MSBFirst \ No newline at end of file
diff --git a/net-misc/tightvnc/tightvnc-1.3.10-r1.ebuild b/net-misc/tightvnc/tightvnc-1.3.10-r1.ebuild
index 7ac6d1e854fc..ad401adf8d89 100644
--- a/net-misc/tightvnc/tightvnc-1.3.10-r1.ebuild
+++ b/net-misc/tightvnc/tightvnc-1.3.10-r1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-misc/tightvnc/tightvnc-1.3.10-r1.ebuild,v 1.7 2009/10/04 17:17:54 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tightvnc/tightvnc-1.3.10-r1.ebuild,v 1.8 2009/11/04 19:12:32 armin76 Exp $
inherit eutils toolchain-funcs java-pkg-opt-2
@@ -70,6 +70,7 @@ src_unpack() {
epatch "${FILESDIR}"/1.3.9-fbsd.patch
epatch "${FILESDIR}"/1.3.9-arm.patch
epatch "${FILESDIR}"/1.3.9-sh.patch
+ epatch "${FILESDIR}"/${PV}-sparc.patch
if use java; then
cd "${WORKDIR}"