Package: src:pth
Version: 2.0.7-19
Severity: normal
Tags: patch
Dear Maintainer,
While trying to build pth on ppc64el, it failed, due to missing entry
about powerpc64le in libtool.m4 and configure files.
Please consider this patch to fulfill that need.
Thanks in advance,
Erwan.
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable')
Architecture: ppc64el (ppc64le)
Kernel: Linux 3.13-1-powerpc64le (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
--- a/debian/patches/powerpc64le.diff 1970-01-01 00:00:00.000000000 +0000
+++ b/debian/patches/powerpc64le.diff 2013-12-21 18:07:29.000000000 +0000
@@ -0,0 +1,56 @@
+Index: b/configure
+===================================================================
+--- a/configure
++++ b/configure
+@@ -4383,7 +4383,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*)
+@@ -4399,7 +4402,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*)
+Index: b/libtool.m4
+===================================================================
+--- a/libtool.m4
++++ b/libtool.m4
+@@ -533,7 +533,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*)
+@@ -549,7 +552,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*)
--- 2.0.7-19/debian/patches/series 2013-07-08 12:35:38.000000000 +0000
+++ 2.0.7-19ubuntu1/debian/patches/series 2013-12-21 18:04:39.000000000 +0000
@@ -5,3 +5,4 @@
05-linux_3.patch
06-ldflags.patch
07-test_uctx_fix.patch
+powerpc64le.diff