[python] Add patch that enables building on ppc64p7.

Bohuslav Kabrda bkabrda at fedoraproject.org
Thu May 2 07:12:18 UTC 2013


commit cd7ed90ba4cfe98c877ebe2cc39276acb1a8080a
Author: Bohuslav Kabrda <bkabrda at redhat.com>
Date:   Thu May 2 09:12:06 2013 +0200

    Add patch that enables building on ppc64p7.

 00177-python-add-support-for-ppc64p7.patch |   12 ++++++++++++
 python.spec                                |   12 +++++++++++-
 2 files changed, 23 insertions(+), 1 deletions(-)
---
diff --git a/00177-python-add-support-for-ppc64p7.patch b/00177-python-add-support-for-ppc64p7.patch
new file mode 100644
index 0000000..022944a
--- /dev/null
+++ b/00177-python-add-support-for-ppc64p7.patch
@@ -0,0 +1,12 @@
+diff -r de35eae9048a config.sub
+--- a/config.sub	Wed Apr 24 23:33:20 2013 +0200
++++ b/config.sub	Thu Apr 25 08:51:00 2013 +0200
+@@ -1008,7 +1008,7 @@
+ 		;;
+ 	ppc64)	basic_machine=powerpc64-unknown
+ 		;;
+-	ppc64-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
++	ppc64-* | ppc64p7-*) basic_machine=powerpc64-`echo $basic_machine | sed 's/^[^-]*-//'`
+ 		;;
+ 	ppc64le | powerpc64little | ppc64-le | powerpc64-little)
+ 		basic_machine=powerpc64le-unknown
diff --git a/python.spec b/python.spec
index 260a29f..4b67c63 100644
--- a/python.spec
+++ b/python.spec
@@ -106,7 +106,7 @@ Summary: An interpreted, interactive, object-oriented programming language
 Name: %{python}
 # Remember to also rebase python-docs when changing this:
 Version: 2.7.4
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: Python
 Group: Development/Languages
 Requires: %{python}-libs%{?_isa} = %{version}-%{release}
@@ -788,6 +788,12 @@ Patch175: 00175-fix-configure-Wformat.patch
 # Doesn't apply to Python 3, where this is fixed otherwise and works.
 Patch176: 00176-allow-arbitrary-timeout-in-condition-wait.patch
 
+# 00177 #
+# Enable building on ppc64p7
+# Not appropriate for upstream, Fedora-specific naming
+Patch177: 00177-python-add-support-for-ppc64p7.patch
+
+
 # (New patches go here ^^^)
 #
 # When adding new patches to "python" and "python3" in Fedora 17 onwards,
@@ -1128,6 +1134,7 @@ mv Modules/cryptmodule.c Modules/_cryptmodule.c
 %patch174 -p1 -b .fix-for-usr-move
 %patch175 -p1 -b .fix-configure-Wformat
 %patch176 -p1
+%patch177 -p1
 
 
 # This shouldn't be necesarry, but is right now (2.2a3)
@@ -1960,6 +1967,9 @@ rm -fr %{buildroot}
 # ======================================================
 
 %changelog
+* Thu May 02 2013 Bohuslav Kabrda <bkabrda at redhat.com> - 2.7.4-4
+- Add patch that enables building on ppc64p7.
+
 * Mon Apr 22 2013 Bohuslav Kabrda <bkabrda at redhat.com> - 2.7.4-3
 - Allow arbitrary timeout in Condition.wait (rhbz#917709).
 


More information about the scm-commits mailing list