Re: Removing parts of upstream tar-ball, parsers, autobuilding
* Thibaut Paumard <email@example.com> [071213 14:46]:
> >Now, the best thing to do would be to copy the upstream tar-ball as-is
> >to orig.tar.gz and have a patch that removes these files (this will
> >result in a big diff).
> I tend to move those files to a safe place in the configure rule and
> put them back in place in the clean rule. It's often awkward, but
> that ensures that what is in the diff is meaningful.
If those file can be easily deleted (i.e. the configure will not fail
with them not around), then there is not reason to put them back or
delete them from the .tar.gz, just delete them in the clean target.
dpkg-source has special code to ignore deleted files so they will not
bloat the .diff.gz. (and deleting them by the diff would be wasted space
anyway, a single rm line in debian/rules clean target is much smaller
than having a copy of the file in the diff).
Bernhard R. Link