Package: pigment
Version: 0.3.17-1
Severity: normal
Tags: patch
User: ubuntu-de...@lists.ubuntu.com
Usertags: origin-ubuntu trusty ubuntu-patch

Dear Maintainer,

For the ppc64el architecture in Ubuntu, since this package uses libtool, manual
updates to libtool files are necessary to add support.

In Ubuntu, the attached patch was applied to achieve the following:

  * debian/patches/libtool_ppc64el.patch: Manually patch libtool/configure
    files to fix FTBFS on ppc64el.

Thanks for considering the patch.

Logan Rosen



-- System Information:
Debian Release: jessie/sid
  APT prefers trusty-updates
  APT policy: (500, 'trusty-updates'), (500, 'trusty-security'), (500, 
'trusty'), (100, 'trusty-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13.0-6-generic (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
only in patch2:
unchanged:
--- pigment-0.3.17.orig/debian/patches/libtool_ppc64el.patch
+++ pigment-0.3.17/debian/patches/libtool_ppc64el.patch
@@ -0,0 +1,56 @@
+## Description: add ppc64el support
+## Origin/Author: Logan Rosen <lo...@ubuntu.com>
+diff -Nur -x '*.orig' -x '*~' pigment-0.3.17/common/m4/libtool.m4 pigment-0.3.17.new/common/m4/libtool.m4
+--- pigment-0.3.17/common/m4/libtool.m4	2009-05-20 13:11:08.000000000 -0400
++++ pigment-0.3.17.new/common/m4/libtool.m4	2014-01-31 13:56:10.519611601 -0500
+@@ -1281,7 +1281,10 @@
+ 	  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*)
+@@ -1300,7 +1303,10 @@
+ 	  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*|s390*-*tpf*)
+diff -Nur -x '*.orig' -x '*~' pigment-0.3.17/configure pigment-0.3.17.new/configure
+--- pigment-0.3.17/configure	2009-05-20 13:11:19.000000000 -0400
++++ pigment-0.3.17.new/configure	2014-01-31 13:54:55.458100541 -0500
+@@ -8420,7 +8420,10 @@
+ 	  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*)
+@@ -8439,7 +8442,10 @@
+ 	  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*|s390*-*tpf*)

Reply via email to