From f8fe4b07733bb6bf37b2157b78bb1b0bc6881c4edb5bfcce8ad7eaf2ec723398 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Tue, 16 Jan 2024 22:11:46 +0000 Subject: [PATCH] - restore reproducible.patch to not add a random tmp path (boo#1062303) OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-yarl?expand=0&rev=62 --- python-yarl.changes | 6 ++++++ python-yarl.spec | 1 + reproducible.patch | 22 ++++++++++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 reproducible.patch diff --git a/python-yarl.changes b/python-yarl.changes index 1023dce..696a401 100644 --- a/python-yarl.changes +++ b/python-yarl.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Jan 16 22:10:35 UTC 2024 - Dirk Müller + +- restore reproducible.patch to not add a random tmp path + (boo#1062303) + ------------------------------------------------------------------- Sun Jan 14 15:08:48 UTC 2024 - Dirk Müller diff --git a/python-yarl.spec b/python-yarl.spec index b63cb71..7226574 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 +Patch1: 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..8759ec1 --- /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 + +Index: yarl-1.9.4/packaging/pep517_backend/_backend.py +=================================================================== +--- yarl-1.9.4.orig/packaging/pep517_backend/_backend.py ++++ yarl-1.9.4/packaging/pep517_backend/_backend.py +@@ -207,7 +207,7 @@ def _in_temporary_directory(src_dir: Pat + @contextmanager + def maybe_prebuild_c_extensions( + line_trace_cython_when_unset: bool = False, +- build_inplace: bool = False, ++ build_inplace: bool = True, + config_settings: dict[str, str] | None = None, + ) -> t.Generator[None, t.Any, t.Any]: + """Pre-build C-extensions in a temporary directory, when needed.