Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to cleanup sources to rebuild package with dpkg-buildpackage?

I'm playing with dpkg, but I got rather strange problem: Package can not be build second time after 1st package was successfully build.

dpkg-buildpackage -sa
....
dpkg-source: warning: newly created empty file 'build/lib.linux-x86_64-2.7/neutron/api/__init__.py' will not be represented in diff
(repeats 100500 times for different files).

How can I to rebuild deb second time?

It looks like I miss some cleanup command.

like image 732
George Shuklin Avatar asked May 26 '14 13:05

George Shuklin


1 Answers

the debian/rules file is actually a Makefile, and it MUST (according to the Debian policy) have a clean target to cleanup the build.

if this target is not run automatically, you can call it explictely with something like:

 dpkg-buildpackage -rfakeroot -Tclean
like image 151
umläute Avatar answered Sep 23 '22 00:09

umläute