| |
@@ -1,8 +1,8 @@
|
| |
- %global basever 5.10
|
| |
+ %global basever 6.0
|
| |
Name: pypy3
|
| |
- Version: %{basever}.1
|
| |
+ Version: %{basever}.0
|
| |
%global pyversion 3.5
|
| |
- Release: 7%{?dist}
|
| |
+ Release: 1%{?dist}
|
| |
Summary: Python 3 implementation with a Just-In-Time compiler
|
| |
|
| |
# LGPL and another free license we'd need to ask spot about are present in some
|
| |
@@ -164,6 +164,12 @@
|
| |
# It seems ppc64 has no faulthandler
|
| |
Patch11: 011-no-faulthandler.patch
|
| |
|
| |
+ # Fix multiprocessing regression on newer glibcs
|
| |
+ # See: https://bugzilla.redhat.com/show_bug.cgi?id=1569933
|
| |
+ # and: https://bugs.python.org/issue33329
|
| |
+ # and: https://bitbucket.org/pypy/pypy/pull-requests/607
|
| |
+ Patch302: 302-fix-multiprocessing-regression-on-newer-glibcs.patch
|
| |
+
|
| |
# Build-time requirements:
|
| |
|
| |
# pypy's can be rebuilt using itself, rather than with CPython; doing so
|
| |
@@ -185,14 +191,14 @@
|
| |
# pypy3 can only be build with pypy2
|
| |
BuildRequires: pypy2
|
| |
# no pypy-pycparser available ATM
|
| |
- %global bootstrap_python_interp pypy
|
| |
+ %global bootstrap_python_interp pypy2
|
| |
%else
|
| |
|
| |
|
| |
# pypy3 can only be build with python2
|
| |
BuildRequires: python2-devel
|
| |
BuildRequires: python2-pycparser
|
| |
- %global bootstrap_python_interp python
|
| |
+ %global bootstrap_python_interp python2
|
| |
|
| |
%endif
|
| |
|
| |
@@ -289,10 +295,10 @@
|
| |
%prep
|
| |
%autosetup -n pypy3-v%{version}-src -p1 -S git
|
| |
|
| |
- # Replace /usr/local/bin/python shebangs with /usr/bin/python:
|
| |
+ # Replace /usr/local/bin/python or /usr/bin/env python shebangs with /usr/bin/python2 or pypy2:
|
| |
find -name "*.py" -exec \
|
| |
sed \
|
| |
- -i -e "s|/usr/local/bin/python|/usr/bin/python|" \
|
| |
+ -i -r -e "s@/usr/(local/)?bin/(env )?python(2|3)?@/usr/bin/%{bootstrap_python_interp}@" \
|
| |
"{}" \
|
| |
\;
|
| |
|
| |
@@ -303,12 +309,15 @@
|
| |
chmod a-x $f
|
| |
done
|
| |
|
| |
- # Replace all lib-python python shebangs with pypy
|
| |
- find lib-python/%{pylibver} -name "*.py" -exec \
|
| |
- sed -r -i '1s|^#!\s*/usr/bin.*python.*|#!/usr/bin/%{name}|' \
|
| |
+ # Replace all lib-python and lib_pypy python shebangs with pypy3 (those will be shipped with pypy3-libs)
|
| |
+ find lib-python/%{pylibver} lib_pypy -name "*.py" -exec \
|
| |
+ sed -r -i '1s@^#!\s*/usr/bin.*(python|pypy).*@#!/usr/bin/%{name}@' \
|
| |
"{}" \
|
| |
\;
|
| |
|
| |
+ # Not needed on Linux
|
| |
+ rm lib-python/3/idlelib/idle.bat
|
| |
+
|
| |
%ifarch %{ix86} x86_64 %{arm}
|
| |
sed -i -r 's/\$\(LDFLAGSEXTRA\)/& -fuse-ld=gold/' ./rpython/translator/platform/posix.py
|
| |
%endif
|
| |
@@ -823,6 +832,11 @@
|
| |
|
| |
|
| |
%changelog
|
| |
+ * Wed Apr 25 2018 Miro Hrončok <mhroncok@redhat.com> - 6.0.0-1
|
| |
+ - Fix failing taskotron check
|
| |
+ - New release 6.0.0 (#1571489)
|
| |
+ - Fix multiprocessing regression on newer glibcs (#1569933)
|
| |
+
|
| |
* Wed Apr 11 2018 Miro Hrončok <mhroncok@redhat.com> - 5.10.1-7
|
| |
- Provide pypy3(abi) = 5.10
|
| |
|
| |
Fix multiprocessing regression on newer glibcs (#1569933)