• Help needed with src:pkg click when building against Python 3.10 (3/3)

    From Mike Gabriel@21:1/5 to All on Sun May 29 09:00:01 2022
    [continued from previous message]

    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_missing
    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_oserror
    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_symlink_unlink_oserror (click_package.tests.test_osextras.TestOSExtrasPython) ... ok
    test_umask (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_file_missing (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_file_present (click_package.tests.test_osextras.TestOSExtrasPython) ... ok test_unlink_oserror
    (click_package.tests.test_osextras.TestOSExtrasPython) ... ok

    ======================================================================
    ERROR: test_audit_matching_md5sums (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line
    399, in test_audit_matching_md5sums
    enter()
    File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper
    raise Exception("Subprocess returned an error! (%s, %s)" % (
    Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)

    ======================================================================
    ERROR: test_install (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched
    return func(*newargs, **newkeywargs)
    File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line
    453, in test_install
    enter()
    File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper
    raise Exception("Subprocess returned an error! (%s, %s)" % (
    Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)

    ======================================================================
    ERROR: test_multiple_architectures (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched
    return func(*newargs, **newkeywargs)
    File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line
    700, in test_multiple_architectures
    enter()
    File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper
    raise Exception("Subprocess returned an error! (%s, %s)" % (
    Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)

    ======================================================================
    ERROR: test_reinstall_preinstalled (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/<<PKGBUILDDIR>>/click_package/tests/helpers.py", line 59, in wrapper
    return func(*args, **kwargs)
    File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line
    755, in test_reinstall_preinstalled
    installer.install(path, all_users=True)
    File "/<<PKGBUILDDIR>>/click_package/install.py", line 462, in install
    package_name, package_version, old_version = self._unpack(
    File "/<<PKGBUILDDIR>>/click_package/install.py", line 416, in _unpack
    fn(command,
    File "/usr/lib/python3.10/subprocess.py", line 420, in check_output
    return run(*popenargs, stdout=PIPE, timeout=timeout, check=True,
    File "/usr/lib/python3.10/subprocess.py", line 524, in run
    raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '['dpkg', '--force-not-root', '--force-bad-path', '--force-architecture', '--instdir', '/tmp/clickxj9jo6q9/underlay/test-package/1.1', '--admindir', '/tmp/clickxj9jo6q9/underlay/test-package/1.1/.click',
    '--path-exclude', '*/.click/*', '--log', '/tmp/clickxj9jo6q9/underlay/.click/log', '--no-triggers',
    '--install', '/tmp/clickxj9jo6q9/fake-package.click']' returned
    non-zero exit status 1.

    ======================================================================
    ERROR: test_single_architecture (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched
    return func(*newargs, **newkeywargs)
    File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line
    663, in test_single_architecture
    enter()
    File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper
    raise Exception("Subprocess returned an error! (%s, %s)" % (
    Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)

    ======================================================================
    ERROR: test_upgrade (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched
    return func(*newargs, **newkeywargs)
    File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line
    551, in test_upgrade
    enter()
    File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper
    raise Exception("Subprocess returned an error! (%s, %s)" % (
    Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)

    ======================================================================
    ERROR: test_world_readable (click_package.tests.test_install.TestClickInstaller) ---------------------------------------------------------------------- Traceback (most recent call last):
    File "/usr/lib/python3.10/unittest/mock.py", line 1369, in patched
    return func(*newargs, **newkeywargs)
    File "/<<PKGBUILDDIR>>/click_package/tests/test_install.py", line
    613, in test_world_readable
    enter()
    File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 491, in helper
    raise Exception("Subprocess returned an error! (%s, %s)" % (
    Exception: Subprocess returned an error! (<class 'subprocess.CalledProcessError'>, 1)

    ----------------------------------------------------------------------
    Ran 225 tests in 30.406s

    FAILED (errors=7, skipped=13, expected failures=1)
    Test failed: <unittest.runner.TextTestResult run=225 errors=7 failures=0>
    b''
    b''
    b''
    b''
    b''
    b''
    error: Test failed: <unittest.runner.TextTestResult run=225 errors=7 failures=0>
    make[3]: *** [Makefile:873: check-local] Error 1
    make[3]: Leaving directory '/<<PKGBUILDDIR>>'
    make[2]: *** [Makefile:738: check-am] Error 2
    make[2]: Leaving directory '/<<PKGBUILDDIR>>'
    make[1]: *** [Makefile:442: check-recursive] Error 1
    make[1]: Leaving directory '/<<PKGBUILDDIR>>'
    dh_auto_test: error: make -j8 check "TESTSUITEFLAGS=-j8 --verbose"
    VERBOSE=1 returned exit code 2
    make: *** [debian/rules:14: binary] Error 25
    dpkg-buildpackage: error: debian/rules binary subprocess returned exit
    status 2 --------------------------------------------------------------------------------
    Build finished at 2022-05-28T22:14:37Z
    ```
    --

    DAS-NETZWERKTEAM
    c\o Technik- und Ökologiezentrum Eckernförde
    Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
    mobile: +49 (1520) 1976 148
    landline: +49 (4351) 850 8940

    GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31
    mail: mike.gabriel@das-netzwerkteam.de, http://das-netzwerkteam.de


    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2

    iQIzBAABCgAdFiEEm/uu6GwKpf+/IgeCmvRrMCV3GzEFAmKTGCMACgkQmvRrMCV3 GzH21w/9E3yjTNkz9COTdPk5f4i0XvvYcsROia/suDDeprRmBp+XAcutTu/vcLQQ wiSo7KRXSsRAw+GMUVyXBQuxsqcVVJwa4rsZaA/HLfsf5pU2Va+5YCgQOb+dgPyL ejlLSu/yMBklEwujdkM2tU27Am9MYTqoW/ux1dMvdTQo+7HN/oT+G/Nt41g1bgR9 v9DbMfxVAACny2eEs2XFw08XsHH3TDdp1/Bbjr9L4jcNBy9u3CGwA64UQRF5o04d zgwDhEFox/57Wve1h2/XZA1ML/znNIL88+j+umlFAfvgkCRjwSbCRVy6BJHx6s4m n7iutv3XaUksWIJ+PmwnsBjX17+J9GKJjg9/3E8umvtOT7MRUuh+7Ui18a01tZhN UWwjVxM3sVAFgzef2xCBDPz7u4zcWLlPUd13fCD/DoPCRYCkNEuaMapieUUtzyRr wqh/J7q0lihbJhkZM+Fn+JisoQj9WngKm06F15uJKoHpHTG1s5OcW3D/qFv9Pldq 9dpmAy12H3Con5w1nXw6u31xWN/a4P7V76ZwZGQnMtEq