From: Filipe Brandenburger Date: Wed, 27 May 2015 09:38:19 +0000 (-0700) Subject: man: generate configured paths in manpages X-Git-Tag: v226.4~1^2~345 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=5f56749cb41c18efcc4ec2a8cd14f5277a8fab20 man: generate configured paths in manpages In particular, use /lib/systemd instead of /usr/lib/systemd in distributions like Debian which still have not adopted a /usr merge setup. Use XML entities from man/custom-entities.ent to replace configured paths while doing XSLT processing of the original XML files. There was precedent of some files (such as systemd.generator.xml) which were already using this approach. This addresses most of the (manual) fixes from this patch: http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/patches/Fix-paths-in-man-pages.patch?h=experimental-220 The idea of using generic XML entities was presented here: http://lists.freedesktop.org/archives/systemd-devel/2015-May/032240.html This patch solves almost all the issues, with the exception of: - Path to /bin/mount and /bin/umount. - Generic statements about preference of /lib over /etc. These will be handled separately by follow up patches. Tested: - With default configure settings, ran "make install" to two separate directories and compared the output to confirm they matched exactly. - Used a set of configure flags including $CONFFLAGS from Debian: http://anonscm.debian.org/cgit/pkg-systemd/systemd.git/tree/debian/rules Installed the tree and confirmed the paths use /lib/systemd instead of /usr/lib/systemd and that no other unexpected differences exist. - Confirmed that `make distcheck` still passes. --- diff --git a/man/libelogind-pkgconfig.xml b/man/libelogind-pkgconfig.xml index c940b15b3..bda91ce50 100644 --- a/man/libelogind-pkgconfig.xml +++ b/man/libelogind-pkgconfig.xml @@ -1,6 +1,9 @@ + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ + +%entities; +]> Notes diff --git a/man/loginctl.xml b/man/loginctl.xml index 4e09e7a1c..9fecb7a33 100644 --- a/man/loginctl.xml +++ b/man/loginctl.xml @@ -1,6 +1,9 @@ + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> - + - logind.service + systemd-logind.service systemd @@ -38,25 +41,25 @@ - logind.service + systemd-logind.service 8 - logind.service - logind + systemd-logind.service + systemd-logind Login manager - logind.service - /usr/lib/systemd/logind + systemd-logind.service + &rootlibexecdir;/systemd-logind Description - logind is a system service that + systemd-logind is a system service that manages user logins. It is responsible for: @@ -100,7 +103,7 @@ See the logind D-Bus API Documentation for information about the - APIs logind provides. + APIs systemd-logind provides. For more information on the inhibition logic see the Inhibitor diff --git a/man/pam_elogind.xml b/man/pam_elogind.xml index 7c3690aab..d2f183b76 100644 --- a/man/pam_elogind.xml +++ b/man/pam_elogind.xml @@ -1,6 +1,9 @@ + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]> + "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ + +%entities; +]>