Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I want to build package for ppa. I use debuild -S -sa. But it ignore deletion of files from old source.Like: dpkg-source: warning: ignoring deletion of file sonata/rhapsodycovers.py

All you can see at paste.ubuntu.com

How i can fix it?

share|improve this question
    
That file is missing from the .orig.tar.gz archive. Create a new archive with the new contents of the package –  Alin Andrei Jun 23 '11 at 14:15
add comment

1 Answer 1

This is intentional behaviour: packaging is not supposed to modify the contents of the upstream distributed tarball except in a scripted manner.

If you must remove the file for licensing reasons, you will need to modify the orig.tar.gz directly, and then use this as the basis for your packaging. In this case, it is common to rename the upstream tarball from e.g. "program-1.2.3.tgz" to "program-1.2.3+ds.orig.tar.gz", with the "ds" indicating that the original source is modified for packaging.

If you are not required to remove the file, but prefer to have it removed such that the build completes successfully, it is recommended to remove it in the clean: rule in debian/rules. If using debhelper, this is most easily achieved using dh_clean by adding the relative path of the file to debian/clean. The dh_clean(1) manpage has more information about this tool.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.