tags 769364 + patch user debian-...@lists.debian.org usertags 769364 arm64 usertags 794326 arm64 thanks
Hi, With the attached patch, tightvnc server works for me with bpp 24 on an arm64 host. Riku
diff -Nru tightvnc-1.3.9/debian/changelog tightvnc-1.3.9/debian/changelog --- tightvnc-1.3.9/debian/changelog 2016-01-24 21:23:35.000000000 +0200 +++ tightvnc-1.3.9/debian/changelog 2016-03-23 15:24:23.000000000 +0200 @@ -1,3 +1,10 @@ +tightvnc (1.3.9-7.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Add patch to complete arm64 port, Closes: #769364 + + -- Riku Voipio <riku.voi...@linaro.org> Wed, 23 Mar 2016 15:23:49 +0200 + tightvnc (1.3.9-7) unstable; urgency=medium * Applied a patch from upstream to fix a crash. Closes: #782620. diff -Nru tightvnc-1.3.9/debian/patches/more-arm64-fixes.patch tightvnc-1.3.9/debian/patches/more-arm64-fixes.patch --- tightvnc-1.3.9/debian/patches/more-arm64-fixes.patch 1970-01-01 02:00:00.000000000 +0200 +++ tightvnc-1.3.9/debian/patches/more-arm64-fixes.patch 2016-03-23 15:16:24.000000000 +0200 @@ -0,0 +1,33 @@ +--- a/Xvnc/include/Xmd.h ++++ b/Xvnc/include/Xmd.h +@@ -59,7 +59,7 @@ + #ifdef CRAY + #define WORD64 /* 64-bit architecture */ + #endif +-#if defined(__alpha) || defined(__alpha__) || defined(__x86_64__) || defined(__powerpc64__) ++#if defined(__alpha) || defined(__alpha__) || defined(__x86_64__) || defined(__powerpc64__) || defined(__aarch64__) + #define LONG64 /* 32/64-bit architecture */ + #endif + #ifdef __sgi +--- a/Xvnc/programs/Xserver/include/servermd.h ++++ b/Xvnc/programs/Xserver/include/servermd.h +@@ -405,6 +405,19 @@ + + #endif /* linux/m68k */ + ++#if defined (linux) && defined(__aarch64__) ++#if defined(__LITTLE_ENDIAN__) ++#define IMAGE_BYTE_ORDER LSBFirst ++#define BITMAP_BIT_ORDER LSBFirst ++#else ++#define IMAGE_BYTE_ORDER MSBFirst ++#define BITMAP_BIT_ORDER MSBFirst ++#endif ++#define GLYPHPADBYTES 4 ++#define GETLEFTBITS_ALIGNMENT 1 ++ ++#endif /* linux/aarch64 */ ++ + #if defined (linux) && defined(__powerpc__) + + #ifdef __powerpc64__ diff -Nru tightvnc-1.3.9/debian/patches/series tightvnc-1.3.9/debian/patches/series --- tightvnc-1.3.9/debian/patches/series 2016-01-24 21:20:13.000000000 +0200 +++ tightvnc-1.3.9/debian/patches/series 2016-03-23 13:50:46.000000000 +0200 @@ -5,3 +5,4 @@ aarch64.patch ppc64el.patch 782620-crashfix.patch +more-arm64-fixes.patch