Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-python-prctl for openSUSE:Factory checked in at 2022-10-08 01:25:02 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-python-prctl (Old) and /work/SRC/openSUSE:Factory/.python-python-prctl.new.2275 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-python-prctl" Sat Oct 8 01:25:02 2022 rev:6 rq:1008683 version:1.8.1 Changes: -------- --- /work/SRC/openSUSE:Factory/python-python-prctl/python-python-prctl.changes 2022-02-17 23:41:37.151700371 +0100 +++ /work/SRC/openSUSE:Factory/.python-python-prctl.new.2275/python-python-prctl.changes 2022-10-08 01:25:08.322217781 +0200 @@ -1,0 +2,7 @@ +Fri Oct 7 07:39:38 UTC 2022 - Mark??ta Machov?? <mmach...@suse.com> + +- Add patch dont-check-builddir.patch + * The check whether the tests run in builddir is broken, turn it off + and assume everything is fine (we would see it if not). + +------------------------------------------------------------------- New: ---- dont-check-builddir.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-python-prctl.spec ++++++ --- /var/tmp/diff_new_pack.ibALOA/_old 2022-10-08 01:25:08.770218809 +0200 +++ /var/tmp/diff_new_pack.ibALOA/_new 2022-10-08 01:25:08.770218809 +0200 @@ -33,6 +33,7 @@ Patch5: correct-uname-comparsion.patch Patch6: check-for-python310-correctly.patch Patch7: skip-speculation.patch +Patch8: dont-check-builddir.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -64,7 +65,7 @@ %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest discover -v +%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python test_prctl.py %files %{python_files} %license COPYING ++++++ dont-check-builddir.patch ++++++ Index: python-prctl-1.8.1/test_prctl.py =================================================================== --- python-prctl-1.8.1.orig/test_prctl.py +++ python-prctl-1.8.1/test_prctl.py @@ -22,15 +22,6 @@ except ImportError: curdir = os.path.dirname(__file__) builddir = os.path.join(curdir, 'build', 'lib.%s-%s' % (distutils.util.get_platform(), '.'.join([str(x) for x in sys.version_info[:2]]))) -# Always run from the builddir -if not os.path.exists(builddir) or \ - not os.path.exists(os.path.join(builddir, 'prctl.py')) or \ - not os.path.exists(os.path.join(builddir, '_prctl' + so)) or \ - int(os.path.getmtime(os.path.join(curdir, 'prctl.py'))) > int(os.path.getmtime(os.path.join(builddir, 'prctl.py'))) or \ - os.path.getmtime(os.path.join(curdir, '_prctlmodule.c')) > os.path.getmtime(os.path.join(builddir, '_prctl' + so)): - sys.stderr.write("Please build the extension first, using ./setup.py build\n") - sys.exit(1) -sys.path.insert(0, builddir) import prctl import _prctl