Hi,

braindump after further analysing this issue:

Axel Beckert wrote:
> override_dh_installdocs-indep:
>       dh_installdocs -pzsh-doc --link-doc=zsh-common 
> --doc-main-package=zsh-common
>       dh_installdocs -pzsh-common
> 
> But the documented deduplication only happens within a single
> dh_installdocs call and is not spread over multiple calls.
> 
> So IMHO the value of %used_doc_ids needs to be cached somewhere under
> debian/.debhelper/ or similar and if that cache file exists, it needs to
> be read upon every dh_installdocs invocation.

This is uglier than I initially thought:

In the case above the doc-id is spread over two arch-indep packages,
so the all affected dh_installdocs calls are always either executed or
not, depending if only arch:all or only arch:any packages are built.

But if one dh_installdocs call is in override_dh_installdocs-arch and
one is in override_dh_installdocs-indep, the resulting package contents
differs depending if dpkg-buildpackage is building both, arch:all and
arch:any in one go, or separately.

This implies that you can scratch my initial idea of caching that
hash value.

Current idea is to _always_ use unique file names for
/usr/share/doc-base/, i.e. always use <package-name>.<doc-id> to be
unique. This also avoids the need for caching and makes things easier.

Then again, it changes the behaviour for other cases, too. Not sure
how appreciated this is at this stage of the freeze.

Any comments on this are appreciated.

                Regards, Axel
-- 
 ,''`.  |  Axel Beckert <a...@debian.org>, https://people.debian.org/~abe/
: :' :  |  Debian Developer, ftp.ch.debian.org Admin
`. `'   |  4096R: 2517 B724 C5F6 CA99 5329  6E61 2FF9 CD59 6126 16B5
  `-    |  1024D: F067 EA27 26B9 C3FC 1486  202E C09E 1D89 9593 0EDE

Reply via email to