Re: Bug#592839: dpkg-source option to remove files on unpack: debian/source/remove-files
On Fri, Aug 13, 2010 at 01:01:34PM -0400, Michael Gilbert wrote:
> On Fri, 13 Aug 2010 09:58:07 -0700, Russ Allbery wrote:
> > Raphael Hertzog <email@example.com> writes:
> > > As suggested by Ian on -devel (see attachment), it would be nice to have
> > > a way to remove files during unpack of a source package to hide non-free
> > > files from our users without stripping them from the original tarball.
> > > I also prefer this approach over repacking upstream files so let's
> > > implement this feature.
> > I'm pretty sure ftp-master isn't going to allow source packages with
> > non-free content in the main archive regardless of whether that content is
> > hidden on unpack (I certainly wouldn't if I were them), so implementing
> > this is kind of pointless for Debian.
> What if the list of binary components was part of the watch file
> instead; so that new upstream sources could be automatically stripped of
> those non-free bits by uscan right after download.
Git-buildpackage (and I'm sure other tools too) have filter expressions
that can handle this when importing new upstream versions (e.g. via
--uscan). The configuration can be shipped in debian/gbp.conf so in case
of team maintenance all have the same filter.