diff --git a/00001-rpath.patch b/00001-rpath.patch index 1fcbcec..aad3612 100644 --- a/00001-rpath.patch +++ b/00001-rpath.patch @@ -1,4 +1,4 @@ -From 45b72bdeac12c9243667f94a07f46a7944b95a92 Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 13 Jan 2010 21:25:18 +0000 Subject: [PATCH] 00001: Fixup distutils/unixccompiler.py to remove standard @@ -28,6 +28,3 @@ index 4d7a6de740..353086a648 100644 def preprocess(self, source, output_file=None, macros=None, include_dirs=None, extra_preargs=None, extra_postargs=None): fixed_args = self._fix_compile_args(None, macros, include_dirs) --- -2.23.0 - diff --git a/00102-lib64.patch b/00102-lib64.patch index 64d394f..731d3ef 100644 --- a/00102-lib64.patch +++ b/00102-lib64.patch @@ -1,4 +1,4 @@ -From dca4d618f872be4ec9509a96707d86f6a6988256 Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Wed, 13 Jan 2010 21:25:18 +0000 Subject: [PATCH] 00102: Change the various install paths to use /usr/lib64/ @@ -256,6 +256,3 @@ index 6340669fff..84f73008e0 100644 extra_link_args=readline_extra_link_args, libraries=readline_libs)) else: --- -2.23.0 - diff --git a/00111-no-static-lib.patch b/00111-no-static-lib.patch index 917027b..bedb2aa 100644 --- a/00111-no-static-lib.patch +++ b/00111-no-static-lib.patch @@ -1,4 +1,4 @@ -From 7a3151c7bc83b67bd30cd9acb1d91118e7d32eae Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: David Malcolm Date: Mon, 18 Jan 2010 17:59:07 +0000 Subject: [PATCH] 00111: Don't try to build a libpythonMAJOR.MINOR.a @@ -73,6 +73,3 @@ index 406a441082..917303dd92 100644 $(INSTALL_DATA) Modules/config.c $(DESTDIR)$(LIBPL)/config.c $(INSTALL_DATA) Programs/python.o $(DESTDIR)$(LIBPL)/python.o $(INSTALL_DATA) $(srcdir)/Modules/config.c.in $(DESTDIR)$(LIBPL)/config.c.in --- -2.23.0 - diff --git a/00189-use-rpm-wheels.patch b/00189-use-rpm-wheels.patch index eebd0c5..522ac6a 100644 --- a/00189-use-rpm-wheels.patch +++ b/00189-use-rpm-wheels.patch @@ -1,9 +1,12 @@ -From e34c7e188861647f2c9260a30da8d4b7cfb95c37 Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 15 Aug 2018 15:36:29 +0200 Subject: [PATCH] 00189: Instead of bundled wheels, use our RPM packaged wheels We keep them in /usr/share/python-wheels + +Downstream only: upstream bundles +We might eventually pursuit upstream support, but it's low prio --- Lib/ensurepip/__init__.py | 32 ++++++++++++++++++++++---------- 1 file changed, 22 insertions(+), 10 deletions(-) @@ -66,6 +69,3 @@ index f3152a55d4..f58dab1800 100644 additional_paths.append(os.path.join(tmpdir, wheel_name)) --- -2.23.0 - diff --git a/00251-change-user-install-location.patch b/00251-change-user-install-location.patch index 54a4c19..7825bfc 100644 --- a/00251-change-user-install-location.patch +++ b/00251-change-user-install-location.patch @@ -1,4 +1,4 @@ -From 8a62a97b989692c68470745193581e6dff599044 Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Michal Cyprian Date: Mon, 26 Jun 2017 16:32:56 +0200 Subject: [PATCH] 00251: Change user install location @@ -8,6 +8,7 @@ to /usr/local if executable is /usr/bin/python* and RPM build is not detected to make pip and distutils install into separate location. Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe +Downstream only: Awaiting resources to work on upstream PEP --- Lib/distutils/command/install.py | 15 +++++++++++++-- Lib/site.py | 9 ++++++++- @@ -59,6 +60,3 @@ index 2e24e86988..2581269999 100644 for sitedir in getsitepackages(prefixes): if os.path.isdir(sitedir): addsitedir(sitedir, known_paths) --- -2.23.0 - diff --git a/00274-fix-arch-names.patch b/00274-fix-arch-names.patch index 681df44..988669a 100644 --- a/00274-fix-arch-names.patch +++ b/00274-fix-arch-names.patch @@ -1,4 +1,4 @@ -From 1fe3664603effb33b8a89930f6705d2391ad03bc Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: Petr Viktorin Date: Mon, 28 Aug 2017 17:16:46 +0200 Subject: [PATCH] 00274: Upstream uses Debian-style architecture naming, change @@ -81,6 +81,3 @@ index b1c80869e4..de4627e236 100644 # elif defined(__s390x__) s390x-linux-gnu # elif defined(__s390__) --- -2.23.0 - diff --git a/00328-pyc-timestamp-invalidation-mode.patch b/00328-pyc-timestamp-invalidation-mode.patch index 7c10c04..9708b15 100644 --- a/00328-pyc-timestamp-invalidation-mode.patch +++ b/00328-pyc-timestamp-invalidation-mode.patch @@ -1,4 +1,4 @@ -From b7b76bfde0f5ac75978327836b8d32584b968547 Mon Sep 17 00:00:00 2001 +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 11 Jul 2019 13:44:13 +0200 Subject: [PATCH] 00328: Restore pyc to TIMESTAMP invalidation mode as default @@ -11,6 +11,8 @@ 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 ++ @@ -50,6 +52,3 @@ index d4a68c9320..ed09874023 100644 return fxn(*args, **kwargs) return wrapper --- -2.23.0 - diff --git a/python3.spec b/python3.spec index 40efc5d..b89a374 100644 --- a/python3.spec +++ b/python3.spec @@ -227,27 +227,32 @@ Source10: idle3.desktop # AppData file for idle3 Source11: idle3.appdata.xml -# 00001 # -# Fixup distutils/unixccompiler.py to remove standard library path from rpath: -# Was Patch0 in ivazquez' python3000 specfile: -Patch1: 00001-rpath.patch - -# 00102 # -# Change the various install paths to use /usr/lib64/ instead or /usr/lib -# Only used when "%%{_lib}" == "lib64" -# Not yet sent upstream. +# (Patches taken from github.com/fedora-python/cpython) + +# 00001 # d06a8853cf4bae9e115f45e1d531d2dc152c5cc8 +# Fixup distutils/unixccompiler.py to remove standard library path from rpath +# Was Patch0 in ivazquez' python3000 specfile +Patch1: 00001-rpath.patch + +# 00102 # ec4353c0f646eb567cc0d63e1e41eb5e29cc3e81 +# Change the various install paths to use /usr/lib64/ instead or /usr/lib/ +# +# Only used when "%%{_lib}" == "lib64". Patch102: 00102-lib64.patch -# 00111 # -# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build -# a libpythonMAJOR.MINOR.a +# 00111 # 03918d404a40a50c9f5f93dc748b52e613d70d31 +# Don't try to build a libpythonMAJOR.MINOR.a +# +# Downstream only: not appropriate for upstream. +# # See https://bugzilla.redhat.com/show_bug.cgi?id=556092 -# Downstream only: not appropriate for upstream Patch111: 00111-no-static-lib.patch -# 00189 # -# Instead of bundled wheels, use our RPM packaged wheels from -# /usr/share/python-wheels +# 00189 # adf51ed04ac74fd6fc39c642af35b87680c71dab +# Instead of bundled wheels, use our RPM packaged wheels +# +# We keep them in /usr/share/python-wheels +# # Downstream only: upstream bundles # We might eventually pursuit upstream support, but it's low prio Patch189: 00189-use-rpm-wheels.patch @@ -258,20 +263,30 @@ Patch189: 00189-use-rpm-wheels.patch %global pip_version 20.1.1 %global setuptools_version 47.1.0 -# 00251 +# 00251 # 2eabd04356402d488060bc8fe316ad13fc8a3356 +# Change user install location +# # Set values of prefix and exec_prefix in distutils install command # to /usr/local if executable is /usr/bin/python* and RPM build -# is not detected to make pip and distutils install into separate location +# is not detected to make pip and distutils install into separate location. +# # Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe # Downstream only: Awaiting resources to work on upstream PEP Patch251: 00251-change-user-install-location.patch -# 00274 # -# Upstream uses Debian-style architecture naming. Change to match Fedora. +# 00274 # 1e9258f6e8f70e86d5130113d3eed22993cf3da9 +# Upstream uses Debian-style architecture naming, change to match Fedora Patch274: 00274-fix-arch-names.patch -# 00328 # -# Restore pyc to TIMESTAMP invalidation mode as default in rpmbubild +# 00328 # 367fdcb5a075f083aea83ac174999272a8faf75c +# 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