The latest "stylesheet" RPMs in RawHide seem to have a fatal packaging
bug. The file "/usr/lib/sgml/nwalsh-modular.cat" (which at install time
gets included in "/usr/lib/sgml/CATALOG") is a verbatim copy of file
"/usr/lib/sgml/stylesheets/nwalsh-modular/catalog". The problem is that
its entries contain relative paths, e.g.

PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN"
  html/docbook.dsl

As the stylesheets themselves can be found under [...]/nwalsh-modular/,
jade/openjade won't be able open any files, because, reading from
/usr/lib/sgml/CATALOG, it will try to interpret the paths relative to
/usr/lib/sgml and will thus print error messages like

openjade:E: cannot open "/usr/lib/sgml/html/docbook.dsl" (No such file or
directory)

This can be fixed by replacing, in the spec file,

 install docbook/catalog $RPM_BUILD_ROOT/%{prefix}/lib/sgml/nwalsh-modular.cat

with either of the following

 echo CATALOG '"stylesheets/nwalsh-modular/catalog"' > 
$RPM_BUILD_ROOT/%{prefix}/lib/sgml/nwalsh-modular.cat

 install $RPM_SOURCE_DIR/nwalsh-modular.cat $RPM_BUILD_ROOT/%{prefix}/lib/sgml/

[The latter, of course, requires a source file named nwalsh-modular.cat,
containing just the line

CATALOG "stylesheets/nwalsh-modular/catalog"
]

--
 "Frank Zappa was my Elvis"                              (Matt Groening)
 Rudi Chiarito         SGML/XML, user interface, i18n         Amiga Inc.
 [EMAIL PROTECTED]                                        http://amiga.com/



_______________________________________________
Redhat-devel-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-devel-list

Reply via email to