Hi. I just hit this with the geda-gaf source package, and it would be
great if this was fixed, rather than remaining the hidden pitfall that
it is now.

The debian binNMU wiki page (https://wiki.debian.org/binNMU) suggests
using ${source:Version} instead of ${binary:Version} to avoid this
issue, so how do we feel about the attached patch to debhelper?

diff --git a/dh_installdocs b/dh_installdocs
index 9c82b5b4..d063fcbb 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -200,7 +200,7 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 			# 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} (= \${binary:Version})");
+			addsubstvar($package, 'misc:Depends', "$dh{LINK_DOC} (= \${source:Version})");
 		}
 	}
 	else {

Reply via email to