I'm building binary only package:
dpkg-buildpackage -b -us -uc
The build actually runs successfully, but I have deleted previous version of the package and now dpkg-genchanges complains:
dh_builddeb
dpkg-deb: building package `zzz' in `../zzz_01-4_amd64.deb'.
dpkg-genchanges -b >../zzz_01-4_amd64.changes
dpkg-genchanges: binary-only upload - not including any source code
dpkg-genchanges: error: cannot fstat file ../zzz_01-1_amd64.deb: No such file or directory
dpkg-buildpackage: error: dpkg-genchanges gave error exit status 2
Is there any way to skip this step? I really do not need it, as I'm building deb package for local use and previous versions are unnecessary.
What lines did you see in
debian/files
afterdpkg-buildpackage
? It should be something like:This file is created and updated by
dpkg-deb
anddpkg-genchanges
read it to get files to be listed in the.changes
file.dpkg-deb
just appends a new line todebian/files
if it already exists, so it's essential to make sure it gets removed in the beginning of binary build indebian/rules
.dh_clean
would be help for that.