Bug#990829: dh_missing: check doc installations (other dh_install*)

2021-07-09 Thread Niels Thykier
Control: tags -1 moreinfo

Drew Parsons:
> Package: debhelper
> Version: 13.3.4
> Severity: normal
> 
> dh_missing reports an error if files in debian/tmp have not been
> installed.  But it seems to only check installation by dh_install.
> 
> If doc files in debian/tmp are installed using dh_installdocs (e.g. by
> setting debian/package.docs), then dh_missing marks these doc files as
> "not-installed".
> 
> It would make sense for dh_missing to check files installed via the
> other debhelper install tools, not only dh_install (any of the
> dh_install* tools I guess).
> 
> [...]
> 

Hi,

dh_missing already does this but requires support from the other
dh-tools (see #972724 for details). The dh_installdocs tool _does_ its
part in registering the files it installs.

Given you are reporting this bug, I assume you got into a situation
where it does not work for you.  But the bug report does not not provide
context of your concrete situation, so I can only wonder what has gone
wrong. My best guess is that the package has the "wrong" file name in
the .docs file.
  A common example is to use "src/.../doc-file" rather than
"usr/share/.../doc-file", which can make dh_missing report an "false
issue" if doc-file ends up being compressed by dh_compress.

However, I hope you will follow up with additional details - including a
concrete debian directory (link to web browable git is fine) as well as
a build log.  Without this, the bug is not actionable for me.

Thanks,
~Niels



Bug#990829: dh_missing: check doc installations (other dh_install*)

2021-07-08 Thread Drew Parsons
Package: debhelper
Version: 13.3.4
Severity: normal

dh_missing reports an error if files in debian/tmp have not been
installed.  But it seems to only check installation by dh_install.

If doc files in debian/tmp are installed using dh_installdocs (e.g. by
setting debian/package.docs), then dh_missing marks these doc files as
"not-installed".

It would make sense for dh_missing to check files installed via the
other debhelper install tools, not only dh_install (any of the
dh_install* tools I guess).

-- System Information:
Debian Release: 11.0
  APT prefers testing-security
  APT policy: (500, 'testing-security'), (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 5.10.0-8-amd64 (SMP w/8 CPU threads)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_OOT_MODULE
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_AU:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages debhelper depends on:
ii  autotools-dev20180224.1+nmu1
ii  dh-autoreconf20
ii  dh-strip-nondeterminism  1.12.0-1
ii  dpkg 1.20.9
ii  dpkg-dev 1.20.9
ii  dwz  0.14-1
ii  file 1:5.39-3
ii  libdebhelper-perl13.3.4
ii  libdpkg-perl 1.20.9
ii  man-db   2.9.4-2
ii  perl 5.32.1-4
ii  po-debconf   1.0.21+nmu1

debhelper recommends no packages.

Versions of packages debhelper suggests:
ii  dh-make  2.202003

-- no debconf information