I'm putting together a new ebuild for libgcrypt, it uses docbook stuff to generate manuals. It includes a script that searches for the location of stylesheets. Here is an abridged list of the places it looks: stylesheet_dirs=' /usr/lib/dsssl/stylesheets/docbook /usr/share/dsssl/stylesheets/docbook /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh /usr/share/sgml/stylesheet/dsssl/docbook/nwalsh /usr/lib/sgml/stylesheets/nwalsh-modular /usr/share/sgml/stylesheets/nwalsh-modular ' docbook-dsssl-stylesheets-1.77-r1 has put the files it is search for in: /usr/share/sgml/docbook/dsssl-stylesheets-1.77 I really question the utility of installing these files to a path containing ${PV}, that seems to make them as unfindable as possible. Then, in my ebuild I have to detect what version of this stylesheet package is installed and then compute its ${PV}. Could these files be installed into a more predictable path, ideally one of the aforementioned ones? Reproducible: Always Steps to Reproduce:
I was actually under the impression that generating programs used /etc/sgml to find the DTDs. Let me look into it, I'll have a solution by the end of the week...
Do the .dsl files have to be placed in one of those dirs, or does it recurse?
Well, anyway, I committed a symlink to get this working, as all the info I could find led me to believe we were installing it correctly. Let me know if it recurses, because if it does I'm going to change the way the symlink works. It's masked ~ARCH.
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f3a064e1a7d2f6f526ebdff215a981387a7d652d commit f3a064e1a7d2f6f526ebdff215a981387a7d652d Author: Ilya Tumaykin <itumaykin@gmail.com> AuthorDate: 2018-07-04 19:36:20 +0000 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: 2018-07-26 08:35:09 +0000 app-text/docbook-dsssl-stylesheets: install missing files, cleanup Due to Gentoo-originated poorly written Makefile not all required files were installed, which caused tools looking for them to fail, e.g. Gentoo bug 606768. Also one file that belong to another package was installed: dtds/decls/docbook.dcl is a part of docbook-sgml-dtd. Replace custom Makefile with a series of doins commands. Also remove dirty, ugly symlink hack to workaround Gentoo bug 15026. Current stable libgcrypt doesn't use docbook-dssl-stylesheets for docs. Bug: https://bugs.gentoo.org/606768 Bug: https://bugs.gentoo.org/15026 Package-Manager: Portage-2.3.41, Repoman-2.3.9 .../docbook-dsssl-stylesheets-1.79-r3.ebuild | 65 ++++++++++++++++++++++ 1 file changed, 65 insertions(+)