Accepting request 209414 from openSUSE:Factory:PowerLE

Fix python for ppc64le, please forward to factory asap

OBS-URL: https://build.opensuse.org/request/show/209414
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:Factory/python?expand=0&rev=156
This commit is contained in:
Sascha Peilicke 2013-12-06 10:30:57 +00:00 committed by Git OBS Bridge
parent 5b3091d163
commit ea9eb9ef07
7 changed files with 1798 additions and 7 deletions

1757
libffi-ppc64le.diff Normal file

File diff suppressed because it is too large Load Diff

View File

@ -33,7 +33,7 @@ Index: Python-2.7.6/configure.ac
+esac
+
+case $ARCH:$python_cv_cc_64bit_output in
+aarch64:yes | ppc64:yes | powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
+aarch64:yes | ppc64:yes | ppc64le:yes | powerpc64:yes | s390x:yes | sparc64:yes | x86_64:yes)
+ LIB="lib64"
+ ;;
+*:*)

View File

@ -1,3 +1,26 @@
-------------------------------------------------------------------
Tue Dec 3 20:03:08 CET 2013 - mls@suse.de
- adapt python-2.7.5-multilib.patch for ppc64le
-------------------------------------------------------------------
Tue Dec 3 17:30:26 UTC 2013 - dvaleev@suse.com
- adjust %files for ppc64le
-------------------------------------------------------------------
Tue Dec 3 17:05:45 UTC 2013 - matz@suse.de
- Support for ppc64le in _ctypes libffi copy.
- added patches:
* libffi-ppc64le.diff
-------------------------------------------------------------------
Tue Dec 3 09:44:28 UTC 2013 - adrian@suse.de
- add ppc64le rules
- avoid errors from source-validator
-------------------------------------------------------------------
Thu Nov 21 15:39:28 UTC 2013 - jmatejek@suse.com

View File

@ -29,7 +29,7 @@ Source0: http://www.python.org/ftp/python/%{version}/%{tarname}.tar.xz
Source1: macros.python
Source2: baselibs.conf
Source3: README.SUSE
Source5: _local.pth
Source5: local.pth
# COMMON-PATCH-BEGIN
Patch1: python-2.7-dirs.patch
Patch2: python-distutils-rpm-8.patch
@ -50,6 +50,8 @@ Patch20: python-bundle-lang.patch
Patch22: python-2.7.4-aarch64.patch
Patch23: python-2.7.4-no-REUSEPORT.patch
Patch24: python-bsddb6.diff
# PATCH-FIX-OPENSUSE Properly support ppc64le in _ctypes module
Patch25: libffi-ppc64le.diff
# COMMON-PATCH-END
%define python_version %(echo %{tarversion} | head -c 3)
BuildRequires: automake
@ -132,7 +134,7 @@ other applications.
%patch10 -p1
%patch13 -p1
#skip test_io test for ppc,ppc64 as it is broken.
%ifarch ppc ppc64
%ifarch ppc ppc64 ppc64le
%patch15 -p1
%endif
%patch17 -p1
@ -141,6 +143,7 @@ other applications.
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p0
# drop Autoconf version requirement
sed -i 's/^version_required/dnl version_required/' configure.ac
@ -209,7 +212,7 @@ find . -wholename "./Parser" -prune -o -name '*.py' -type f -print0 | xargs -0 g
# install it
########################################
%make_install OPT="%{optflags} -fPIC"
install -m 644 %{SOURCE5} %{buildroot}%{_libdir}/python%{python_version}/site-packages
install -m 644 %{SOURCE5} %{buildroot}%{_libdir}/python%{python_version}/site-packages/_local.pth
install -d -m 755 %{buildroot}%{_sysconfdir}/rpm
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm
# make sure /usr/lib/python/site-packages exists even on lib64 machines
@ -377,7 +380,7 @@ cp Makefile Makefile.pre.in Makefile.pre %{buildroot}%{_libdir}/python%{python_v
%{_libdir}/python%{python_version}/lib-dynload/_multibytecodec.so
%{_libdir}/python%{python_version}/lib-dynload/Python-%{tarversion}-py%{python_version}.egg-info
# these modules don't support 64-bit arches (disabled by setup.py)
%ifnarch alpha ia64 x86_64 s390x ppc64 sparc64 aarch64
%ifnarch alpha ia64 x86_64 s390x ppc64 ppc64le sparc64 aarch64
# requires sizeof(int) == sizeof(long) == sizeof(char*)
%{_libdir}/python%{python_version}/lib-dynload/dl.so
%endif

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python-doc
Version: 2.7.6
Release: 0
@ -55,6 +56,8 @@ Patch20: python-bundle-lang.patch
Patch22: python-2.7.4-aarch64.patch
Patch23: python-2.7.4-no-REUSEPORT.patch
Patch24: python-bsddb6.diff
# PATCH-FIX-OPENSUSE Properly support ppc64le in _ctypes module
Patch25: libffi-ppc64le.diff
# COMMON-PATCH-END
Provides: pyth_doc
Provides: pyth_ps
@ -93,7 +96,7 @@ Python, and Macintosh Module Reference in PDF format.
%patch10 -p1
%patch13 -p1
#skip test_io test for ppc,ppc64 as it is broken.
%ifarch ppc ppc64
%ifarch ppc ppc64 ppc64le
%patch15 -p1
%endif
%patch17 -p1
@ -102,6 +105,7 @@ Python, and Macintosh Module Reference in PDF format.
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p0
# drop Autoconf version requirement
sed -i 's/^version_required/dnl version_required/' configure.ac

View File

@ -15,6 +15,7 @@
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: python
Version: 2.7.6
Release: 0
@ -56,6 +57,8 @@ Patch20: python-bundle-lang.patch
Patch22: python-2.7.4-aarch64.patch
Patch23: python-2.7.4-no-REUSEPORT.patch
Patch24: python-bsddb6.diff
# PATCH-FIX-OPENSUSE Properly support ppc64le in _ctypes module
Patch25: libffi-ppc64le.diff
# COMMON-PATCH-END
BuildRequires: automake
BuildRequires: db-devel
@ -170,7 +173,7 @@ implementation of the standard Unix DBM databases.
%patch10 -p1
%patch13 -p1
#skip test_io test for ppc,ppc64 as it is broken.
%ifarch ppc ppc64
%ifarch ppc ppc64 ppc64le
%patch15 -p1
%endif
%patch17 -p1
@ -179,6 +182,7 @@ implementation of the standard Unix DBM databases.
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p0
# drop Autoconf version requirement
sed -i 's/^version_required/dnl version_required/' configure.ac