On Tue, 2023-10-24 at 17:57 -0300, Eduardo M KALINOWSKI wrote:

> Isn't it a bit extreme to repack the source because of a file that is
> automatically generated, but is still distributable?

Indeed, it isn't necessary to repack source to remove generated files.

https://wiki.debian.org/AutoGeneratedFiles

The best option is to send upstream a patch removing the file from
their VCS and tarballs so that it is always built from source.

> I could instead set this file aside before building, force it to be 
> regenerated, and restore it in the clean target. That's similar to 
> what's done for the docs: a version of the generated html files is 
> included in the tarball but it's not used, instead they are regenerated 
> during build.

If upstream has refused to remove it from their VCS or tarballs,
I would suggest just removing it in the debian/rules clean target,
saving and restoring the file should not be necessary.

-- 
bye,
pabs

https://wiki.debian.org/PaulWise

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to