Source: py-rnp
Version: 0.1.0+git20221014.01b7129-4
Severity: serious
Justification: FTBFS
Tags: trixie sid ftbfs
User: [email protected]
Usertags: ftbfs-20231212 ftbfs-trixie
Hi,
During a rebuild of all packages in sid, your package failed to build
on amd64.
Relevant part (hopefully):
> debian/rules binary
> dh binary --buildsystem=pybuild --with python3
> dh_update_autotools_config -O--buildsystem=pybuild
> dh_autoreconf -O--buildsystem=pybuild
> dh_auto_configure -O--buildsystem=pybuild
> dh_auto_build -O--buildsystem=pybuild
> I: pybuild plugin_pyproject:110: Building wheel for python3.12 with "build"
> module
> I: pybuild base:310: python3.12 -m build --skip-dependency-check
> --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_rnp
> * Building wheel...
> Successfully built rnp-0.1.0-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.12 with
> "installer" module
> I: pybuild plugin_pyproject:110: Building wheel for python3.11 with "build"
> module
> I: pybuild base:310: python3.11 -m build --skip-dependency-check
> --no-isolation --wheel --outdir /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_rnp
> * Building wheel...
> Successfully built rnp-0.1.0-py3-none-any.whl
> I: pybuild plugin_pyproject:122: Unpacking wheel built for python3.11 with
> "installer" module
> dh_auto_test -O--buildsystem=pybuild
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_rnp/build;
> python3.12 -m pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.12.1, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_rnp/build
> collected 88 items
>
> tests/test_default_key.py . [
> 1%]
> tests/test_generate.py .......... [
> 12%]
> tests/test_identifiers.py . [
> 13%]
> tests/test_import_signatures.py . [
> 14%]
> tests/test_input_io.py . [
> 15%]
> tests/test_key_add_userid.py . [
> 17%]
> tests/test_key_count.py . [
> 18%]
> tests/test_key_export.py .... [
> 22%]
> tests/test_key_lifetime.py . [
> 23%]
> tests/test_key_properties.py ...................... [
> 48%]
> tests/test_key_protect_lock.py . [
> 50%]
> tests/test_key_revocation.py ..... [
> 55%]
> tests/test_key_sigs.py .. [
> 57%]
> tests/test_key_subkeys.py . [
> 59%]
> tests/test_key_userid.py .. [
> 61%]
> tests/test_load_save.py .... [
> 65%]
> tests/test_misc.py ............ [
> 79%]
> tests/test_output_io.py . [
> 80%]
> tests/test_simple_encrypt.py .... [
> 85%]
> tests/test_simple_sign.py .F.. [
> 89%]
> tests/test_version.py .... [
> 94%]
> tests/op/test_op_encrypt.py . [
> 95%]
> tests/op/test_op_generate.py ....
> [100%]
>
> =================================== FAILURES
> ===================================
> ________________________ test_simple_sign_with_options
> _________________________
>
> rpgp = <rnp.rnp.Rnp object at 0x7fb67f06af30>
> key = <rnp.key.Key object at 0x7fb67f06b1d0>
>
> def test_simple_sign_with_options(rpgp, key):
> halg = random.choice(rnp.features("hash algorithm"))
> calg = random.choice(
> [
> calg
> for calg in rnp.features("compression algorithm")
> if calg != "Uncompressed"
> ]
> )
> signature = rpgp.sign(
> key,
> rnp.Input.from_bytes(b"test data"),
> True,
> halg,
> (calg, 1),
> int(time.time()),
> 60 * 10,
> )
> assert isinstance(signature, bytes)
> assert len(signature) >= 1
> assert signature.startswith(b"-----BEGIN PGP MESSAGE-----\r\n")
> > rpgp.verify(rnp.Input.from_bytes(signature))
>
> tests/test_simple_sign.py:53:
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
> rnp/rnp.py:296: in verify
> op.finish()
> rnp/op/verify.py:42: in finish
> _lib.rnp_op_verify_execute(self._obj)
> _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
> _
>
> rc = 301989890, fn = <_FuncPtr object at 0x7fb67efe8dd0>
> _args = (c_void_p(46028032),)
>
> def _errcheck(rc, fn, _args):
> if rc == 0:
> return rc
> > raise RnpException("%s failed" % (fn.__name__), rc)
> E rnp.lib.RnpException: rnp_op_verify_execute failed: 0x12000002
> (Invalid signature)
>
> rnp/lib.py:85: RnpException
> ----------------------------- Captured stderr call
> -----------------------------
> [signature_validate() ./src/lib/crypto/signatures.cpp:211] Insecure hash
> algorithm 2, marking signature as invalid.
> =========================== short test summary info
> ============================
> FAILED tests/test_simple_sign.py::test_simple_sign_with_options -
> rnp.lib.Rnp...
> ========================= 1 failed, 87 passed in 9.56s
> =========================
> E: pybuild pybuild:395: test: plugin pyproject failed with: exit code=1: cd
> /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12_rnp/build; python3.12 -m pytest tests
> I: pybuild base:310: cd /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_rnp/build;
> python3.11 -m pytest tests
> ============================= test session starts
> ==============================
> platform linux -- Python 3.11.7, pytest-7.4.3, pluggy-1.3.0
> rootdir: /<<PKGBUILDDIR>>/.pybuild/cpython3_3.11_rnp/build
> collected 88 items
>
> tests/test_default_key.py . [
> 1%]
> tests/test_generate.py .......... [
> 12%]
> tests/test_identifiers.py . [
> 13%]
> tests/test_import_signatures.py . [
> 14%]
> tests/test_input_io.py . [
> 15%]
> tests/test_key_add_userid.py . [
> 17%]
> tests/test_key_count.py . [
> 18%]
> tests/test_key_export.py .... [
> 22%]
> tests/test_key_lifetime.py . [
> 23%]
> tests/test_key_properties.py ...................... [
> 48%]
> tests/test_key_protect_lock.py . [
> 50%]
> tests/test_key_revocation.py ..... [
> 55%]
> tests/test_key_sigs.py .. [
> 57%]
> tests/test_key_subkeys.py . [
> 59%]
> tests/test_key_userid.py .. [
> 61%]
> tests/test_load_save.py .... [
> 65%]
> tests/test_misc.py ............ [
> 79%]
> tests/test_output_io.py . [
> 80%]
> tests/test_simple_encrypt.py .... [
> 85%]
> tests/test_simple_sign.py .... [
> 89%]
> tests/test_version.py .... [
> 94%]
> tests/op/test_op_encrypt.py . [
> 95%]
> tests/op/test_op_generate.py ....
> [100%]
>
> ============================= 88 passed in 13.99s
> ==============================
> dh_auto_test: error: pybuild --test --test-pytest -i python{version} -p "3.12
> 3.11" returned exit code 13
The full build log is available from:
http://qa-logs.debian.net/2023/12/12/py-rnp_0.1.0+git20221014.01b7129-4_unstable.log
All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20231212;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20231212&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results
A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!
If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects
If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.