Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 15026 - docbook-dsssl-stylesheets installs files to bad location?
Summary: docbook-dsssl-stylesheets installs files to bad location?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: Matthew Turk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14938
  Show dependency tree
 
Reported: 2003-02-03 06:28 UTC by J Robert Ray
Modified: 2018-07-26 08:35 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description J Robert Ray 2003-02-03 06:28:36 UTC
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:
Comment 1 Matthew Turk (RETIRED) gentoo-dev 2003-02-05 03:41:08 UTC
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... 
Comment 2 Matthew Turk (RETIRED) gentoo-dev 2003-02-07 19:33:50 UTC
Do the .dsl files have to be placed in one of those dirs, or does it recurse? 
Comment 3 Matthew Turk (RETIRED) gentoo-dev 2003-02-07 22:10:37 UTC
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. 
Comment 4 Larry the Git Cow gentoo-dev 2018-07-26 08:35:49 UTC
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(+)