[debhelper-devel] Bug#865869: debhelper: Don't run dh_installdocs if nodoc is specified in DEB_BUILD_OPTIONS

Niels Thykier niels at thykier.net
Wed Jun 28 14:29:00 UTC 2017


On Sun, 25 Jun 2017 13:31:40 +0100 Chris Lamb <lamby at debian.org> wrote:
> Package: debhelper
> Version: 10.2.5
> Severity: wishlist
> 
> Hi,
> 
> I just added the following to the python-django packaging's debian/rules
> file:
> 
>     ifneq (,$(filter nodoc,$(DEB_BUILD_OPTIONS)))
>     override_dh_installdocs:
>     endif
> 
> Wouldn't it make more sense for debhelper to do this by default? I see that
> debhelper does not really touch the build profiles at all, so this might be
> entirely deliberate.
> 
> 
> Regards,
> 
> -- 
>       ,''`.
>      : :'  :     Chris Lamb, Debian Project Leader
>      `. `'`      lamby at debian.org / chris-lamb.co.uk
>        `-
> 
> 


JFR (as requested per IRC), the suggested work around for now is not
policy compliant.  The policy mandates that copyright + changelog files
(among other) basic documentation is still installed under "nodoc".
  As dh_installdoc installs the copyright file, the above snippet
(without anything else) would omit the copyright file from the packages.

Thanks,
~Niels




More information about the debhelper-devel mailing list