Wireshark-dev: [Wireshark-dev] Re: dpkg-buildpackage fails with recent tags

From: John Thacker <johnthacker@xxxxxxxxx>
Date: Sat, 14 Dec 2024 14:04:37 -0500

On Sat, Dec 14, 2024 at 1:32 PM Elimork Bald via Wireshark-dev <wireshark-dev@xxxxxxxxxxxxx> wrote:
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:

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?

dpkg-buildpackage by default attempts to run tests. It's hard to tell from your description, but you probably didn't install the packages that are needed for tests.  It is failing in the test suite.

You can try the "nocheck" option mentioned here to avoid running the test suite
or you can run `debian-setup` with the `--install-test-deps` option.

John