]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Include all pre-generated man pages in "make dist"
authorMichał Kępień <michal@isc.org>
Mon, 29 Mar 2021 11:06:39 +0000 (13:06 +0200)
committerMichał Kępień <michal@isc.org>
Mon, 29 Mar 2021 11:06:39 +0000 (13:06 +0200)
Some man pages (e.g. dnstap-read.1, named-nzd2nzf.1) should only be
installed conditionally (when the relevant features are enabled in a
given BIND 9 build).  This is achieved using Automake conditionals.
However, while all source reStructuredText files are included in
tarballs produced by "make dist" (distribution tarballs) as they should
be, the list of pre-generated man pages included in distribution
tarballs incorrectly depends on the ./configure switches used for the
build for which "make dist" is run.  Meanwhile, distribution tarballs
should always contain all the files necessary to build any flavor of
BIND 9.

Here is an example scenario which fails to work as intended:

    autoreconf -i
    ./configure --disable-maintainer-mode
    make dist
    tar --extract --file bind-9.17.11.tar.xz
    cd bind-9.17.11
    ./configure --disable-maintainer-mode --enable-dnstap
    make

Fix by always including pre-generated versions of all conditionally
installed man pages in EXTRA_DIST.  While this may cause some of them to
appear in EXTRA_DIST more than once (depending on the ./configure
switches used for the build for which "make dist" is run), it seems to
not be a problem for Automake.

doc/man/Makefile.am

index 28ebb59079fd459b61ce31c88f828f7e26d64438..2e73e2c853ff7cadbb1611a313cba893f9bdfc41 100644 (file)
@@ -128,7 +128,13 @@ man_MANS +=                                \
 endif HAVE_PKCS11
 
 MANPAGES_IN =                          \
-       $(man_MANS:=in)
+       $(man_MANS:=in)                 \
+       dnstap-read.1in                 \
+       named-nzd2nzf.1in               \
+       pkcs11-destroy.1in              \
+       pkcs11-keygen.1in               \
+       pkcs11-list.1in                 \
+       pkcs11-tokens.1in
 
 EXTRA_DIST =                           \
        conf.py                         \