Bug 166208 - app-text/docbook-xsl-stylesheets install to ${PV}'ed dir, although not SLOT'ed
Bug#: 166208 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: trivial Priority: P2
Resolution: FIXED Assigned To: sgml@gentoo.org Reported By: 4nykey@gmail.com
Component: Ebuilds
URL: 
Summary: app-text/docbook-xsl-stylesheets install to ${PV}'ed dir, although not SLOT'ed
Keywords:  
Status Whiteboard: 
Opened: 2007-02-10 14:47 0000
Description:   Opened: 2007-02-10 14:47 0000
As of now docbook-xsl-stylesheets are installed to
/usr/share/sgml/docbook/xsl-stylesheets-${PV}.
But as all versions are SLOT=0 and when some package want these stylesheets, it
will usually look in /usr/share/sgml/docbook/xsl-stylesheets, will it be
acceptable to loose version suffix?
Like this, maybe:
--- docbook-xsl-stylesheets-1.72.0.ebuild       2007-01-30 23:42:21.000000000
+0200
+++ docbook-xsl-stylesheets-1.72.0.ebuild       2007-02-10 14:27:57.000000000
+0200
@@ -19,7 +19,7 @@

 src_install() {
        # Create the installation directory
-       DEST="/usr/share/sgml/docbook/xsl-stylesheets-${PV}"
+       DEST="/usr/share/sgml/docbook/xsl-stylesheets"
        insinto ${DEST}

        local i

------- Comment #1 From Leonardo Boshell (RETIRED) 2007-02-10 22:58:15 0000 -------
We may apply the change you suggest in future versions, but it doesn't make
much of a difference, and I'd rather wait until some refactoring in the
build-docbook-catalog tool is done.

As for packages who look in /usr/share/sgml/docbook/xsl-stylesheets, even if we
change the ebuilds today to install data there, it's not a good idea to rely on
a fixed filesystem location. Consumers of the stylesheets should use the
catalog system, and point to
<http://docbook.sourceforge.net/release/xsl/current>, and let the tools resolve
the location using the catalog.

------- Comment #2 From ak 2007-02-12 15:12:36 0000 -------
(In reply to comment #1)
> As for packages who look in /usr/share/sgml/docbook/xsl-stylesheets, even if we
> change the ebuilds today to install data there, it's not a good idea to rely on
> a fixed filesystem location. Consumers of the stylesheets should use the
> catalog system, and point to
> <http://docbook.sourceforge.net/release/xsl/current>, and let the tools resolve
> the location using the catalog.
Ah, ok, didn't know this.
Still, it would help less sophisticated things like configure checks etc. :)
No biggie though. Thanks.

------- Comment #3 From Leonardo Boshell (RETIRED) 2007-08-20 08:59:27 0000 -------
This change was made in docbook-xsl-stylesheets-1.73.1, which is now in the
tree.

Thanks.