Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package python-Nuitka for openSUSE:Factory checked in at 2021-12-05 22:46:14 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/python-Nuitka (Old) and /work/SRC/openSUSE:Factory/.python-Nuitka.new.31177 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-Nuitka" Sun Dec 5 22:46:14 2021 rev:10 rq:935736 version:0.6.18 Changes: -------- --- /work/SRC/openSUSE:Factory/python-Nuitka/python-Nuitka.changes 2021-11-08 17:25:30.800745678 +0100 +++ /work/SRC/openSUSE:Factory/.python-Nuitka.new.31177/python-Nuitka.changes 2021-12-05 22:47:08.185441684 +0100 @@ -1,0 +2,8 @@ +Sat Dec 4 23:10:30 UTC 2021 - John Vandenberg <jay...@gmail.com> + +- Activate testing of PySide6 using tests-ignore-qt6-dirs.patch + to avoid unnecessary test failure +- Update to v0.6.18 + * See https://github.com/Nuitka/Nuitka/blob/develop/Changelog.rst + +------------------------------------------------------------------- Old: ---- Nuitka-0.6.17.4.tar.gz New: ---- Nuitka-0.6.18.tar.gz tests-ignore-qt6-dirs.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ python-Nuitka.spec ++++++ --- /var/tmp/diff_new_pack.FGdES8/_old 2021-12-05 22:47:08.785439729 +0100 +++ /var/tmp/diff_new_pack.FGdES8/_new 2021-12-05 22:47:08.785439729 +0100 @@ -25,6 +25,13 @@ %define psuffix -%{flavor} %endif +# QT is not available on several arch +%ifarch %{arm} aarch64 x86_64 %{ix86} ppc64le +%bcond_without test_qt6 +%else +%bcond_with test_qt6 +%endif + # Can't test for substrings server-side, so spell everything out. # Keep this in sync with the multi-python build set! %if 0%{suse_version} < 1550 @@ -105,7 +112,7 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-Nuitka%{?psuffix} -Version: 0.6.17.4 +Version: 0.6.18 Release: 0 Summary: Python compiler with full language support and CPython compatibility License: Apache-2.0 @@ -113,6 +120,8 @@ URL: https://nuitka.net Source: https://files.pythonhosted.org/packages/source/N/Nuitka/Nuitka-%{version}.tar.gz Source1: nuitka-rpmlintrc +# This is upstreamed to https://github.com/Nuitka/Nuitka/pull/1300 +Patch0: tests-ignore-qt6-dirs.patch BuildRequires: %{python_module devel} BuildRequires: %{python_module setuptools} BuildRequires: fdupes @@ -132,6 +141,7 @@ Recommends: chrpath Recommends: clang Recommends: python-tqdm +Recommends: patchelf Recommends: strace Suggests: execstack Suggests: gdb @@ -157,9 +167,10 @@ BuildRequires: %{python_module hypothesis} BuildRequires: %{python_module idna} BuildRequires: %{python_module lxml} +BuildRequires: %{python_module matplotlib if (%python-base without python36-base)} +BuildRequires: %{python_module numpy if (%python-base without python36-base)} BuildRequires: %{python_module opengl-accelerate} BuildRequires: %{python_module opengl} -BuildRequires: %{python_module numpy if (%python-base without python36-base)} BuildRequires: %{python_module pandas if (%python-base without python36-base)} BuildRequires: %{python_module passlib} BuildRequires: %{python_module pendulum} @@ -176,12 +187,17 @@ BuildRequires: %{python_module zstd} BuildRequires: ccache BuildRequires: chrpath -BuildRequires: openSUSE-release BuildRequires: gdb +BuildRequires: openSUSE-release +BuildRequires: patchelf BuildRequires: strace BuildRequires: tk -# pyside2 has working tests, however it exists on few arch -#BuildRequires: python3-pyside2 +%if %{with test_qt6} +%if 0%{?suse_version} > 1500 +# Leap doesnt have PySide6, and it has old naming on Tumbleweed +BuildRequires: python3-pyside6 +%endif +%endif # AppImageKit not available in Factory yet # https://github.com/Nuitka/Nuitka/issues/992 #BuildRequires: appimagetool @@ -200,10 +216,12 @@ %prep %setup -q -n Nuitka-%{version} +%autopatch -p1 # De-vendor rm -r nuitka/build/inline_copy/appdirs/ rm -r nuitka/build/inline_copy/atomicwrites/ rm -r nuitka/build/inline_copy/jinja2/ +rm -r nuitka/build/inline_copy/jinja2_35/ rm -r nuitka/build/inline_copy/markupsafe/ # dep of Jinja2 rm -r nuitka/build/inline_copy/yaml rm -r nuitka/build/inline_copy/yaml_27/ @@ -237,8 +255,13 @@ # https://github.com/Nuitka/Nuitka/issues/965 sed -Ei 's/(NumpyUsing)/IgnoreThisConditional/' tests/standalone/run_all.py -# - NumpyUsing fails -#rm tests/standalone/NumpyUsing.py +# These two are fixed in the next patch release + +# GlfwUsing failure https://github.com/Nuitka/Nuitka/issues/1297 +rm tests/standalone/GlfwUsing.py + +# MatplotlibUsing failure https://github.com/Nuitka/Nuitka/issues/1298 +rm tests/standalone/MatplotlibUsing.py # adjust mtime so that deduplicating the cache files after install does not make them inconsistent find nuitka -name __init__.py -exec touch -m -r nuitka/__init__.py {} ';' @@ -254,16 +277,19 @@ mv %{buildroot}%{_bindir}/nuitka3 %{buildroot}%{_bindir}/nuitka mv %{buildroot}%{_bindir}/nuitka3-run %{buildroot}%{_bindir}/nuitka-run +rm -f %{buildroot}%{_bindir}/nuitka2 +rm -f %{buildroot}%{_bindir}/nuitka2-run + %python_clone -a %{buildroot}%{_bindir}/nuitka %python_clone -a %{buildroot}%{_bindir}/nuitka-run %fdupes %{buildroot}%{_bindir} # Allow building from source repo tarball -if [ -f doc/nuitka.1 ]; then +if [ -f doc/nuitka3.1 ]; then mkdir -p %{buildroot}%{_mandir}/man1 - gzip -c doc/nuitka.1 > %{buildroot}%{_mandir}/man1/nuitka.1.gz - gzip -c doc/nuitka-run.1 > %{buildroot}%{_mandir}/man1/nuitka-run.1.gz + gzip -c doc/nuitka3.1 > %{buildroot}%{_mandir}/man1/nuitka.1.gz + gzip -c doc/nuitka3-run.1 > %{buildroot}%{_mandir}/man1/nuitka-run.1.gz %python_clone -a %{buildroot}%{_mandir}/man1/nuitka.1.gz %python_clone -a %{buildroot}%{_mandir}/man1/nuitka-run.1.gz @@ -278,7 +304,13 @@ # scons is primary python3 only, but used in the tests it needs to find the modules in its "own" flavor. Luckily it is pure... mkdir my-scons +%if 0%{?sle_version} == 150100 +# Leap 15.1 placed scons here +cp -rp %{_libexecdir}/scons-*/ my-scons/ +%else cp -r %{python3_sitelib}/SCons my-scons/ +%endif + %{python_expand # mkdir build/testbin cp -r %{_bindir}/scons* build/testbin/ @@ -304,6 +336,7 @@ mv tests/standalone/OpenGLUsing.py /tmp mv tests/standalone/PandasUsing.py /tmp mv tests/standalone/PendulumUsing.py /tmp + # NumpyUsing.py can OOM on ppc64 & ppc64le fi export NUITKA_EXTRA_OPTIONS="--debug" @@ -354,6 +387,10 @@ # Please add/remove --debug periodically as many bugs # have been found with/without this flag. +# A patchelf failure in Pandasusing on gcc Leap 15.2 py36 has occurred once +# It may be the same problem as https://github.com/Nuitka/Nuitka/issues/1298 +# which will be fixed in the next patch release + export NUITKA_EXTRA_OPTIONS="" CC=gcc $python ./tests/run-tests --no-other-python ++++++ Nuitka-0.6.17.4.tar.gz -> Nuitka-0.6.18.tar.gz ++++++ ++++ 205513 lines of diff (skipped) ++++++ tests-ignore-qt6-dirs.patch ++++++ commit f315d91ab291ca659361642cfcfed6f81b544c8d Author: John Vandenberg <jay...@gmail.com> Date: Sun Dec 5 07:42:55 2021 +0800 Testing: Allow accessing qt6 dirs diff --git a/nuitka/tools/testing/Common.py b/nuitka/tools/testing/Common.py index 875ebc891..59e45b863 100644 --- a/nuitka/tools/testing/Common.py +++ b/nuitka/tools/testing/Common.py @@ -1625,8 +1625,12 @@ def checkLoadedFileAccesses(loaded_filenames, current_dir): if loaded_filename == os.path.join(lib_prefix_dir, "dist-packages/gobject"): continue - # PyQt5 seems to do this, but won't use contents then. + # PyQt5 and PySide6 seems to do this, but won't use contents then. if loaded_filename in ( + "/usr/lib/qt6/plugins", + "/usr/lib/qt6", + "/usr/lib64/qt6/plugins", + "/usr/lib64/qt6", "/usr/lib/qt5/plugins", "/usr/lib/qt5", "/usr/lib64/qt5/plugins",