From 0055b9616e00c6af4fc6116baae99bd80616cfab Mon Sep 17 00:00:00 2001 From: Michal Nowak Date: Mon, 9 Sep 2019 14:21:19 +0200 Subject: [PATCH] Find docbook-xsl and dblatex templates on Red Hat/Fedora `/usr/share/sgml/docbook/xsl-stylesheets` and `/usr/share/dblatex` are places where docbook-style-xsl and, respectively, dblatex packages on Red Hat systems put their XSL templates. Unless we hint this place it has to be added to `./configure` manually (`--with-docbook-xsl=...`): https://src.fedoraproject.org/rpms/bind/blob/master/f/bind.spec#_691. On Fedora 30: Before ``` ./configure ... checking for Docbook-XSL path... auto checking for html/docbook.xsl... "not found" checking for xhtml/docbook.xsl... "not found" checking for manpages/docbook.xsl... "not found" checking for html/chunk.xsl... "not found" checking for xhtml/chunk.xsl... "not found" checking for html/chunktoc.xsl... "not found" checking for xhtml/chunktoc.xsl... "not found" checking for html/maketoc.xsl... "not found" checking for xhtml/maketoc.xsl... "not found" checking for xsl/docbook.xsl... "not found" checking for xsl/latex_book_fast.xsl... "not found" ``` After: ``` ./configure ... checking for Docbook-XSL path... auto checking for html/docbook.xsl... /usr/share/sgml/docbook/xsl-stylesheets/html/docbook.xsl checking for xhtml/docbook.xsl... /usr/share/sgml/docbook/xsl-stylesheets/xhtml/docbook.xsl checking for manpages/docbook.xsl... /usr/share/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl checking for html/chunk.xsl... /usr/share/sgml/docbook/xsl-stylesheets/html/chunk.xsl checking for xhtml/chunk.xsl... /usr/share/sgml/docbook/xsl-stylesheets/xhtml/chunk.xsl checking for html/chunktoc.xsl... /usr/share/sgml/docbook/xsl-stylesheets/html/chunktoc.xsl checking for xhtml/chunktoc.xsl... /usr/share/sgml/docbook/xsl-stylesheets/xhtml/chunktoc.xsl checking for html/maketoc.xsl... /usr/share/sgml/docbook/xsl-stylesheets/html/maketoc.xsl checking for xhtml/maketoc.xsl... /usr/share/sgml/docbook/xsl-stylesheets/xhtml/maketoc.xsl checking for xsl/docbook.xsl... /usr/share/dblatex/xsl/docbook.xsl checking for xsl/latex_book_fast.xsl... /usr/share/dblatex/xsl/latex_book_fast.xsl ``` --- configure | 2 +- configure.ac | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/configure b/configure index 53251a64b7..59a6a6f8bb 100755 --- a/configure +++ b/configure @@ -20678,7 +20678,7 @@ case "$docbook_path" in auto) { $as_echo "$as_me:${as_lineno-$LINENO}: result: auto" >&5 $as_echo "auto" >&6; } - docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl" + docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /usr/share/sgml/docbook/xsl-stylesheets /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl" ;; *) docbook_xsl_trees="$withval" diff --git a/configure.ac b/configure.ac index bfb4bc5094..e43ae0d374 100644 --- a/configure.ac +++ b/configure.ac @@ -2070,7 +2070,7 @@ AC_ARG_WITH(docbook-xsl, case "$docbook_path" in auto) AC_MSG_RESULT(auto) - docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl" + docbook_xsl_trees="/usr/pkg/share/xsl/docbook /usr/local/share/xsl/docbook-ns /usr/local/share/xsl/docbook /usr/share/xsl/docbook /usr/share/sgml/docbook/xsl-stylesheets /opt/local/share/xsl/docbook-xsl /opt/local/share/xsl/docbook-xsl-nons /usr/share/xml/docbook/stylesheet/docbook-xsl" ;; *) docbook_xsl_trees="$withval"