Compare commits
15 Commits
f37-riscv6
...
rawhide
Author | SHA1 | Date | |
---|---|---|---|
|
5f98fe006c | ||
|
8ca0a0a2d8 | ||
|
64d93401a3 | ||
|
68ad779a6c | ||
|
7b688dbf92 | ||
|
0331299c7d | ||
|
db4f001692 | ||
|
85c6584975 | ||
|
01ddee3bb6 | ||
|
06ef941d95 | ||
|
ec7d75e3d1 | ||
|
11c77ae388 | ||
|
19bf071b14 | ||
|
58109b55ab | ||
|
2d80073286 |
@ -160,7 +160,7 @@ index ebe3711827..55af57b335 100644
|
|||||||
# On Windows we want to substitute 'lib' for schemes rather
|
# On Windows we want to substitute 'lib' for schemes rather
|
||||||
# than the native value (without modifying vars, in case it
|
# than the native value (without modifying vars, in case it
|
||||||
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
|
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
|
||||||
index 578ac1db50..dc58e7db18 100644
|
index d96371d242..72b028435f 100644
|
||||||
--- a/Lib/test/test_sysconfig.py
|
--- a/Lib/test/test_sysconfig.py
|
||||||
+++ b/Lib/test/test_sysconfig.py
|
+++ b/Lib/test/test_sysconfig.py
|
||||||
@@ -111,8 +111,19 @@ def test_get_path(self):
|
@@ -111,8 +111,19 @@ def test_get_path(self):
|
||||||
|
@ -1,54 +0,0 @@
|
|||||||
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
||||||
From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= <miro@hroncok.cz>
|
|
||||||
Date: Thu, 11 Jul 2019 13:44:13 +0200
|
|
||||||
Subject: [PATCH] 00328: Restore pyc to TIMESTAMP invalidation mode as default
|
|
||||||
in rpmbuild
|
|
||||||
|
|
||||||
Since Fedora 31, the $SOURCE_DATE_EPOCH is set in rpmbuild to the latest
|
|
||||||
%changelog date. This makes Python default to the CHECKED_HASH pyc
|
|
||||||
invalidation mode, bringing more reproducible builds traded for an import
|
|
||||||
performance decrease. To avoid that, we don't default to CHECKED_HASH
|
|
||||||
when $RPM_BUILD_ROOT is set (i.e. when we are building RPM packages).
|
|
||||||
|
|
||||||
See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/57#comment-27426
|
|
||||||
Downstream only: only used when building RPM packages
|
|
||||||
Ideally, we should talk to upstream and explain why we don't want this
|
|
||||||
---
|
|
||||||
Lib/py_compile.py | 3 ++-
|
|
||||||
Lib/test/test_py_compile.py | 2 ++
|
|
||||||
2 files changed, 4 insertions(+), 1 deletion(-)
|
|
||||||
|
|
||||||
diff --git a/Lib/py_compile.py b/Lib/py_compile.py
|
|
||||||
index 388614e51b..db52725016 100644
|
|
||||||
--- a/Lib/py_compile.py
|
|
||||||
+++ b/Lib/py_compile.py
|
|
||||||
@@ -70,7 +70,8 @@ class PycInvalidationMode(enum.Enum):
|
|
||||||
|
|
||||||
|
|
||||||
def _get_default_invalidation_mode():
|
|
||||||
- if os.environ.get('SOURCE_DATE_EPOCH'):
|
|
||||||
+ if (os.environ.get('SOURCE_DATE_EPOCH') and not
|
|
||||||
+ os.environ.get('RPM_BUILD_ROOT')):
|
|
||||||
return PycInvalidationMode.CHECKED_HASH
|
|
||||||
else:
|
|
||||||
return PycInvalidationMode.TIMESTAMP
|
|
||||||
diff --git a/Lib/test/test_py_compile.py b/Lib/test/test_py_compile.py
|
|
||||||
index a4a52b180d..e53f5d92aa 100644
|
|
||||||
--- a/Lib/test/test_py_compile.py
|
|
||||||
+++ b/Lib/test/test_py_compile.py
|
|
||||||
@@ -19,6 +19,7 @@ def without_source_date_epoch(fxn):
|
|
||||||
def wrapper(*args, **kwargs):
|
|
||||||
with os_helper.EnvironmentVarGuard() as env:
|
|
||||||
env.unset('SOURCE_DATE_EPOCH')
|
|
||||||
+ env.unset('RPM_BUILD_ROOT')
|
|
||||||
return fxn(*args, **kwargs)
|
|
||||||
return wrapper
|
|
||||||
|
|
||||||
@@ -29,6 +30,7 @@ def with_source_date_epoch(fxn):
|
|
||||||
def wrapper(*args, **kwargs):
|
|
||||||
with os_helper.EnvironmentVarGuard() as env:
|
|
||||||
env['SOURCE_DATE_EPOCH'] = '123456789'
|
|
||||||
+ env.unset('RPM_BUILD_ROOT')
|
|
||||||
return fxn(*args, **kwargs)
|
|
||||||
return wrapper
|
|
||||||
|
|
@ -19,11 +19,9 @@ not_compiled = [
|
|||||||
'*/test/bad_coding.py',
|
'*/test/bad_coding.py',
|
||||||
'*/test/bad_coding2.py',
|
'*/test/bad_coding2.py',
|
||||||
'*/test/badsyntax_*.py',
|
'*/test/badsyntax_*.py',
|
||||||
'*/lib2to3/tests/data/bom.py',
|
'*/lib2to3/tests/data/*.py',
|
||||||
'*/lib2to3/tests/data/crlf.py',
|
'*/lib2to3/tests/data/*/*.py',
|
||||||
'*/lib2to3/tests/data/different_encoding.py',
|
'*/lib2to3/tests/data/*/*/*.py',
|
||||||
'*/lib2to3/tests/data/false_encoding.py',
|
|
||||||
'*/lib2to3/tests/data/py2_test_grammar.py',
|
|
||||||
'*.debug-gdb.py',
|
'*.debug-gdb.py',
|
||||||
]
|
]
|
||||||
|
|
||||||
|
@ -13,12 +13,12 @@ URL: https://www.python.org/
|
|||||||
|
|
||||||
# WARNING When rebasing to a new Python version,
|
# WARNING When rebasing to a new Python version,
|
||||||
# remember to update the python3-docs package as well
|
# remember to update the python3-docs package as well
|
||||||
%global general_version %{pybasever}.0
|
%global general_version %{pybasever}.4
|
||||||
%global prerel rc2
|
#global prerel ...
|
||||||
%global upstream_version %{general_version}%{?prerel}
|
%global upstream_version %{general_version}%{?prerel}
|
||||||
Version: %{general_version}%{?prerel:~%{prerel}}
|
Version: %{general_version}%{?prerel:~%{prerel}}
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: Python
|
License: Python-2.0.1
|
||||||
|
|
||||||
|
|
||||||
# ==================================
|
# ==================================
|
||||||
@ -67,8 +67,8 @@ License: Python
|
|||||||
# If the rpmwheels condition is disabled, we use the bundled wheel packages
|
# If the rpmwheels condition is disabled, we use the bundled wheel packages
|
||||||
# from Python with the versions below.
|
# from Python with the versions below.
|
||||||
# This needs to be manually updated when we update Python.
|
# This needs to be manually updated when we update Python.
|
||||||
%global pip_version 22.2.2
|
%global pip_version 23.1.2
|
||||||
%global setuptools_version 63.2.0
|
%global setuptools_version 65.5.0
|
||||||
|
|
||||||
# Expensive optimizations (mainly, profile-guided optimizations)
|
# Expensive optimizations (mainly, profile-guided optimizations)
|
||||||
%bcond_without optimizations
|
%bcond_without optimizations
|
||||||
@ -175,6 +175,12 @@ Obsoletes: python%{pybasever}%{?1:-%{1}}\
|
|||||||
%define unversioned_obsoletes_of_python3_X_if_main() %{nil}
|
%define unversioned_obsoletes_of_python3_X_if_main() %{nil}
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
# Opt-out from https://fedoraproject.org/wiki/Changes/fno-omit-frame-pointer
|
||||||
|
# Python is slower with frame pointers, but we expect to remove this in Python 3.12+
|
||||||
|
# See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/6TQYCHMX4FZLF27U5BCEC7IFV6XNBKJP/
|
||||||
|
# Tracking bugzilla: https://bugzilla.redhat.com/2158729
|
||||||
|
%undefine _include_frame_pointers
|
||||||
|
|
||||||
# =======================
|
# =======================
|
||||||
# Build-time requirements
|
# Build-time requirements
|
||||||
# =======================
|
# =======================
|
||||||
@ -298,20 +304,6 @@ Patch1: 00001-rpath.patch
|
|||||||
# pypa/distutils integration: https://github.com/pypa/distutils/pull/70
|
# pypa/distutils integration: https://github.com/pypa/distutils/pull/70
|
||||||
Patch251: 00251-change-user-install-location.patch
|
Patch251: 00251-change-user-install-location.patch
|
||||||
|
|
||||||
# 00328 # 318e500c98f5e59eb1f23e0fcd32db69b9bd17e1
|
|
||||||
# Restore pyc to TIMESTAMP invalidation mode as default in rpmbuild
|
|
||||||
#
|
|
||||||
# Since Fedora 31, the $SOURCE_DATE_EPOCH is set in rpmbuild to the latest
|
|
||||||
# %%changelog date. This makes Python default to the CHECKED_HASH pyc
|
|
||||||
# invalidation mode, bringing more reproducible builds traded for an import
|
|
||||||
# performance decrease. To avoid that, we don't default to CHECKED_HASH
|
|
||||||
# when $RPM_BUILD_ROOT is set (i.e. when we are building RPM packages).
|
|
||||||
#
|
|
||||||
# See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/57#comment-27426
|
|
||||||
# Downstream only: only used when building RPM packages
|
|
||||||
# Ideally, we should talk to upstream and explain why we don't want this
|
|
||||||
Patch328: 00328-pyc-timestamp-invalidation-mode.patch
|
|
||||||
|
|
||||||
# 00371 # c1754d9c2750f89cb702e1b63a99201f5f7cff00
|
# 00371 # c1754d9c2750f89cb702e1b63a99201f5f7cff00
|
||||||
# Revert "bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549) (GH-28589)"
|
# Revert "bpo-1596321: Fix threading._shutdown() for the main thread (GH-28549) (GH-28589)"
|
||||||
#
|
#
|
||||||
@ -482,7 +474,11 @@ Requires: %{pkgname}-libs%{?_isa} = %{version}-%{release}
|
|||||||
# But we want them when packages BuildRequire python3-devel
|
# But we want them when packages BuildRequire python3-devel
|
||||||
Requires: (python-rpm-macros if rpm-build)
|
Requires: (python-rpm-macros if rpm-build)
|
||||||
Requires: (python3-rpm-macros if rpm-build)
|
Requires: (python3-rpm-macros if rpm-build)
|
||||||
Requires: (pyproject-rpm-macros if rpm-build)
|
# We omit this dependency on RHEL to avoid pulling the macros to AppStream:
|
||||||
|
# RHEL users can use the minimal implementation of %%pyproject_buildrequires
|
||||||
|
# from pyproject-srpm-macros instead.
|
||||||
|
# On Fedora, we keep this to avoid one additional round of %%generate_buildrequires.
|
||||||
|
%{!?rhel:Requires: (pyproject-rpm-macros if rpm-build)}
|
||||||
|
|
||||||
%unversioned_obsoletes_of_python3_X_if_main devel
|
%unversioned_obsoletes_of_python3_X_if_main devel
|
||||||
|
|
||||||
@ -945,15 +941,25 @@ find . -name "*~" -exec rm -f {} \;
|
|||||||
# Python CMD line options:
|
# Python CMD line options:
|
||||||
# -s - don't add user site directory to sys.path
|
# -s - don't add user site directory to sys.path
|
||||||
# -B - don't write .pyc files on import
|
# -B - don't write .pyc files on import
|
||||||
|
# Clamp the source mtime first, see https://fedoraproject.org/wiki/Changes/ReproducibleBuildsClampMtimes
|
||||||
|
# The clamp_source_mtime module is only guaranteed to exist on Fedoras that enabled this option:
|
||||||
|
%if 0%{?clamp_mtime_to_source_date_epoch}
|
||||||
|
LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
|
||||||
|
PYTHONPATH="%{_rpmconfigdir}/redhat" \
|
||||||
|
%{buildroot}%{_bindir}/python%{pybasever} -s -B -m clamp_source_mtime %{buildroot}%{pylibdir}
|
||||||
|
%endif
|
||||||
# compileall CMD line options:
|
# compileall CMD line options:
|
||||||
# -f - force rebuild even if timestamps are up to date
|
# -f - force rebuild even if timestamps are up to date
|
||||||
# -o - optimization levels to run compilation with
|
# -o - optimization levels to run compilation with
|
||||||
# -s - part of path to left-strip from path to source file (buildroot)
|
# -s - part of path to left-strip from path to source file (buildroot)
|
||||||
# -p - path to add as prefix to path to source file (/ to make it absolute)
|
# -p - path to add as prefix to path to source file (/ to make it absolute)
|
||||||
# --hardlink-dupes - hardlink different optimization level pycs together if identical (saves space)
|
# --hardlink-dupes - hardlink different optimization level pycs together if identical (saves space)
|
||||||
|
# --invalidation-mode - we prefer the timestamp invalidation mode for performance reasons
|
||||||
|
# -x - skip test modules with SyntaxErrors (taken from the Makefile)
|
||||||
LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
|
LD_LIBRARY_PATH="%{buildroot}%{dynload_dir}/:%{buildroot}%{_libdir}" \
|
||||||
%{buildroot}%{_bindir}/python%{pybasever} -s -B -m compileall \
|
%{buildroot}%{_bindir}/python%{pybasever} -s -B -m compileall \
|
||||||
-f %{_smp_mflags} -o 0 -o 1 -o 2 -s %{buildroot} -p / %{buildroot} --hardlink-dupes || :
|
-f %{_smp_mflags} -o 0 -o 1 -o 2 -s %{buildroot} -p / %{buildroot} --hardlink-dupes --invalidation-mode=timestamp \
|
||||||
|
-x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data'
|
||||||
|
|
||||||
# Turn this BRP off, it is done by compileall2 --hardlink-dupes above
|
# Turn this BRP off, it is done by compileall2 --hardlink-dupes above
|
||||||
%global __brp_python_hardlink %{nil}
|
%global __brp_python_hardlink %{nil}
|
||||||
@ -1437,6 +1443,7 @@ CheckPython optimized
|
|||||||
%{dynload_dir}/_ctypes_test.%{SOABI_optimized}.so
|
%{dynload_dir}/_ctypes_test.%{SOABI_optimized}.so
|
||||||
%{dynload_dir}/_testbuffer.%{SOABI_optimized}.so
|
%{dynload_dir}/_testbuffer.%{SOABI_optimized}.so
|
||||||
%{dynload_dir}/_testcapi.%{SOABI_optimized}.so
|
%{dynload_dir}/_testcapi.%{SOABI_optimized}.so
|
||||||
|
%{dynload_dir}/_testclinic.%{SOABI_optimized}.so
|
||||||
%{dynload_dir}/_testimportmultiple.%{SOABI_optimized}.so
|
%{dynload_dir}/_testimportmultiple.%{SOABI_optimized}.so
|
||||||
%{dynload_dir}/_testinternalcapi.%{SOABI_optimized}.so
|
%{dynload_dir}/_testinternalcapi.%{SOABI_optimized}.so
|
||||||
%{dynload_dir}/_testmultiphase.%{SOABI_optimized}.so
|
%{dynload_dir}/_testmultiphase.%{SOABI_optimized}.so
|
||||||
@ -1565,6 +1572,7 @@ CheckPython optimized
|
|||||||
%{dynload_dir}/_ctypes_test.%{SOABI_debug}.so
|
%{dynload_dir}/_ctypes_test.%{SOABI_debug}.so
|
||||||
%{dynload_dir}/_testbuffer.%{SOABI_debug}.so
|
%{dynload_dir}/_testbuffer.%{SOABI_debug}.so
|
||||||
%{dynload_dir}/_testcapi.%{SOABI_debug}.so
|
%{dynload_dir}/_testcapi.%{SOABI_debug}.so
|
||||||
|
%{dynload_dir}/_testclinic.%{SOABI_debug}.so
|
||||||
%{dynload_dir}/_testimportmultiple.%{SOABI_debug}.so
|
%{dynload_dir}/_testimportmultiple.%{SOABI_debug}.so
|
||||||
%{dynload_dir}/_testinternalcapi.%{SOABI_debug}.so
|
%{dynload_dir}/_testinternalcapi.%{SOABI_debug}.so
|
||||||
%{dynload_dir}/_testmultiphase.%{SOABI_debug}.so
|
%{dynload_dir}/_testmultiphase.%{SOABI_debug}.so
|
||||||
@ -1595,6 +1603,37 @@ CheckPython optimized
|
|||||||
# ======================================================
|
# ======================================================
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 3.11.4-2
|
||||||
|
- Rebuilt for Python 3.12
|
||||||
|
|
||||||
|
* Wed Jun 07 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.11.4-1
|
||||||
|
- Update to 3.11.4
|
||||||
|
|
||||||
|
* Wed May 24 2023 Lumír Balhar <lbalhar@redhat.com> - 3.11.3-2
|
||||||
|
- Fix for CVE-2023-24329
|
||||||
|
|
||||||
|
* Wed Apr 05 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.11.3-1
|
||||||
|
- Update to 3.11.3
|
||||||
|
|
||||||
|
* Wed Feb 08 2023 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.11.2-1
|
||||||
|
- Update to 3.11.2
|
||||||
|
|
||||||
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 3.11.1-4
|
||||||
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
||||||
|
|
||||||
|
* Fri Jan 06 2023 Miro Hrončok <mhroncok@redhat.com> - 3.11.1-3
|
||||||
|
- Fix `asyncio` subprocess losing `stderr` and `stdout` output
|
||||||
|
- Remove any deprecation warnings in asyncio.get_event_loop()
|
||||||
|
|
||||||
|
* Mon Dec 19 2022 Miro Hrončok <mhroncok@redhat.com> - 3.11.1-2
|
||||||
|
- No longer patch the default bytecode cache invalidation policy
|
||||||
|
|
||||||
|
* Wed Dec 07 2022 Tomáš Hrnčiar <thrnciar@redhat.com> - 3.11.1-1
|
||||||
|
- Update to 3.11.1
|
||||||
|
|
||||||
|
* Mon Oct 24 2022 Miro Hrončok <mhroncok@redhat.com> - 3.11.0-1
|
||||||
|
- Update to 3.11.0
|
||||||
|
|
||||||
* Tue Sep 13 2022 Miro Hrončok <mhroncok@redhat.com> - 3.11.0~rc2-1
|
* Tue Sep 13 2022 Miro Hrončok <mhroncok@redhat.com> - 3.11.0~rc2-1
|
||||||
- Update to 3.11.0rc2
|
- Update to 3.11.0rc2
|
||||||
|
|
||||||
|
4
sources
4
sources
@ -1,2 +1,2 @@
|
|||||||
SHA512 (Python-3.11.0rc2.tar.xz) = 8b37bc9df3c966bd35cffdb7d6406a3c1a5ccfbea10bd8dad498880e3b1492f8cdbbe227ab3a30557843eb05d8fb93077c791e25d71b33ed420992d54b6c9473
|
SHA512 (Python-3.11.4.tar.xz) = 7eb14fecbf60824d10c22a9057584c3a142c2866f4af6caa2525c10c8bcb24e6e7afb32a44a0e118df0a2b2543d578c3b422ffd4a5fa317dfe6ea371cc7ee1ee
|
||||||
SHA512 (Python-3.11.0rc2.tar.xz.asc) = 13e6bfa719db29aa169763399203168923cbfbb01d209e18269399ca84723582f480134edd3bf9f24785cd5ab0486411132d6bbb354fa45ebbba68bf4c70021a
|
SHA512 (Python-3.11.4.tar.xz.asc) = 8ee82bf116b2cc7407e260eccf53e7fee4d7497165d0b9c3e59931c73f3b419bc0299b459eee9544a6e51e323ff0a6aa07827efd89f9c320b54556feeea04a78
|
||||||
|
Loading…
Reference in New Issue
Block a user