Bug 452115 - docbook-xsl version 1.78.1 installs broken catalog file
Summary: docbook-xsl version 1.78.1 installs broken catalog file
Status: REPORTED
Alias: None
Product: Craft
Classification: Unmaintained
Component: Blueprints (other bugs)
Version First Reported In: master
Platform: Other Microsoft Windows
: NOR normal
Target Milestone: ---
Assignee: Hannah von Reth
URL:
Keywords:
Depends on: 452114
Blocks:
  Show dependency treegraph
 
Reported: 2022-03-31 14:43 UTC by Ralf Habacker
Modified: 2022-03-31 14:45 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2022-03-31 14:43:43 UTC
SUMMARY
The craft package docbook-xsl for the current version 1.78.1 installs an xml catalog file called 'docbook-xsl-stylesheets.xml' with entries for resolving stylesheet URIs to real paths pointing to invalid directories.

STEPS TO REPRODUCE
1.  install craft following the howto at https://community.kde.org/Guidelines_and_HOWTOs/Build_from_source/Windows#Installing_Craft
2. open craft shell
3.  run  'craft --no-cache docbook-xsl'
4. inspect related files and directories

OBSERVED RESULT
The stylesheets are installed at <craft-root>\bin\data\xml\docbook\xsl-stylesheets, but the entries in the catalog file installed at <craft-root>\etc\xml\docbook-xsl-stylesheets.xml refer to "xsl-stylesheets-1.78.1" as shown below.

    <rewriteURI uriStartString="http://docbook.sourceforge.net/release/xsl/current"
                rewritePrefix="../../bin/data/xml/docbook/xsl-stylesheets-1.78.1"/>

EXPECTED RESULT
The entries must point to the correct directories.

SOFTWARE/OS VERSIONS
Windows: 10

ADDITIONAL INFORMATION
This error prevents the use of the global catalog files for docbook stylesheet processing with

$ set XML_CATALOG_FILES=<craft-root>\etc\xml\catalog
$ xsltproc --nonet http://docbook.sourceforge.net/release/xsl/current/html/docbook.xsl ...

to generate html files from docbook files, which was requested e.g. at https://gitlab.freedesktop.org/dbus/dbus/-/merge_requests/284.