summaryrefslogtreecommitdiff
path: root/debhelper.pod
diff options
context:
space:
mode:
authorNiels Thykier <niels@thykier.net>2018-06-24 09:16:14 +0000
committerNiels Thykier <niels@thykier.net>2018-06-24 09:16:14 +0000
commit0f6c71092482b73f235344c4184865f6c2aa79a0 (patch)
treee96861aea1d4a0c72b2b8179c1418820837e7ff5 /debhelper.pod
parent6b8c47d9507381a9813f18aeb9a3ce7b6c07f05f (diff)
downloaddebhelper-0f6c71092482b73f235344c4184865f6c2aa79a0.tar.gz
debhelper.pod: Rewrite main-doc-package change
Signed-off-by: Niels Thykier <niels@thykier.net>
Diffstat (limited to 'debhelper.pod')
-rw-r--r--debhelper.pod31
1 files changed, 23 insertions, 8 deletions
diff --git a/debhelper.pod b/debhelper.pod
index dc6dfad4..b16e6aa7 100644
--- a/debhelper.pod
+++ b/debhelper.pod
@@ -727,16 +727,31 @@ returns a non-zero exit from analysing a given file.
=item -
-The B<dh_installdocs> and B<dh_installexamples> tools will now attempt
-to guess the "main package" for a given documentation package
-(e.g. I<pkg-doc> will have I<pkg> as main package if the latter
-exists). If a main package is found, I<most> of the documentation
-will be installed into F<< /usr/share/doc/I<main-pkg> >> by default as
-recommended by Debian policy §12.3 since version 3.9.7. Notable
-exceptions include the copyright file and changelog files.
+The B<dh_installdocs> and B<dh_installexamples> tools may now install
+I<most> of the documentation in a different path to comply with the
+recommendation from Debian policy §12.3 (since version 3.9.7).
+
+Note that if a given source package only contains a single binary
+package in F<debian/control> or none of the packages are I<-doc>
+packages, then this change is not relevant for that source package and
+you can skip to the next change.
+
+By default, these tools will now attempt to determine a "main package
+for the documentation" (called a I<doc-main-package> from here on) for
+every I<-doc> package. If they find such a I<doc-main-package>, they
+will now install the documentation into the path F<<
+/usr/share/doc/I<doc-main-package> >> in the given doc package.
+I.e. the path can change but the documentation is still shipped in the
+I<-doc> package.
The B<--doc-main-package> option can be used when the auto-detection
-is insufficient.
+is insufficient or to reset the path to its previous value if there is
+a reason to diverge from Debian policy recommendation.
+
+Some documentation will not be affected by this change. These
+exceptions include the copyright file, changelog files, README.Debian,
+etc. These files will still be installed in the path F<<
+/usr/share/doc/I<package> >>.
=item -