Wireshark-dev: [Wireshark-dev] dpkg-buildpackage fails with recent tags
From: Elimork Bald <elimork.bald@xxxxxxxxxxxxxx>
Date: Sat, 14 Dec 2024 18:32:01 +0000
I updated the git source, ran everything by the book, as usual. I followed: https://www.wireshark.org/docs/wsdg_html_chunked/ChapterSetup.html#ChSetupUNIX created build directory, ran cmake -G Ninja .. which compiled fine. And I wanted to create deb packages, which I usually successfully accomplish. Not this time though. This is how my dpkg-buildpackage failed: if check_passed: logging.info(tshark_proc.stdout) logging.info(tshark_proc.stderr) if not 'All tests passed!' in tshark_proc.stdout: > pytest.fail("Some test failed, check the logs (eg: pytest --lf --log-cli-level=info)") E Failed: Some test failed, check the logs (eg: pytest --lf --log-cli-level=info) ../test/suite_wslua.py:44: Failed =========================== short test summary info ============================ SKIPPED [1] ../test/suite_capture.py:473: Test requires capture privileges. SKIPPED [1] ../test/suite_capture.py:502: Test requires capture privileges. SKIPPED [1] ../test/suite_capture.py:512: Test requires capture privileges. SKIPPED [1] ../test/suite_capture.py:516: Test requires capture privileges. SKIPPED [1] ../test/suite_decryption.py:1271: Requires GnuTLS with PKCS #11 support. SKIPPED [1] ../test/suite_capture.py:528: Test requires capture privileges. SKIPPED [1] ../test/suite_capture.py:534: Test requires capture privileges. SKIPPED [1] ../test/suite_capture.py:538: Test requires capture privileges. SKIPPED [1] ../test/suite_capture.py:550: Test requires capture privileges. SKIPPED [1] ../test/suite_clopts.py:134: Test requires capture privileges. SKIPPED [1] ../test/suite_clopts.py:142: Test requires capture privileges. SKIPPED [1] ../test/suite_clopts.py:151: Test requires capture privileges. SKIPPED [1] ../test/suite_clopts.py:50: Test requires capture privileges. SKIPPED [1] ../test/suite_clopts.py:58: Test requires capture privileges. SKIPPED [1] ../test/suite_clopts.py:67: Test requires capture privileges. SKIPPED [1] ../test/suite_release.py:44: Release tests are not enabled via --enable-release SKIPPED [1] ../test/suite_release.py:54: Release tests are not enabled via --enable-release FAILED suite_clopts.py::TestTsharkDumpGlossaries::test_tshark_dump_glossary FAILED suite_clopts.py::TestTsharkExtcap::test_tshark_extcap_interfaces - ass... FAILED suite_dissection.py::TestDissectProtobuf::test_protobuf_field_subdissector FAILED suite_dissection.py::TestDissectProtobuf::test_protobuf_called_by_custom_dissector FAILED suite_wslua.py::TestWslua::test_wslua_dir - Failed: Some test failed, ... FAILED suite_wslua.py::TestWslua::test_wslua_dissector_fpm - subprocess.Calle... FAILED suite_wslua.py::TestWslua::test_wslua_file_acme_reader - subprocess.Ca... FAILED suite_wslua.py::TestWslua::test_wslua_dissector_mode_1 - Failed: Some ... FAILED suite_wslua.py::TestWslua::test_wslua_util - Failed: Some test failed,... FAILED suite_wslua.py::TestWslua::test_wslua_pinfo - Failed: Some test failed... FAILED suite_wslua.py::TestWslua::test_wslua_file_writer - subprocess.CalledP... FAILED suite_wslua.py::TestWslua::test_wslua_field - Failed: Some test failed... FAILED suite_wslua.py::TestWslua::test_wslua_listener - Failed: Some test fai... FAILED suite_wslua.py::TestWslua::test_wslua_nstime - Failed: Some test faile... FAILED suite_wslua.py::TestWslua::test_wslua_proto - Failed: Some test failed... FAILED suite_wslua.py::TestWslua::test_wslua_byte_array - Failed: Some test f... FAILED suite_wslua.py::TestWslua::test_wslua_protofield_tree - subprocess.Cal... FAILED suite_wslua.py::TestWslua::test_wslua_dissector_mode_3 - Failed: Some ... FAILED suite_wslua.py::TestWslua::test_wslua_args_2 - Failed: Some test faile... FAILED suite_wslua.py::TestWslua::test_wslua_args_1 - Failed: Some test faile... FAILED suite_wslua.py::TestWslua::test_wslua_protofield_no_tree - subprocess.... FAILED suite_wslua.py::TestWslua::test_wslua_args_3 - Failed: Some test faile... FAILED suite_wslua.py::TestWslua::test_wslua_globals - Failed: Some test fail... FAILED suite_wslua.py::TestWslua::test_wslua_int64 - Failed: Some test failed... FAILED suite_wslua.py::TestWslua::test_wslua_struct - Failed: Some test faile... FAILED suite_wslua.py::TestWslua::test_wslua_tvb_no_tree - Failed: Some test ... FAILED suite_wslua.py::TestWslua::test_wslua_tvb_tree - Failed: Some test fai... FAILED suite_wslua.py::TestWsluaUnicode::test_wslua_unicode - AssertionError:... FAILED suite_wslua.py::TestWslua::test_wslua_add_packet_field - Failed: Some ... FAILED suite_wslua.py::TestWsluaLocale::test_wslua_util_locale - Failed: Some... FAILED suite_wslua.py::TestWslua::test_wslua_try_heuristics - Failed: Some te... FAILED suite_wslua.py::TestWsluaLocale::test_wslua_protofield_locale_tree - s... FAILED suite_wslua.py::TestWsluaLocale::test_wslua_protofield_locale_no_tree FAILED suite_wslua.py::TestWslua::test_wslua_dissector_mode_2 - Failed: Some ... ================= 34 failed, 868 passed, 17 skipped in 33.43s ================== make[5]: *** [CMakeFiles/test.dir/build.make:73: CMakeFiles/test] Error 1 make[5]: Leaving directory '/mnc/src/n2/wireshark/obj-x86_64-linux-gnu' make[4]: *** [CMakeFiles/Makefile2:4202: CMakeFiles/test.dir/all] Error 2 make[4]: Leaving directory '/mnc/src/n2/wireshark/obj-x86_64-linux-gnu' make[3]: *** [CMakeFiles/Makefile2:4209: CMakeFiles/test.dir/rule] Error 2 make[3]: Leaving directory '/mnc/src/n2/wireshark/obj-x86_64-linux-gnu' make[2]: *** [Makefile:557: test] Error 2 make[2]: Leaving directory '/mnc/src/n2/wireshark/obj-x86_64-linux-gnu' dh_auto_test: error: cd obj-x86_64-linux-gnu && make -j8 test ARGS\+=--verbose ARGS\+=-j8 returned exit code 2 make[1]: *** [debian/rules:96: override_dh_auto_test] Error 25 make[1]: Leaving directory '/mnc/src/n2/wireshark' make: *** [debian/rules:46: binary] Error 2 dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2 Just to say that I looked up: https://gitlab.com/wireshark/wireshark/-/commits/master?ref_type=heads and chose version that were ticked working. and then I: git checkout ab2d59908e4fead8a71e6c1e422ec8a2da04edc7 and upon compilation I got that error. The log above actually is after I checked out: 242b90858fca996a0f5a410a7e8176aeb022046c and compiled it. It probably didn't matter. I intentionally included the extra lines before the Error as "eg: pytest --lf --log-cli-level=info". Will try to see if I can recover what causes this with that. I'm running Debian Testing, trixie/sid, so I have to modify the tools/debian-setup and comment out the if and else and elif lines and lines with MAJOR and VERSION_ID, and leave only: BASIC_LIST="$BASIC_LIST $QT6_LIST" and that gets all the needed packages for later correct compiling, usually. What could this be? How to solve it? Thanks in advance! Elimork Sent with Proton Mail secure email.
- Follow-Ups:
- [Wireshark-dev] Re: dpkg-buildpackage fails with recent tags
- From: John Thacker
- [Wireshark-dev] Re: dpkg-buildpackage fails with recent tags
- Prev by Date: [Wireshark-dev] Re: Breaking field name or duplicating value
- Next by Date: [Wireshark-dev] Re: dpkg-buildpackage fails with recent tags
- Previous by thread: [Wireshark-dev] Re: Breaking field name or duplicating value
- Next by thread: [Wireshark-dev] Re: dpkg-buildpackage fails with recent tags
- Index(es):