Closed rofl0r closed 10 years ago
as a temporary workaround, --disable-manpages prevents this stuff from getting built.
seems it's related to or the same as #46
ping
Sorry I haven't had time to work on this. I'm not sure how to proceed.
problem 1) http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl is referenced but nowhere to be found, so the build process should use a local copy. maybe one can be fetched from web.archive.org. problem 2) the manpage generation requires xsltproc and other stuff. i don't understand why this has to run on user's box. the manpages could be generated on eudev maintainers machine and distributed inside the release tarball, so the user needs less bloat installed on his pc.
The link downloads for me. It only seems to no work in musl so I'm not sure what's happening. We could consider just doing that locally.
On gentoo, that docbook.xsl is available locally when (docbook? whatever package it is) is installed; I expect this is standard as part of that package and not a gentoo'ism. I do recall there is an issue with systemd's udev too that docbook is needed even though manpages are supposed to have been pre-generated. This will probably need some looking into.
Apologies -- on Gentoo, we depend on the package "app-text/docbook-xsl-stylesheets" to provide this file.
so if we include docbook-xsl-stylesheets in a gentoo musl stage3, this will work? I guess the question is, should we start bundling a local copy of docbook.xsl?
how big is it ? if it's not seriously bloating the release tarball it could be added - but then the better solution is still to provide the generated manpages together with the release tarball so the user needs neither xsltproc nor docbook. alternatively the generated manpages could be distributed as a separate tarball.
btw, i suspect the documentation wasn't touched in ages anyway...
I would also like to see pregenerated man pages in the eudev tarball. LFS might replace udev extracted from systemd with eudev in that case, see: http://wiki.linuxfromscratch.org/lfs/ticket/3384
Indeed, to lower the build-time dependencies it's best to ship the generated man-pages with the release tarball. Please :)
"how big is it ?"
it's big enough -- you most likely need the full set of xml files, not just one; and that's ~100ish files iirc.
Documentation is changed with every version tho -- not much, but enough to match the differences in the tools from one version to another.
I don't know what the repercussions are of manpage generation within a tarball (ie, if the version of man on a system matters, etc. etc.), but i'll look into it along with issue 75.
OK, so distributing manpages is trivial enough; confirmed it works with the following:
--- a/man/Makefile.am +++ b/man/Makefile.am @@ -16,7 +16,7 @@ MANPAGES = \ udevd.8 \ udevadm.8
-man_MANS = \ +dist_man_MANS = \ $(MANPAGES)
CLEANFILES = \
...but I haven't committed it because I haven't researched yet whether there are any implications with doing this.
This issue is obsolete because I'm going to start shipping pre-built man pages.
imo, it's bad style to depend on xml facilities to generate documentation. even worse when it depends on some external stylesheets - making it impossible to build without working network connection.