diff --git a/python-yarl.changes b/python-yarl.changes index 9caeadb..4214409 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Dec 12 03:44:58 UTC 2023 - Bernhard Wiedemann + +- Add reproducible.patch to not add a random tmp path + into the package (boo#1062303) + ------------------------------------------------------------------- Mon Nov 27 20:14:14 UTC 2023 - Dirk Müller diff --git a/python-yarl.spec b/python-yarl.spec index 5535d4a..b404a66 100644 --- a/python-yarl.spec +++ b/python-yarl.spec @@ -24,6 +24,7 @@ Summary: Yet another URL library License: Apache-2.0 URL: https://github.com/aio-libs/yarl/ Source: https://files.pythonhosted.org/packages/source/y/yarl/yarl-%{version}.tar.gz +Patch0: reproducible.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.7} BuildRequires: %{python_module expandvars} diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..266d7f1 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,22 @@ +Date: 2023-12-12 +Author: Bernhard M. Wiedemann + +Make package build reproducible + +For this we avoid the use of a random tmp path +that gets embedded into +/usr/lib64/python3.10/site-packages/yarl/_quoting_c.cpython-310-x86_64-linux-gnu.so + +diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py +index 9360598..8731ed1 100644 +--- a/packaging/pep517_backend/_backend.py ++++ b/packaging/pep517_backend/_backend.py +@@ -323,7 +323,7 @@ def build_wheel( + + """ + with maybe_prebuild_c_extensions( +- build_inplace=False, ++ build_inplace=True, + config_settings=config_settings, + ): + return _setuptools_build_wheel(