Package: libtool
Version: 2.4.2-1.3
Severity: wishlist
Tags: patch

Dear Maintainer,


Upstream libtool/config received a patch that adds a new ppc64le architecture. 
Debian is a target operating system to support this new architecture, so, we 
need 
that patch as part of Debian.

I'd like to have this patch on Debian, because libtool will not have a newer 
version soon,
so, I suggest keeping the backport on Debian until there is a newer release. 

The upstream patch can be found at the following link:

http://git.savannah.gnu.org/cgit/config.git/commit/?id=29900d3bff1ce445087ece5cb2cac425df1c2f74

And the following commits on libtool:
 * 75ffb257f0af50111ffe3a2ba4a5855c44d11774
 * 056889b838c7f7ce42281f095921b34973321e25
 * 429d40a020348c7cd8e8af75c7cb29a64cf9708d
diff -uNpr libtool-2.4.2.old/libltdl/config/config.guess libtool-2.4.2/libltdl/config/config.guess
--- libtool-2.4.2.old/libltdl/config/config.guess	2011-10-17 09:49:28.000000000 +0000
+++ libtool-2.4.2/libltdl/config/config.guess	2013-10-11 13:57:47.000000000 +0000
@@ -967,6 +967,12 @@ EOF
     ppc:Linux:*:*)
 	echo powerpc-unknown-linux-gnu
 	exit ;;
+    ppc64el:Linux:*:*)
+	echo powerpc64le-unknown-linux-gnu
+	exit ;;
+    ppcle:Linux:*:*)
+	echo powerpcle-unknown-linux-gnu
+	exit ;;
     s390:Linux:*:* | s390x:Linux:*:*)
 	echo ${UNAME_MACHINE}-ibm-linux
 	exit ;;
diff -uNpr libtool-2.4.2.old/libltdl/m4/libtool.m4 libtool-2.4.2/libltdl/m4/libtool.m4
--- libtool-2.4.2.old/libltdl/m4/libtool.m4	2013-10-11 13:28:23.000000000 +0000
+++ libtool-2.4.2/libltdl/m4/libtool.m4	2013-10-11 14:06:07.000000000 +0000
@@ -1312,7 +1312,7 @@ ia64-*-hpux*)
   rm -rf conftest*
   ;;
 
-x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
+x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
   # Find out which ABI we are using.
   echo 'int i;' > conftest.$ac_ext
@@ -1333,7 +1333,10 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 		;;
 	    esac
 	    ;;
-	  ppc64-*linux*|powerpc64-*linux*)
+	  powerpc64le-*linux*)
+	    LD="${LD-ld} -m elf32lppclinux"
+	    ;;
+	  powerpc64-*linux*)
 	    LD="${LD-ld} -m elf32ppclinux"
 	    ;;
 	  s390x-*linux*)
@@ -1352,9 +1355,12 @@ s390*-*linux*|s390*-*tpf*|sparc*-*linux*
 	  x86_64-*linux*)
 	    LD="${LD-ld} -m elf_x86_64"
 	    ;;
-	  ppc*-*linux*|powerpc*-*linux*)
-	    LD="${LD-ld} -m elf64ppc"
-	    ;;
+	  powerpc64le-*linux*)
+	    LD="${LD-ld} -m elf64lppclinux"
+	    ;;
+	  powerpc64-*linux*)
+	    LD="${LD-ld} -m elf64ppclinux"
+	    ;;
 	  s390*-*linux*|s390*-*tpf*)
 	    LD="${LD-ld} -m elf64_s390"
 	    ;;

Reply via email to