Huge thanks to our Platinum Members Endace and LiveAction,
and our Silver Member Veeam, for supporting the Wireshark Foundation and project.

Wireshark-dev: [Wireshark-dev] Building under Ubuntu on WSL

From: Neil Piercy <neil.piercy@xxxxxxxxxxxx>
Date: Fri, 1 May 2020 10:26:48 +0000
I'm trying to re-building the standard Ubuntu wireshark package 3.2.3-1 from focal installed under WSL from the MS store.

First issue was the lack of SYSV_IPC, so default fakeroot builds don't work, but switching to faked tcp as a build option works: "debuild -b -uc -us -r'fakeroot --faked faked-tcp'

The second issue was  https://github.com/Microsoft/WSL/issues/3023, but the workaround worked: "strip --remove-section=.note.ABI-tag /usr/lib/x86_64-linux-gnu/libQt5Core.so.5.12.8 ."

That gets all the way to the packaging which is failing in a very strange way:
dpkg-gencontrol: error: install new files list file: No such file or directory

Turning on the verbose build flags gives some invocations of dpkg-gencontrol work and some fail, and re-running, it looks like _different_ package invocations succeed and fail on every build run. Using --no-parallel didn't change behaviour, but it also didn't seem to propagate to the dh_gencontrol except to remove the --parallel option (it didn't add --no-parallel, and the dh_gencontrol still seems to be by default --parallel)), but even using an override rule with -no-parallel didn't seem to actually make it non parallel. Sample logs (grep'ed with "gencontrol" and the long lines truncated) below.

Anyone tried building on WSL or seen anything similar? I'm beginning to suspect a WSL FS issue, but that is just a guess right now.

Regards,
Neil

*** Default rules + Debug/verbose:
   dh_gencontrol -O--buildsystem=cmake -O--parallel
	dpkg-gencontrol -pwireshark-doc -ldebian/changelog -Tdebian/wireshark-doc.substvars -Pdebian/wiresh
	dpkg-gencontrol -plibwireshark-data -ldebian/changelog -Tdebian/libwireshark-data.substvars -Pdebia
	dpkg-gencontrol -pwireshark-common -ldebian/changelog -Tdebian/wireshark-common.substvars -Pdebian/
	dpkg-gencontrol -pwireshark-qt -ldebian/changelog -Tdebian/wireshark-qt.substvars -Pdebian/.debhelp
	dpkg-gencontrol -ptshark -ldebian/changelog -Tdebian/tshark.substvars -Pdebian/.debhelper/tshark/db
	dpkg-gencontrol -plibwsutil11 -ldebian/changelog -Tdebian/libwsutil11.substvars -Pdebian/.debhelper
	dpkg-gencontrol -plibwiretap10 -ldebian/changelog -Tdebian/libwiretap10.substvars -Pdebian/.debhelp
	dpkg-gencontrol -plibwireshark-dev -ldebian/changelog -Tdebian/libwireshark-dev.substvars -Pdebian/
dpkg-gencontrol: error: install new files list file: No such file or directory
dpkg-gencontrol: error: install new files list file: No such file or directory
dh_gencontrol: error: dpkg-gencontrol -pwireshark-common -ldebian/changelog -Tdebian/wireshark-commo
dh_gencontrol: error: dpkg-gencontrol -ptshark -ldebian/changelog -Tdebian/tshark.substvars -Pdebian
	dpkg-gencontrol -pwireshark-qt -ldebian/changelog -Tdebian/wireshark-qt.substvars -Pdebian/wireshar
	dpkg-gencontrol -plibwsutil11 -ldebian/changelog -Tdebian/libwsutil11.substvars -Pdebian/libwsutil1
	dpkg-gencontrol -plibwireshark13 -ldebian/changelog -Tdebian/libwireshark13.substvars -Pdebian/.deb
	dpkg-gencontrol -plibwiretap10 -ldebian/changelog -Tdebian/libwiretap10.substvars -Pdebian/libwiret
	dpkg-gencontrol -pwireshark-gtk -ldebian/changelog -Tdebian/wireshark-gtk.substvars -Pdebian/wiresh
dpkg-gencontrol: error: install new files list file: No such file or directory
	dpkg-gencontrol -plibwireshark13 -ldebian/changelog -Tdebian/libwireshark13.substvars -Pdebian/libw
dh_gencontrol: error: dpkg-gencontrol -plibwireshark-dev -ldebian/changelog -Tdebian/libwireshark-de
	dpkg-gencontrol -plibwsutil-dev -ldebian/changelog -Tdebian/libwsutil-dev.substvars -Pdebian/libwsu
	dpkg-gencontrol -plibwiretap-dev -ldebian/changelog -Tdebian/libwiretap-dev.substvars -Pdebian/libw
dh_gencontrol: error: Aborting due to earlier error


*** Default rules + Debug/verbose- -O--parallel:
   dh_gencontrol -O--buildsystem=cmake
	dpkg-gencontrol -pwireshark-doc -ldebian/changelog -Tdebian/wireshark-doc.substvars -Pdebian/wiresh
	dpkg-gencontrol -plibwireshark-data -ldebian/changelog -Tdebian/libwireshark-data.substvars -Pdebia
	dpkg-gencontrol -pwireshark-common -ldebian/changelog -Tdebian/wireshark-common.substvars -Pdebian/
	dpkg-gencontrol -pwireshark-qt -ldebian/changelog -Tdebian/wireshark-qt.substvars -Pdebian/.debhelp
	dpkg-gencontrol -ptshark -ldebian/changelog -Tdebian/tshark.substvars -Pdebian/.debhelper/tshark/db
	dpkg-gencontrol -plibwsutil11 -ldebian/changelog -Tdebian/libwsutil11.substvars -Pdebian/.debhelper
	dpkg-gencontrol -plibwiretap10 -ldebian/changelog -Tdebian/libwiretap10.substvars -Pdebian/.debhelp
	dpkg-gencontrol -plibwireshark-dev -ldebian/changelog -Tdebian/libwireshark-dev.substvars -Pdebian/
dpkg-gencontrol: error: install new files list file: No such file or directory
dh_gencontrol: error: dpkg-gencontrol -ptshark -ldebian/changelog -Tdebian/tshark.substvars -Pdebian
dpkg-gencontrol: error: install new files list file: No such file or directory
	dpkg-gencontrol -plibwsutil11 -ldebian/changelog -Tdebian/libwsutil11.substvars -Pdebian/libwsutil1
dh_gencontrol: error: dpkg-gencontrol -pwireshark-common -ldebian/changelog -Tdebian/wireshark-commo
	dpkg-gencontrol -plibwireshark13 -ldebian/changelog -Tdebian/libwireshark13.substvars -Pdebian/.deb
	dpkg-gencontrol -plibwiretap10 -ldebian/changelog -Tdebian/libwiretap10.substvars -Pdebian/libwiret
	dpkg-gencontrol -pwireshark-qt -ldebian/changelog -Tdebian/wireshark-qt.substvars -Pdebian/wireshar
	dpkg-gencontrol -plibwiretap-dev -ldebian/changelog -Tdebian/libwiretap-dev.substvars -Pdebian/libw
	dpkg-gencontrol -pwireshark-gtk -ldebian/changelog -Tdebian/wireshark-gtk.substvars -Pdebian/wiresh
	dpkg-gencontrol -plibwsutil-dev -ldebian/changelog -Tdebian/libwsutil-dev.substvars -Pdebian/libwsu
	dpkg-gencontrol -plibwireshark13 -ldebian/changelog -Tdebian/libwireshark13.substvars -Pdebian/libw
dpkg-gencontrol: error: install new files list file: No such file or directory
dh_gencontrol: error: dpkg-gencontrol -plibwsutil-dev -ldebian/changelog -Tdebian/libwsutil-dev.subs
dh_gencontrol: error: Aborting due to earlier error


*** Default rules + Debug/verbose- -O--parallel + override for -no-parallel:
   debian/rules override_dh_gencontrol
dh_gencontrol -O--buildsystem=cmake -O--no-parallel
	dpkg-gencontrol -pwireshark-doc -ldebian/changelog -Tdebian/wireshark-doc.substvars -Pdebian/wiresh
	dpkg-gencontrol -plibwireshark-data -ldebian/changelog -Tdebian/libwireshark-data.substvars -Pdebia
	dpkg-gencontrol -pwireshark-common -ldebian/changelog -Tdebian/wireshark-common.substvars -Pdebian/
	dpkg-gencontrol -pwireshark-qt -ldebian/changelog -Tdebian/wireshark-qt.substvars -Pdebian/.debhelp
	dpkg-gencontrol -ptshark -ldebian/changelog -Tdebian/tshark.substvars -Pdebian/.debhelper/tshark/db
	dpkg-gencontrol -plibwsutil11 -ldebian/changelog -Tdebian/libwsutil11.substvars -Pdebian/.debhelper
	dpkg-gencontrol -plibwiretap10 -ldebian/changelog -Tdebian/libwiretap10.substvars -Pdebian/.debhelp
dpkg-gencontrol: error: install new files list file: No such file or directory
dh_gencontrol: error: dpkg-gencontrol -plibwireshark-data -ldebian/changelog -Tdebian/libwireshark-d
dpkg-gencontrol: error: install new files list file: No such file or directory
	dpkg-gencontrol -plibwsutil11 -ldebian/changelog -Tdebian/libwsutil11.substvars -Pdebian/libwsutil1
dh_gencontrol: error: dpkg-gencontrol -pwireshark-qt -ldebian/changelog -Tdebian/wireshark-qt.substv
	dpkg-gencontrol -pwireshark-common -ldebian/changelog -Tdebian/wireshark-common.substvars -Pdebian/
	dpkg-gencontrol -ptshark -ldebian/changelog -Tdebian/tshark.substvars -Pdebian/tshark -UMulti-Arch
	dpkg-gencontrol -plibwireshark13 -ldebian/changelog -Tdebian/libwireshark13.substvars -Pdebian/.deb
	dpkg-gencontrol -plibwiretap10 -ldebian/changelog -Tdebian/libwiretap10.substvars -Pdebian/libwiret
	dpkg-gencontrol -pwireshark-dev -ldebian/changelog -Tdebian/wireshark-dev.substvars -Pdebian/wiresh
	dpkg-gencontrol -pwireshark -ldebian/changelog -Tdebian/wireshark.substvars -Pdebian/wireshark -UMu
	dpkg-gencontrol -plibwireshark13 -ldebian/changelog -Tdebian/libwireshark13.substvars -Pdebian/libw
	dpkg-gencontrol -plibwsutil-dev -ldebian/changelog -Tdebian/libwsutil-dev.substvars -Pdebian/libwsu
	dpkg-gencontrol -plibwiretap-dev -ldebian/changelog -Tdebian/libwiretap-dev.substvars -Pdebian/libw
dpkg-gencontrol: error: install new files list file: No such file or directory
dh_gencontrol: error: dpkg-gencontrol -plibwireshark13 -ldebian/changelog -Tdebian/libwireshark13.su
dpkg-gencontrol: error: badly formed line in files list file, line 13
dpkg-gencontrol: error: badly formed line in files list file, line 13
dh_gencontrol: error: dpkg-gencontrol -plibwiretap-dev -ldebian/changelog -Tdebian/libwiretap-dev.su
dh_gencontrol: error: dpkg-gencontrol -pwireshark-dev -ldebian/changelog -Tdebian/wireshark-dev.subs
dh_gencontrol: error: Aborting due to earlier error
make[1]: *** [debian/rules:32: override_dh_gencontrol] Error 25