From dab55d7d5bffcc82b3c31de19c31c9fca7ceb67c1fddf8fb5237cfb67b11c3d4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Mon, 14 Oct 2024 08:36:51 +0000 Subject: [PATCH] Accepting request 1207574 from home:bmwiedemann:branches:devel:languages:python Add reproducible.patch to not embed a random tmpdir in binaries (boo#1062303) OBS-URL: https://build.opensuse.org/request/show/1207574 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-propcache?expand=0&rev=4 --- python-propcache.changes | 5 +++++ python-propcache.spec | 1 + reproducible.patch | 13 +++++++++++++ 3 files changed, 19 insertions(+) create mode 100644 reproducible.patch diff --git a/python-propcache.changes b/python-propcache.changes index 5030d58..86bb663 100644 --- a/python-propcache.changes +++ b/python-propcache.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Oct 13 11:54:18 UTC 2024 - Bernhard Wiedemann + +- Add reproducible.patch to not embed a random tmpdir in binaries (boo#1062303) + ------------------------------------------------------------------- Wed Oct 9 07:35:20 UTC 2024 - John Paul Adrian Glaubitz diff --git a/python-propcache.spec b/python-propcache.spec index 95027a2..38418a9 100644 --- a/python-propcache.spec +++ b/python-propcache.spec @@ -23,6 +23,7 @@ Summary: Accelerated property cache License: Apache-2.0 URL: https://github.com/aio-libs/propcache Source: https://files.pythonhosted.org/packages/source/p/propcache/propcache-%{version}.tar.gz +Patch0: reproducible.patch BuildRequires: python-rpm-macros BuildRequires: %{python_module Cython >= 3.0.11} BuildRequires: %{python_module expandvars} diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..6c4fb40 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,13 @@ +diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py +index 7245be9..ad4dd85 100644 +--- a/packaging/pep517_backend/_backend.py ++++ b/packaging/pep517_backend/_backend.py +@@ -321,7 +321,7 @@ def build_wheel( + """ + with maybe_prebuild_c_extensions( + line_trace_cython_when_unset=False, +- build_inplace=False, ++ build_inplace=True, + config_settings=config_settings, + ): + return _setuptools_build_wheel(