To transition my program, kvpm, from the old debug package build method I went to the following web site:
https://wiki.debian.org/AutomaticDebugPackages
Then I followed the instructions, after changing "freeradius" to "kvpm" and using the correct version number of course.
1. Change your existing dh_strip -a --dbg-package=freeradius-dbg to dh_strip --dbgsym-migration='freeradius-dbg (<< 3.0.11-1~)'
2. Delete the freeradius-dbg package from debian/control
3. Bump the Build-Depends to debhelper (>= 9.20160114) or newer.
Since I didn't have an explicit line for dh_strip I added one.
Old debian/rules:
#!/usr/bin/make -f
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo
%:
dh $@ --parallel --dbg-package=kvpm-dbg --with kde
override_dh_auto_test:
New debian/rules:
#!/usr/bin/make -f
override_dh_auto_configure:
dh_auto_configure -- -DCMAKE_BUILD_TYPE=RelWithDebInfo
override_dh_strip:
dh_strip --dbgsym-migration='kvpm-dbg (<< 0.9.10)'
%:
dh $@ --parallel --with kde
override_dh_auto_test:
That part seems to partially work. If I run "debuild" I get the dbgsym package AND the dbg package. However when I delete the section for "kvpm-dbg" in debian/control the whole build fails like this:
-- Installing: /home/benscott/debian/kvpm-0.9.10/debian/kvpm/usr/share/kvpm /icons/hicolor/16x16/status/ lightbulb_off.png
-- Installing: /home/benscott/debian/kvpm-0.9.10/debian/kvpm/usr/share/icon s/hicolor/16x16/apps/kvpm.png
-- Installing: /home/benscott/debian/kvpm-0.9.10/debian/kvpm/usr/share/icon s/hicolor/32x32/apps/kvpm.png
-- Installing: /home/benscott/debian/kvpm-0.9.10/debian/kvpm/usr/share/icon s/hicolor/64x64/apps/kvpm.png
make[1]: Leaving directory '/home/benscott/debian/kvpm-0.9.10/obj-x86_64-linux-gnu'
dh_install -O--parallel
dh_install: Cannot find (any matches for) "usr/sbin/kvpm" (tried in "." and "debian/tmp")
dh_install: kvpm missing files: usr/sbin/kvpm
dh_install: Cannot find (any matches for) "usr/share/doc/HTML/en/kvpm/*" (tried in "." and "debian/tmp")
dh_install: kvpm missing files: usr/share/doc/HTML/en/kvpm/*
dh_install: Cannot find (any matches for) "usr/share/icons/hicolor/*/apps/kvpm.png" (tried in "." and "debian/tmp")
dh_install: kvpm missing files: usr/share/icons/hicolor/*/apps/kvpm.png
dh_install: Cannot find (any matches for) "usr/share/man/man1/kvpm.1" (tried in "." and "debian/tmp")
dh_install: kvpm missing files: usr/share/man/man1/kvpm.1
What am I doing wrong?