summaryrefslogtreecommitdiffstats
path: root/debian/signing_templates/rules.real
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 18:47:59 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-18 18:47:59 +0000
commit8c87665b42c616a0d83837405ed44e90d1cacaee (patch)
tree7aa741e9343d0b73b2f72ea1b78ef8785653288b /debian/signing_templates/rules.real
parentMerging upstream version 6.7.12. (diff)
downloadlinux-8c87665b42c616a0d83837405ed44e90d1cacaee.tar.xz
linux-8c87665b42c616a0d83837405ed44e90d1cacaee.zip
Adding debian version 6.7.12-1.debian/6.7.12-1
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
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 cffed48829..1b6ed6f084 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