Comment 0 for bug 1658796

Revision history for this message
Ursula Junque (ursinha) wrote :

As of r931, make sourcepackage is broken. It fails showing a diff from the orig file, saying .bzr-builddeb isn't there.

Cause is make sdist is responsible for creating the source tarball, using "bzr export" to copy files to a temporary sdist folder. Issue is that command ignores the hidden files, leaving the checked in .bzr-builddeb directory behind. When the step to build the actual package runs, it finds the diff as that directory is missing and fails:

{{{
dpkg-source: info: local changes detected, the modified files are:
 trunk/.bzr-builddeb/default.conf
dpkg-source: error: aborting due to unexpected upstream changes, see /tmp/landscape-client_16.08+bzr931-0ubuntu0.diff.EGdtaU
dpkg-source: info: you can integrate the local changes with dpkg-source --commit
dpkg-buildpackage: error: dpkg-source -b trunk gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -d -us -uc -S failed
make: *** [sourcepackage] Error 29
}}}

To fix this, we need to add a line to Makefile so these are copied over, or delete the directory altogether before running make sourcepackage.