Source: libvncserver
Severity: normal
Tags: patch
User: [email protected]
Usertags: ppc64el

Dear Maintainer,

The package libvncserver fails to build from source on ppc64el.
The identification which is imported from acinclude.m4 to configure, does
not support ppc64el and the build breaks.

Since that piece of code is not generated by autoreconf, but comes from a 
customized m4, I included the ppc64el part into it.

You can see the aforementioned modification in the patch attached.
Please let me know your comments.

Thanks!
Fernando

-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)

Kernel: Linux 3.13-1-powerpc64le (SMP w/16 CPU cores)
Locale: LANG=en_US.utf8, LC_CTYPE=en_US.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
diff -Nru libvncserver-0.9.9+dfsg/debian/changelog libvncserver-0.9.9+dfsg/debian/changelog
--- libvncserver-0.9.9+dfsg/debian/changelog	2014-05-01 08:20:24.000000000 +0000
+++ libvncserver-0.9.9+dfsg/debian/changelog	2014-08-01 19:58:13.000000000 +0000
@@ -1,3 +1,10 @@
+libvncserver (0.9.9+dfsg-5ppc64el1) UNRELEASED; urgency=medium
+
+  * Added ppc64el to acinclude.m4, since the ABI identification is not being automatically
+    generated with autoreconf in configure file.
+
+ -- Fernando Seiti Furusato <[email protected]>  Fri, 01 Aug 2014 19:57:05 +0000
+
 libvncserver (0.9.9+dfsg-5) unstable; urgency=medium
 
   * debian/patches/listenSock.patch:
diff -Nru libvncserver-0.9.9+dfsg/debian/patches/add-ppc64el.patch libvncserver-0.9.9+dfsg/debian/patches/add-ppc64el.patch
--- libvncserver-0.9.9+dfsg/debian/patches/add-ppc64el.patch	1970-01-01 00:00:00.000000000 +0000
+++ libvncserver-0.9.9+dfsg/debian/patches/add-ppc64el.patch	2014-08-01 19:58:42.000000000 +0000
@@ -0,0 +1,26 @@
+--- libvncserver-0.9.9+dfsg.orig/acinclude.m4
++++ libvncserver-0.9.9+dfsg/acinclude.m4
+@@ -1137,7 +1137,10 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
+         x86_64-*linux*)
+           LD="${LD-ld} -m elf_i386"
+           ;;
+-        ppc64-*linux*|powerpc64-*linux*)
++        powerpc64le-*)
++          LD="${LD-ld} -m elf32lppclinux"
++          ;;
++        powerpc64-*)
+           LD="${LD-ld} -m elf32ppclinux"
+           ;;
+         s390x-*linux*)
+@@ -1153,7 +1156,10 @@ x86_64-*linux*|ppc*-*linux*|powerpc*-*li
+         x86_64-*linux*)
+           LD="${LD-ld} -m elf_x86_64"
+           ;;
+-        ppc*-*linux*|powerpc*-*linux*)
++        powerpcle-*)
++          LD="${LD-ld} -m elf64lppc"
++          ;;
++        powerpc-*)
+           LD="${LD-ld} -m elf64ppc"
+           ;;
+         s390*-*linux*)
diff -Nru libvncserver-0.9.9+dfsg/debian/patches/series libvncserver-0.9.9+dfsg/debian/patches/series
--- libvncserver-0.9.9+dfsg/debian/patches/series	2014-05-01 08:15:18.000000000 +0000
+++ libvncserver-0.9.9+dfsg/debian/patches/series	2014-08-01 19:58:37.000000000 +0000
@@ -3,3 +3,4 @@
 format_string.patch
 multiarch.patch
 listenSock.patch
+add-ppc64el.patch

Reply via email to