Re: Bug#592839: dpkg-source option to remove files on unpack: debian/source/remove-files
On 13/08/10 17:58, 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.
Another use-case might be to remove "convenience copies" of system
libraries. Might be useful (e.g. for security reasons) to be able to
guarantee that this code isn't being accidentally used by a build (in a
way that can be easily checked by a script).