[Pkg-zsh-devel] Bug#768937: zsh: [patch] not binNMU-safe due to --link-doc between arch-dep and arch-indep

Simon McVittie smcv at debian.org
Mon Nov 10 10:22:10 UTC 2014


Package: zsh
Version: 5.0.7-3.1+b1
Severity: serious
Tags: patch
Justification: uninstallable

As noted on #747141, it is not safe for dh_installdocs --link-doc to
link together the documentation directories of an architecture-dependent
package and an architecture-independent package, because the resulting
lockstep dependency is unsatisfiable after the architecture-dependent
package receives a binNMU.

Here's a patch to fix that, using the approach that Axel Beckert
described on that bug:

> > - change the affected packages in question to not use --link-doc.
> That's likely the way I'd go with zsh then, with the addition of some
> additional symlinks from /usr/share/doc/zsh/something to
> /usr/share/doc/zsh-common/something for most files not being
> changelogs. *sigh*

I changed zsh-dbg from "docs linked to zsh-common" to "docs linked to zsh",
and installed the bare minimum of Policy-required docs in zsh.
zsh-dev is now self-contained (I don't think it's worth optimizing
its size).

I put the dpkg-maintscript glue to migrate /usr/share/doc/zsh from a
directory to a symlink in both zsh and zsh-common, because both packages
ship files in that directory now, and either package might be unpacked first.

Regards,
    S
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Be-binNMU-safe-do-not-use-dh_installdocs-link-doc-zs.patch
Type: text/x-diff
Size: 4311 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-zsh-devel/attachments/20141110/eb5b1bc0/attachment-0001.patch>


More information about the Pkg-zsh-devel mailing list