[Reproducible-builds] [debhelper] 02/33: dh_installdocs: When doc dirs are symlinked make the dependency versioned per policy. Closes: #676777

Jérémy Bobbio lunar at moszumanska.debian.org
Fri Aug 29 04:34:57 UTC 2014


This is an automated email from the git hooks/post-receive script.

lunar pushed a commit to branch pu/reproducible_builds_fixmtimes
in repository debhelper.

commit f7324fa4c4fd41f8727e74bc0d5ef40b624ce878
Author: Joey Hess <joey at kitenet.net>
Date:   Sat Jan 25 16:02:20 2014 -0400

    dh_installdocs: When doc dirs are symlinked make the dependency versioned per policy. Closes: #676777
---
 debian/changelog | 2 ++
 dh_installdocs   | 5 ++++-
 2 files changed, 6 insertions(+), 1 deletion(-)

diff --git a/debian/changelog b/debian/changelog
index ebf733c..ec61912 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,6 +2,8 @@ debhelper (9.20131228) UNRELEASED; urgency=medium
 
   * dh_compress: Avoid compressing .map files, which may be html
     usemaps. Closes: #704443
+  * dh_installdocs: When doc dirs are symlinked make the dependency
+    versioned per policy. Closes: #676777
 
  -- Joey Hess <joeyh at debian.org>  Sat, 25 Jan 2014 15:49:45 -0400
 
diff --git a/dh_installdocs b/dh_installdocs
index e835ff6..3eefcdf 100755
--- a/dh_installdocs
+++ b/dh_installdocs
@@ -175,10 +175,13 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 		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 {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/debhelper.git



More information about the Reproducible-builds mailing list