summaryrefslogtreecommitdiffstats
path: root/debian/signing_templates/rules.real
diff options
context:
space:
mode:
Diffstat (limited to 'debian/signing_templates/rules.real')
-rw-r--r--debian/signing_templates/rules.real11
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/signing_templates/rules.real b/debian/signing_templates/rules.real
index cffed4882..1b6ed6f08 100644
--- a/debian/signing_templates/rules.real
+++ b/debian/signing_templates/rules.real
@@ -17,7 +17,16 @@ endef
define dh_binary_post
dh_install $(DH_INSTALL_ARGS)
- dh_installdocs $(if $(INSTALLDOCS_LINK_DOC),--link-doc=$(INSTALLDOCS_LINK_DOC))
+ # Workaround #1068189. By Debian policy and aligned debhelper behaviour /usr/share/doc/package
+ # is permitted to be a symbolic link to another directory in /usr/share/doc only if the two
+ # packages come from the same source package. The package build will fail with the new debhelper
+ # version since debhelper/13.15. As the linux-signed-* packages are quite special in the eco-
+ # system, make the workaround to fallback to the old behaviour until it is agreed on how to
+ # resolve the situation policy conformant.
+ # https://www.debian.org/doc/debian-policy/ch-docs.html#copyright-information
+ $(if $(INSTALLDOCS_LINK_DOC),
+ mkdir -p debian/$(PACKAGE_NAME)/usr/share/doc && ln -sf $(INSTALLDOCS_LINK_DOC) debian/$(PACKAGE_NAME)/usr/share/doc/$(PACKAGE_NAME),
+ dh_installdocs)
dh_installchangelogs
dh_installexamples
dh_installman