Add patch that enables building on ppc64p7.

This commit is contained in:
Bohuslav Kabrda 2013-05-02 09:12:06 +02:00
parent a31104cb33
commit cd7ed90ba4
2 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -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@redhat.com> - 2.7.4-4
- Add patch that enables building on ppc64p7.
* Mon Apr 22 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 2.7.4-3
- Allow arbitrary timeout in Condition.wait (rhbz#917709).