Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 14739 - sgmltools-lite 3.0.3-r6 cannot find catalogs
Summary: sgmltools-lite 3.0.3-r6 cannot find catalogs
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal
Assignee: Matthew Turk (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-01-29 12:07 UTC by Paul Slinski
Modified: 2003-04-09 22:01 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 Paul Slinski 2003-01-29 12:07:15 UTC
While I am new to using docbook, I'm quite sure this is not supposed to happen.
My dtd is: <!DOCTYPE article PUBLIC "-//OASIS//DTD DocBook V4.1//EN">

sgmltools -b ps file.sgml generates the following error:
[snip]
Traceback (most recent call last):
  File "/usr/bin/sgmltools", line 93, in ?
    tool.processFile(curfile)
  File "/usr/share/sgml/misc/sgmltools/python/SGMLtools.py", line 230, in
processFile
    dssslfile = utils.findStylesheet(stylesheet, self._aliases)
  File "/usr/share/sgml/misc/sgmltools/python/utils.py", line 307, in findStylesheet
    return findStylesheet(name, aliases)
  File "/usr/share/sgml/misc/sgmltools/python/utils.py", line 317, in findStylesheet
    raise IOError, "Couldn't resolve pubid [%s]" % id
IOError: Couldn't resolve pubid ["-//SGMLtools//DOCUMENT Docbook Style Sheet for
Print//EN"]
[snip]

Trying this without attempting a conversion to postscript but just html:
[snip]
Traceback (most recent call last):
  File "/usr/bin/sgmltools", line 93, in ?
    tool.processFile(curfile)
  File "/usr/share/sgml/misc/sgmltools/python/SGMLtools.py", line 230, in
processFile
    dssslfile = utils.findStylesheet(stylesheet, self._aliases)
  File "/usr/share/sgml/misc/sgmltools/python/utils.py", line 307, in findStylesheet
    return findStylesheet(name, aliases)
  File "/usr/share/sgml/misc/sgmltools/python/utils.py", line 317, in findStylesheet
    raise IOError, "Couldn't resolve pubid [%s]" % id
IOError: Couldn't resolve pubid ["-//SGMLtools//DOCUMENT Docbook Style Sheet for
HTML//EN"]
[snip]

The SGML_CATALOG_FILES environment is:
/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/openjade-1.3.1.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/xhtml1.cat:/etc/sgml/html401.cat

Is there something that can be done as a workaround so I can continue to hack
around with docbook? Please let me know and I can provide any more info.
Comment 1 SpanKY gentoo-dev 2003-01-29 13:34:55 UTC
http://cvs.gentoo.org/~satai/sgmlfix.html 
Comment 2 Paul Slinski 2003-01-30 15:44:55 UTC
Seems like an odd way to fix things, but I'll bite. Is this simply a config file issue?
Comment 3 Paul Slinski 2003-01-30 16:35:39 UTC
No, that has no effect. Is there any info I can send to help this along?

The only thing that changed was the environment variable:
[snip]
paul cups # echo $SGML_CATALOG_FILES 
/etc/sgml/sgml-ent.cat:/etc/sgml/sgml-docbook.cat:/etc/sgml/dsssl-docbook-stylesheets.cat:/etc/sgml/openjade-1.3.1.cat:/etc/sgml/sgml-docbook-3.0.cat:/etc/sgml/sgml-docbook-3.1.cat:/etc/sgml/sgml-docbook-4.1.cat:/etc/sgml/sgml-docbook-4.0.cat:/etc/sgml/sgml-lite.cat:/etc/sgml/html401.cat:/etc/sgml/xhtml1.cat
[snip]

Comment 4 Paul Slinski 2003-01-31 13:06:31 UTC
A little more problem solving today. Executing the following command works with the dtd in my bug report:

sgmltools -b pdf -s /usr/share/sgml/stylesheets/sgmltools/print.dsl test.sgml

This seems to work for all backends so far. However, adding the catalog file to the SGML_CATALOG_FILES environment variable does not work.

Comment 5 Matthew Turk (RETIRED) gentoo-dev 2003-02-02 22:46:27 UTC
Try putting quotation marks around the catalog files in /etc/sgml/catalog, see if that helps 
any.  I'm working on a unified solution to this, but it might be a long time in coming, 
unfortunately. 
Comment 6 Matthew Turk (RETIRED) gentoo-dev 2003-02-03 00:46:48 UTC

*** This bug has been marked as a duplicate of 12792 ***
Comment 7 Paul Slinski 2003-02-03 09:31:17 UTC
No, that no workie.

It's also odd that if I create my own envitonment variable the program fails as well. Hmm. Well, I'll wait for the fix, in the meatime I'll keep specifying my dssl spec files.
Comment 8 Matthew Turk (RETIRED) gentoo-dev 2003-02-08 04:55:58 UTC
Ok, then let's reopen.  We'll see if we can nail this problem.  I've got some ideas on how to 
do it, so let me work on them for a while and I'll get back to you. 
Comment 9 Matthew Turk (RETIRED) gentoo-dev 2003-02-09 02:38:31 UTC
Have you tried with the latest sgml-common?  It's masked in package.mask. 
Comment 10 Matthew Turk (RETIRED) gentoo-dev 2003-02-09 04:40:41 UTC
I did some testing, and I got it to work with the new sgml-common, which has a change in 
the way catalogs are recorded.  Let me know how that works for you.  :) 
Comment 11 Paul Slinski 2003-02-10 09:05:22 UTC
OK. Will give it a shot.
Comment 12 Paul Slinski 2003-02-10 10:07:07 UTC
Are you wanting me to test sgml-common r4? If so, that one works with docbook anyway. I havent tried it with any other catalogs though.
Comment 13 Paul Slinski 2003-02-10 14:11:39 UTC
Well, I've been using it for most of the day and it appears to be working 100% now. In different formats: pdf, html, dvi, postscript and, rtf it is working well (the html did not work but I thought it was my fault).

I have the ability to generate docbook 4.1/4.2 no problems without any extra command line.

Are there any tests I can run for you?
Comment 14 Paul Slinski 2003-03-10 15:48:08 UTC
Are you going to mark r4 stable and this closed?
Comment 15 Matthew Turk (RETIRED) gentoo-dev 2003-04-09 22:00:50 UTC
Not stable; but it is arch masked, instead of package.mask'd.  Sorry it took so long.  As 
soon as I'm able I'll mark it stable. 
Comment 16 Matthew Turk (RETIRED) gentoo-dev 2003-04-09 22:01:23 UTC
Actually, closing this bug.