From 2c1aaea4f2b03f1da7747b0d23ad8a467d7bd4a61890e8f8a9b7a41bc583e87b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 16 Jan 2024 14:57:43 +0000 Subject: [PATCH] Accepting request 1139165 from home:bmwiedemann:branches:devel:languages:python Add reproducible.patch to avoid embedding a random tmp dir (boo#1062303) OBS-URL: https://build.opensuse.org/request/show/1139165 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-frozenlist?expand=0&rev=16 --- python-frozenlist.changes | 5 +++++ python-frozenlist.spec | 2 ++ reproducible.patch | 15 +++++++++++++++ 3 files changed, 22 insertions(+) create mode 100644 reproducible.patch diff --git a/python-frozenlist.changes b/python-frozenlist.changes index f9225c6..ce37481 100644 --- a/python-frozenlist.changes +++ b/python-frozenlist.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Jan 16 08:30:56 UTC 2024 - Bernhard Wiedemann + +- Add reproducible.patch to avoid embedding a random tmp dir (boo#1062303) + ------------------------------------------------------------------- Mon Jan 8 09:11:26 UTC 2024 - Dirk Müller diff --git a/python-frozenlist.spec b/python-frozenlist.spec index 4ffd1e5..5c3cff7 100644 --- a/python-frozenlist.spec +++ b/python-frozenlist.spec @@ -25,6 +25,8 @@ License: Apache-2.0 URL: https://github.com/aio-libs/frozenlist Source: https://files.pythonhosted.org/packages/source/f/frozenlist/frozenlist-%{version}.tar.gz Patch1: no-pytest-cov.patch +# PATCH-FIX-OPENSUSE - avoid embedding random tmp dir in .so +Patch2: reproducible.patch BuildRequires: %{python_module Cython} BuildRequires: %{python_module devel >= 3.8} BuildRequires: %{python_module expandvars} diff --git a/reproducible.patch b/reproducible.patch new file mode 100644 index 0000000..8db2072 --- /dev/null +++ b/reproducible.patch @@ -0,0 +1,15 @@ +workaround https://github.com/cython/cython/issues/5949 + +diff --git a/packaging/pep517_backend/_backend.py b/packaging/pep517_backend/_backend.py +index 8bb2ee2..e640738 100644 +--- a/packaging/pep517_backend/_backend.py ++++ b/packaging/pep517_backend/_backend.py +@@ -286,7 +286,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(