On 2012-06-13 17:23 +0200, Bastian Blank wrote:

> tags 676777 patch
> thanks
>
> Attached is a patch to fix the dependency.
> [...]
> diff -Nru debhelper-9.20120608/dh_installdocs 
> debhelper-9.20120608+nmu1/dh_installdocs
> --- debhelper-9.20120608/dh_installdocs       2011-09-12 16:01:19.000000000 
> +0000
> +++ debhelper-9.20120608+nmu1/dh_installdocs  2012-06-13 15:09:02.000000000 
> +0000
> @@ -170,10 +170,13 @@
>               if (! -d "$tmp/usr/share/doc/$package" &&
>                   ! -l "$tmp/usr/share/doc/$package") {
>                       doit("ln", "-sf", $dh{LINK_DOC}, 
> "$tmp/usr/share/doc/$package");
> +                     # Call isnative because it sets $dh{VERSION}
> +                     # as a side effect.
> +                     isnative($dh{LINK_DOC});
>                       # Policy says that if you make your documentation
>                       # directory a symlink, then you have to depend on
>                       # the target.
> -                     addsubstvar($package, "misc:Depends", $dh{LINK_DOC});
> +                     addsubstvar($package, "misc:Depends", "$dh{LINK_DOC} (= 
> $dh{VERSION})");
>               }
>       }
>       else {

This will produce uninstallable packages in some cases, namely when
source and binary packages have different versions.

Cheers,
       Sven



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to