pmachata pushed to ltrace (f22). "Fix a FTBFS on powerpc64le"

notifications at fedoraproject.org notifications at fedoraproject.org
Mon Apr 13 08:35:54 UTC 2015


>From 1fa810569727fd901081338bc43115d0e437c479 Mon Sep 17 00:00:00 2001
From: Petr Machata <pmachata at redhat.com>
Date: Mon, 13 Apr 2015 10:23:43 +0200
Subject: Fix a FTBFS on powerpc64le


diff --git a/ltrace-0.7.91-ppc64le-configure.patch b/ltrace-0.7.91-ppc64le-configure.patch
new file mode 100644
index 0000000..74f0987
--- /dev/null
+++ b/ltrace-0.7.91-ppc64le-configure.patch
@@ -0,0 +1,44 @@
+From eea6091f8672b01f7f022b0fc367e0f568225ffc Mon Sep 17 00:00:00 2001
+From: Petr Machata <pmachata at redhat.com>
+Date: Fri, 8 Aug 2014 17:09:58 +0200
+Subject: [PATCH] Recognize powerpc64le in configure
+
+---
+ configure.ac | 14 +++++++-------
+ 1 file changed, 7 insertions(+), 7 deletions(-)
+
+diff --git a/configure.ac b/configure.ac
+index 4f360c8..6fe5e3b 100644
+--- a/configure.ac
++++ b/configure.ac
+@@ -43,7 +43,7 @@ case "${host_cpu}" in
+     arm*|sa110)		HOST_CPU="arm" ;;
+     cris*)		HOST_CPU="cris" ;;
+     mips*)		HOST_CPU="mips" ;;
+-    powerpc|powerpc64)	HOST_CPU="ppc" ;;
++    powerpc|powerpc64|powerpc64le)	HOST_CPU="ppc" ;;
+     sun4u|sparc64)	HOST_CPU="sparc" ;;
+     s390x)		HOST_CPU="s390" ;;
+     i?86|x86_64)	HOST_CPU="x86" ;;
+@@ -210,12 +210,12 @@ AC_MSG_RESULT([$enable_libunwind])
+ 
+ if test x"$enable_libunwind" = xyes; then
+   case "${host_cpu}" in
+-      arm*|sa110)         UNWIND_ARCH="arm" ;;
+-      i?86)               UNWIND_ARCH="x86" ;;
+-      powerpc)            UNWIND_ARCH="ppc32" ;;
+-      powerpc64)          UNWIND_ARCH="ppc64" ;;
+-      mips*)              UNWIND_ARCH="mips" ;;
+-      *)                  UNWIND_ARCH="${host_cpu}" ;;
++      arm*|sa110)	  UNWIND_ARCH="arm" ;;
++      i?86)		  UNWIND_ARCH="x86" ;;
++      powerpc)		  UNWIND_ARCH="ppc32" ;;
++      powerpc64|powerpc64le)	UNWIND_ARCH="ppc64" ;;
++      mips*)		  UNWIND_ARCH="mips" ;;
++      *)		  UNWIND_ARCH="${host_cpu}" ;;
+   esac
+ 
+   saved_LDFLAGS="${LDFLAGS}"
+-- 
+2.1.0
+
diff --git a/ltrace.spec b/ltrace.spec
index 0846c0b..7bb13de 100644
--- a/ltrace.spec
+++ b/ltrace.spec
@@ -1,7 +1,7 @@
 Summary: Tracks runtime library calls from dynamically linked executables
 Name: ltrace
 Version: 0.7.91
-Release: 15%{?dist}
+Release: 16%{?dist}
 URL: http://ltrace.alioth.debian.org/
 License: GPLv2+
 Group: Development/Debuggers
@@ -91,6 +91,10 @@ Patch21: ltrace-0.7.91-multithread-no-f-2.patch
 Patch22: ltrace-0.7.91-testsuite-includes.patch
 Patch23: ltrace-0.7.91-testsuite-includes-2.patch
 
+# https://bugzilla.redhat.com/show_bug.cgi?id=1210653
+# http://anonscm.debian.org/cgit/collab-maint/ltrace.git/commit/?id=eea6091f8672b01f7f022b0fc367e0f568225ffc
+Patch24: ltrace-0.7.91-ppc64le-configure.patch
+
 %description
 Ltrace is a debugging program which runs a specified command until the
 command exits.  While the command is executing, ltrace intercepts and
@@ -126,6 +130,7 @@ execution of processes.
 %patch21 -p1
 %patch22 -p1
 %patch23 -p1
+%patch24 -p1
 
 %build
 autoreconf -i
@@ -151,6 +156,10 @@ echo ====================TESTING END=====================
 %{_datadir}/ltrace
 
 %changelog
+* Mon Apr 13 2015 Petr Machata <pmachata at redhat.com> - 0.7.91-16
+- Add upstream fix to map of powerpc64le architecture to ppc backend.
+  (ltrace-0.7.91-ppc64le-configure.patch)
+
 * Wed Apr  8 2015 Petr Machata <pmachata at redhat.com> - 0.7.91-15
 - Add upstream fixes for compilation of test cases
   (ltrace-0.7.91-testsuite-includes.patch,
-- 
cgit v0.10.2


	http://pkgs.fedoraproject.org/cgit/ltrace.git/commit/?h=f22&id=1fa810569727fd901081338bc43115d0e437c479


More information about the scm-commits mailing list