fix: dpkg-source failure bug when building it again

Once building this package is a success or not, the next build process fails because of unwanted binary files in debian/tmp-home.

Here is the message.

$> debuild -us -uc
 dpkg-buildpackage -us -uc -ui
dpkg-buildpackage: info: source package nautilus
dpkg-buildpackage: info: source version 3.30.5-1
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Jeremy Bicha <jbicha@debian.org>
 dpkg-source --before-build .
dpkg-buildpackage: info: host architecture amd64
 debian/rules clean
dh clean --with gir,gnome
   dh_auto_clean
   dh_gnome_clean
   dh_clean
 dpkg-source -b .
dpkg-source: error: unwanted binary file: debian/tmp-home/run/dconf/user
dpkg-source: error: unwanted binary file: debian/tmp-home/.local/share/tracker/data/tracker-store.ontology.journal
dpkg-source: error: unwanted binary file: debian/tmp-home/.local/share/tracker/data/tracker-store.journal
dpkg-source: error: unwanted binary file: debian/tmp-home/.local/share/gvfs-metadata/root-f20b605a.log
dpkg-source: error: unwanted binary file: debian/tmp-home/.local/share/gvfs-metadata/root
dpkg-source: error: unwanted binary file: debian/tmp-home/.cache/tracker/ontologies.gvdb
dpkg-source: error: unwanted binary file: debian/tmp-home/.cache/tracker/meta.db-shm
dpkg-source: error: unwanted binary file: debian/tmp-home/.cache/tracker/meta.db
dpkg-source: error: unwanted binary file: debian/tmp-home/.cache/tracker/meta.db-wal
dpkg-source: error: detected 9 unwanted binary files (add them in debian/source/include-binaries to allow their inclusion).
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 255
debuild: fatal error at line 1182:
dpkg-buildpackage -us -uc -ui failed

For fixing this bug, I have changed debian/rules for removing debian/tmp-home when cleaning it.

Edited by Seunghun Han

Merge request reports

Loading