public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] Fw: sgml to html
@ 2002-08-06  6:08 baran
  2002-08-06  6:15 ` Andrew Lunn
  0 siblings, 1 reply; 18+ messages in thread
From: baran @ 2002-08-06  6:08 UTC (permalink / raw)
  To: ecos-discuss


----- Original Message ----- 
From: "baran" <baran@yeah.net>
To: <ecos-discuss@sources.redhat.com>
Sent: Tuesday, August 06, 2002 8:59 PM
Subject: sgml to html


> Hi all,
> 
> How can I solve the following problems?
> 
> After cvs ecos 2.0 today on my cygwin platform,
> 
> $ cd ~/ecos/doc/sgml
>  ...hack makemakefile shell script,replace every occurence of "ecc" with "packages".
> 
> $ ./makemakefile
> $ make html
> 
>  ...then so many errors are displayed:
> 
> jade -t sgml -i html -c  -d ../../packages/pkgconf/stylesheet.dsl#html ecos.sgml
> jade:E: cannot open "-d" (No such file or directory)
> jade:E: cannot open "../../packages/pkgconf/stylesheet.dsl#html" (No such file o
> r directory)
> jade:ecos.sgml:1:55:W: cannot generate system identifier for public text "-//OAS
> IS//DTD DocBook V3.1//EN"
> .....
> .....
> 
> thank you
> baran
> 
>  
> 


^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-06  6:08 [ECOS] Fw: sgml to html baran
@ 2002-08-06  6:15 ` Andrew Lunn
  2002-08-06  6:24   ` Gary Thomas
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Lunn @ 2002-08-06  6:15 UTC (permalink / raw)
  To: baran; +Cc: ecos-discuss

> > jade -t sgml -i html -c  -d ../../packages/pkgconf/stylesheet.dsl#html ecos.sgml
> > jade:E: cannot open "-d" (No such file or directory)

It thinks the flag -d is a file. This suggests the version of jade you
have is different from the one the authors used.

I had a quick look at getting the documentation to "compile", but
failed. It looks to me that the documentation uses an old version of
DocBook and is not compatible with current versions. 

I don't know DocBook, so i have no idea how much effort is required to
bring the documentation up to date with DocBook 4.X. Can anyone else
comment? Bart?

         Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-06  6:15 ` Andrew Lunn
@ 2002-08-06  6:24   ` Gary Thomas
  2002-08-06  6:28     ` Andrew Lunn
  0 siblings, 1 reply; 18+ messages in thread
From: Gary Thomas @ 2002-08-06  6:24 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: baran, eCos Discussion

On Tue, 2002-08-06 at 07:15, Andrew Lunn wrote:
> > > jade -t sgml -i html -c  -d ../../packages/pkgconf/stylesheet.dsl#html ecos.sgml
> > > jade:E: cannot open "-d" (No such file or directory)
> 
> It thinks the flag -d is a file. This suggests the version of jade you
> have is different from the one the authors used.
> 
> I had a quick look at getting the documentation to "compile", but
> failed. It looks to me that the documentation uses an old version of
> DocBook and is not compatible with current versions. 
> 
> I don't know DocBook, so i have no idea how much effort is required to
> bring the documentation up to date with DocBook 4.X. Can anyone else
> comment? Bart?

It works "out of the box" for me.  I'm running Red Hat 7.3, but I'm
quite sure that it worked on previous Red Hat (7.x) versions as well.


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-06  6:24   ` Gary Thomas
@ 2002-08-06  6:28     ` Andrew Lunn
  2002-08-06 16:09       ` Bart Veer
  2002-08-07  2:58       ` Martin Buck
  0 siblings, 2 replies; 18+ messages in thread
From: Andrew Lunn @ 2002-08-06  6:28 UTC (permalink / raw)
  To: Gary Thomas; +Cc: baran, eCos Discussion

> It works "out of the box" for me.  I'm running Red Hat 7.3, but I'm
> quite sure that it worked on previous Red Hat (7.x) versions as well.

Fails horribly on Debian :-(

      Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-06  6:28     ` Andrew Lunn
@ 2002-08-06 16:09       ` Bart Veer
  2002-08-07  2:58       ` Martin Buck
  1 sibling, 0 replies; 18+ messages in thread
From: Bart Veer @ 2002-08-06 16:09 UTC (permalink / raw)
  To: andrew.lunn; +Cc: gary, baran, ecos-discuss

>>>>> "Andrew" == Andrew Lunn <andrew.lunn@ascom.ch> writes:

    >> It works "out of the box" for me. I'm running Red Hat 7.3, but
    >> I'm quite sure that it worked on previous Red Hat (7.x)
    >> versions as well.

    Andrew> Fails horribly on Debian :-(

That's possible, I am afraid the documentation makefiles etc. were
only ever tested with Red Hat releases. I am thinking about installing
Debian on at least one machine so that I can test things like this on
systems which don't run Red Hat.

I suspect the current problems are actually caused by using jade vs.
openjade. DocBook 3.x vs. 4.x should not be an issue, that is
orthogonal to the tools being used.

Bart

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-06  6:28     ` Andrew Lunn
  2002-08-06 16:09       ` Bart Veer
@ 2002-08-07  2:58       ` Martin Buck
  2002-08-07  3:20         ` Andrew Lunn
  1 sibling, 1 reply; 18+ messages in thread
From: Martin Buck @ 2002-08-07  2:58 UTC (permalink / raw)
  To: ecos-discuss

Andrew Lunn wrote:
> Fails horribly on Debian :-(

Try it again (if you tried it on tux, that is).

Hint for all Debian users out there: You need at least the following
packages, plus of course the ones they depend on (the versions from
potato seem to be sufficient):

jade
docbook
docbook-stylesheets

The latter one was missing in our case.

Martin

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  2:58       ` Martin Buck
@ 2002-08-07  3:20         ` Andrew Lunn
  2002-08-07  7:02           ` Gary Thomas
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Lunn @ 2002-08-07  3:20 UTC (permalink / raw)
  To: Martin Buck; +Cc: ecos-discuss

On Wed, Aug 07, 2002 at 11:58:02AM +0200, Martin Buck wrote:
> Andrew Lunn wrote:
> > Fails horribly on Debian :-(
> 
> Try it again (if you tried it on tux, that is).

That help. You also need the following patch. Its then possible to do

make html.

and it spits out hundreds of html files.

plain make fails, it trys to call nsgmls which it cannot find.

I will play with it more later.

  Andrew

Index: rules.doc
===================================================================
RCS file: /cvs/ecos/ecos/packages/pkgconf/rules.doc,v
retrieving revision 1.4
diff -c -u -r1.4 rules.doc
cvs server: conflicting specifications of output style
--- rules.doc   23 May 2002 23:08:24 -0000      1.4
+++ rules.doc   7 Aug 2002 10:16:26 -0000
@@ -65,7 +65,12 @@
     CATALOG          := /usr/lib/sgml/CATALOG
     DSSSL_CATALOG    := /usr/lib/sgml/stylesheets/nwalsh-modular/catalog
   else
-    Error: unable to locate DocBook tools.
+    ifneq (,$(wildcard /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog))
+      CATALOG        := /usr/lib/sgml/catalog
+      DSSSL_CATALOG  := /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog
+    else
+      Error: unable to locate DocBook tools.
+    endif
   endif
 endif
 ECOS_STYLESHEET  := $(TOPLEVEL)/pkgconf/stylesheet.dsl






-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  3:20         ` Andrew Lunn
@ 2002-08-07  7:02           ` Gary Thomas
  2002-08-07  7:10             ` Andrew Lunn
  2002-08-07  7:18             ` Martin Buck
  0 siblings, 2 replies; 18+ messages in thread
From: Gary Thomas @ 2002-08-07  7:02 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Martin Buck, eCos Discussion

On Wed, 2002-08-07 at 04:20, Andrew Lunn wrote:
> On Wed, Aug 07, 2002 at 11:58:02AM +0200, Martin Buck wrote:
> > Andrew Lunn wrote:
> > > Fails horribly on Debian :-(
> > 
> > Try it again (if you tried it on tux, that is).
> 
> That help. You also need the following patch. Its then possible to do
> 

I just installed Woody (3.0) and it fails the same for me, even with
your patch.  Perhaps there are newer packages (Martin mentioned
'potato'?) that are required?

gthomas@artemis:/work2/ecos/doc/sgml$ make html 2>&1 >errs
jade:E: cannot find "-d"; tried "-d", "/usr/local/share/sgml/-d", "/usr/local/lib/sgml/-d", "/usr/share/sgml/-d"
jade:E: cannot find "../../ecc/pkgconf/stylesheet.dsl#html"; tried "../../ecc/pkgconf/stylesheet.dsl#html", "/usr/local/share/sgml/../../ecc/pkgconf/stylesheet.dsl#html", "/usr/local/lib/sgml/../../ecc/pkgconf/stylesheet.dsl#html", "/usr/share/sgml/../../ecc/pkgconf/stylesheet.dsl#html"
jade:E: cannot find "-d"; tried "-d", "/usr/local/share/sgml/-d", "/usr/local/lib/sgml/-d", "/usr/share/sgml/-d"
jade:E: cannot find "ecos.dsl"; tried "ecos.dsl", "/usr/local/share/sgml/ecos.dsl", "/usr/local/lib/sgml/ecos.dsl", "/usr/share/sgml/ecos.dsl"
jade:E: specification document does not have the DSSSL architecture as a base architecture
make: *** [ecos.html] Error 1







-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  7:02           ` Gary Thomas
@ 2002-08-07  7:10             ` Andrew Lunn
  2002-08-07  7:12               ` Gary Thomas
  2002-08-07  7:18             ` Martin Buck
  1 sibling, 1 reply; 18+ messages in thread
From: Andrew Lunn @ 2002-08-07  7:10 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Martin Buck, eCos Discussion

> I just installed Woody (3.0) and it fails the same for me, even with
> your patch.  Perhaps there are newer packages (Martin mentioned
> 'potato'?) that are required?

What version of jade are you using? We have

jade -v
jade:I: Jade version "1.2.1"
jade:I: SP version "1.3.4"

which seems to be working OK.

> gthomas@artemis:/work2/ecos/doc/sgml$ make html 2>&1 >errs
> jade:E: cannot find "-d"; tried "-d", "/usr/local/share/sgml/-d", "/usr/local/lib/sgml/-d", "/usr/share/sgml/-d"

These are the same errors someone else was reporting. Does look like a
version problem.

        Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  7:10             ` Andrew Lunn
@ 2002-08-07  7:12               ` Gary Thomas
  2002-08-07  7:17                 ` Andrew Lunn
  0 siblings, 1 reply; 18+ messages in thread
From: Gary Thomas @ 2002-08-07  7:12 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Martin Buck, eCos Discussion

On Wed, 2002-08-07 at 08:10, Andrew Lunn wrote:
> > I just installed Woody (3.0) and it fails the same for me, even with
> > your patch.  Perhaps there are newer packages (Martin mentioned
> > 'potato'?) that are required?
> 
> What version of jade are you using? We have
> 
> jade -v
> jade:I: Jade version "1.2.1"
> jade:I: SP version "1.3.4"
> 
> which seems to be working OK.
> 

The same.

> > gthomas@artemis:/work2/ecos/doc/sgml$ make html 2>&1 >errs
> > jade:E: cannot find "-d"; tried "-d", "/usr/local/share/sgml/-d", "/usr/local/lib/sgml/-d", "/usr/share/sgml/-d"
> 
> These are the same errors someone else was reporting. Does look like a
> version problem.

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  7:12               ` Gary Thomas
@ 2002-08-07  7:17                 ` Andrew Lunn
  2002-08-07  7:31                   ` Gary Thomas
  0 siblings, 1 reply; 18+ messages in thread
From: Andrew Lunn @ 2002-08-07  7:17 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Martin Buck, eCos Discussion

> > What version of jade are you using? We have
> > 
> > jade -v
> > jade:I: Jade version "1.2.1"
> > jade:I: SP version "1.3.4"
> > 
> > which seems to be working OK.
> > 
> 
> The same.

Strange. 

Whats the command line it is using? I have

jade -t sgml -i html -c /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog -d ../../packages/pkgconf/stylesheet.dsl#html ecos.sgml

Maybe we have hacked makemakefile in different ways?

      Andrew

Index: makemakefile
===================================================================
RCS file: /cvs/ecos/ecos/doc/sgml/makemakefile,v
retrieving revision 1.1
diff -c -u -r1.1 makemakefile
cvs server: conflicting specifications of output style
--- makemakefile        20 May 2002 22:19:26 -0000      1.1
+++ makemakefile        7 Aug 2002 14:14:07 -0000
@@ -53,7 +53,7 @@
 #####DESCRIPTIONEND####
 #=============================================================================
 
-TOPLEVEL   := ../../ecc
+TOPLEVEL   := ../../packages
 EOF
 /bin/echo -n MAIN_SGML   := ecos.sgml >> makefile
 
@@ -70,12 +70,12 @@
 for i in `cat doclist`; do
   line="`echo $i | sed 's/#.*//;'`"
   if (test ! -z $line); then
-   /bin/echo -n " ../../ecc/$i" >> makefile
+   /bin/echo -n " ../../packages/$i" >> makefile
    entityi="`echo $i | sed 's@/@-@g; s@\.@-@g; s@_@-@g'`"
-   echo "<!ENTITY $entityi SYSTEM \"../../ecc/$i\">" >> ecos.sgml
+   echo "<!ENTITY $entityi SYSTEM \"../../packages/$i\">" >> ecos.sgml
   fi
 done
-echo "<!ENTITY hal-common-current-doc-porting-sgml SYSTEM \"../../ecc/hal/common/current/doc/porting.sgml\">" >> ecos.sgml
+echo "<!ENTITY hal-common-current-doc-porting-sgml SYSTEM \"../../packages/hal/common/current/doc/porting.sgml\">" >> ecos.sgml
 
 cat >> makefile <<EOF
 


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  7:02           ` Gary Thomas
  2002-08-07  7:10             ` Andrew Lunn
@ 2002-08-07  7:18             ` Martin Buck
  1 sibling, 0 replies; 18+ messages in thread
From: Martin Buck @ 2002-08-07  7:18 UTC (permalink / raw)
  To: ecos-discuss

Gary Thomas wrote:
> I just installed Woody (3.0) and it fails the same for me, even with
> your patch.  Perhaps there are newer packages (Martin mentioned
> 'potato'?) that are required?

No, it's the other way round: potato is the predecessor of woody, so it
looks like something is broken in recent versions of jade.

But there's only a small difference in jade's version numbers between
potato and woody: potato has 1.2.1-16 whereas woody has 1.2.1-28, i.e.
the upstream version stayed the same and only the Debian revision
changed. And I can't find anything suspicious in the the changelog
between these 2 versions...

I'm currently upgrading my machines at home to woody, so maybe I can
give the new jade a try this evening.

Martin

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  7:17                 ` Andrew Lunn
@ 2002-08-07  7:31                   ` Gary Thomas
  2002-08-07  7:37                     ` Andrew Lunn
  2002-08-07  7:45                     ` Martin Buck
  0 siblings, 2 replies; 18+ messages in thread
From: Gary Thomas @ 2002-08-07  7:31 UTC (permalink / raw)
  To: Andrew Lunn; +Cc: Martin Buck, eCos Discussion

On Wed, 2002-08-07 at 08:17, Andrew Lunn wrote:
> > > What version of jade are you using? We have
> > > 
> > > jade -v
> > > jade:I: Jade version "1.2.1"
> > > jade:I: SP version "1.3.4"
> > > 
> > > which seems to be working OK.
> > > 
> > 
> > The same.
> 
> Strange. 
> 
> Whats the command line it is using? I have
> 
> jade -t sgml -i html -c /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog -d ../../packages/pkgconf/stylesheet.dsl#html ecos.sgml
> 

The problem is that my stylesheets are named differently!

gthomas@artemis:/work2/ecos/doc/sgml$ ls -l /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/
total 36
-rw-r--r--    1 root     root            8 Feb 22 03:36 VERSION
-rw-r--r--    1 root     root          774 Jul  5  2001 catalog
drwxr-xr-x    2 root     root         4096 Aug  7 07:25 common
drwxr-xr-x    6 root     root         4096 Aug  7 07:25 dtds
drwxr-xr-x    2 root     root         4096 Aug  7 07:25 html
drwxr-xr-x    3 root     root         4096 Aug  7 07:25 images
drwxr-xr-x    2 root     root         4096 Aug  7 07:25 lib
drwxr-xr-x    2 root     root         4096 Aug  7 07:25 olink
drwxr-xr-x    2 root     root         4096 Aug  7 07:25 print

So, it can't find the stylesheets.

> Maybe we have hacked makemakefile in different ways?
> 

Actually I've not changed that - I just added a symlink of
ecos/packages-> ecos/ecc

>       Andrew
> 
> Index: makemakefile
> ===================================================================
> RCS file: /cvs/ecos/ecos/doc/sgml/makemakefile,v
> retrieving revision 1.1
> diff -c -u -r1.1 makemakefile
> cvs server: conflicting specifications of output style
> --- makemakefile        20 May 2002 22:19:26 -0000      1.1
> +++ makemakefile        7 Aug 2002 14:14:07 -0000
> @@ -53,7 +53,7 @@
>  #####DESCRIPTIONEND####
>  #=============================================================================
>  
> -TOPLEVEL   := ../../ecc
> +TOPLEVEL   := ../../packages
>  EOF
>  /bin/echo -n MAIN_SGML   := ecos.sgml >> makefile
>  
> @@ -70,12 +70,12 @@
>  for i in `cat doclist`; do
>    line="`echo $i | sed 's/#.*//;'`"
>    if (test ! -z $line); then
> -   /bin/echo -n " ../../ecc/$i" >> makefile
> +   /bin/echo -n " ../../packages/$i" >> makefile
>     entityi="`echo $i | sed 's@/@-@g; s@\.@-@g; s@_@-@g'`"
> -   echo "<!ENTITY $entityi SYSTEM \"../../ecc/$i\">" >> ecos.sgml
> +   echo "<!ENTITY $entityi SYSTEM \"../../packages/$i\">" >> ecos.sgml
>    fi
>  done
> -echo "<!ENTITY hal-common-current-doc-porting-sgml SYSTEM \"../../ecc/hal/common/current/doc/porting.sgml\">" >> ecos.sgml
> +echo "<!ENTITY hal-common-current-doc-porting-sgml SYSTEM \"../../packages/hal/common/current/doc/porting.sgml\">" >> ecos.sgml
>  
>  cat >> makefile <<EOF
>  
> 
> 
> -- 
> Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
> and search the list archive: http://sources.redhat.com/ml/ecos-discuss
-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  7:31                   ` Gary Thomas
@ 2002-08-07  7:37                     ` Andrew Lunn
  2002-08-07  7:45                     ` Martin Buck
  1 sibling, 0 replies; 18+ messages in thread
From: Andrew Lunn @ 2002-08-07  7:37 UTC (permalink / raw)
  To: Gary Thomas; +Cc: Martin Buck, eCos Discussion

> gthomas@artemis:/work2/ecos/doc/sgml$ ls -l /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/
> total 36
> -rw-r--r--    1 root     root            8 Feb 22 03:36 VERSION
> -rw-r--r--    1 root     root          774 Jul  5  2001 catalog
> drwxr-xr-x    2 root     root         4096 Aug  7 07:25 common
> drwxr-xr-x    6 root     root         4096 Aug  7 07:25 dtds
> drwxr-xr-x    2 root     root         4096 Aug  7 07:25 html
> drwxr-xr-x    3 root     root         4096 Aug  7 07:25 images
> drwxr-xr-x    2 root     root         4096 Aug  7 07:25 lib
> drwxr-xr-x    2 root     root         4096 Aug  7 07:25 olink
> drwxr-xr-x    2 root     root         4096 Aug  7 07:25 print

So the catalog file has changed name. Its called sgml.catalog on our
installation. You need to edit packages/pkgconf/rules.doc to take this
into account.

       Andrew

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  7:31                   ` Gary Thomas
  2002-08-07  7:37                     ` Andrew Lunn
@ 2002-08-07  7:45                     ` Martin Buck
  2002-08-07  8:04                       ` Gary Thomas
  1 sibling, 1 reply; 18+ messages in thread
From: Martin Buck @ 2002-08-07  7:45 UTC (permalink / raw)
  To: ecos-discuss, Gary Thomas; +Cc: Andrew Lunn

Gary Thomas wrote:
> > jade -t sgml -i html -c /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog -d ../../packages/pkgconf/stylesheet.dsl#html ecos.sgml
> >
> 
> The problem is that my stylesheets are named differently!

The stylesheets are probably the same, but the catalog is different. You
tell jade that the catalog is in
/usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog, but it
really is in /etc/sgml.catalog (managed automagically by
install-sgmlcatalog(8) on Debian).

The catalog file in /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh (which
happend to change its name between potato and woody) is just the
fragment that gets inserted into /etc/sgml.catalog by
install-sgmlcatalog but probably shouldn't be used directly by anybody.

Looks like we have to add one more path to packages/pkgconf/rules.doc...

Please note that I know exactly nothing about SGML, so everyhting I
wrote could be wrong. But at least it still makes sense to me after I
just read it again ;-)

Martin

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  7:45                     ` Martin Buck
@ 2002-08-07  8:04                       ` Gary Thomas
  2002-08-07  8:41                         ` Martin Buck
  0 siblings, 1 reply; 18+ messages in thread
From: Gary Thomas @ 2002-08-07  8:04 UTC (permalink / raw)
  To: Martin Buck; +Cc: eCos Discussion, Andrew Lunn

On Wed, 2002-08-07 at 08:45, Martin Buck wrote:
> Gary Thomas wrote:
> > > jade -t sgml -i html -c /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog -d ../../packages/pkgconf/stylesheet.dsl#html ecos.sgml
> > >
> > 
> > The problem is that my stylesheets are named differently!
> 
> The stylesheets are probably the same, but the catalog is different. You
> tell jade that the catalog is in
> /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog, but it
> really is in /etc/sgml.catalog (managed automagically by
> install-sgmlcatalog(8) on Debian).
> 
> The catalog file in /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh (which
> happend to change its name between potato and woody) is just the
> fragment that gets inserted into /etc/sgml.catalog by
> install-sgmlcatalog but probably shouldn't be used directly by anybody.
> 
> Looks like we have to add one more path to packages/pkgconf/rules.doc...
> 
> Please note that I know exactly nothing about SGML, so everyhting I
> wrote could be wrong. But at least it still makes sense to me after I
> just read it again ;-)

That's already being handled.  I finally got it going with this change,
which I'll go ahead and commit:

Index: pkgconf/rules.doc
===================================================================
RCS file: /misc/cvsfiles/ecos/packages/pkgconf/rules.doc,v
retrieving revision 1.4
diff -u -5 -p -r1.4 rules.doc
--- pkgconf/rules.doc	23 May 2002 23:08:24 -0000	1.4
+++ pkgconf/rules.doc	7 Aug 2002 15:02:13 -0000
@@ -57,17 +57,26 @@
 
 # Locations of the stylesheets and other SGML support files. These
 # have moved around in various releases of the tools.
 ifneq (,$(wildcard /usr/share/sgml/docbook))
   CATALOG	:= /etc/sgml/catalog
-  DSSSL_CATALOG := $(firstword $(wildcard /usr/share/sgml/docbook/dsssl-stylesheets-*/catalog))
+  ifneq (,$(wildcard /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/catalog))
+    DSSSL_CATALOG  := /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/catalog
+  else
+    DSSSL_CATALOG := $(firstword $(wildcard /usr/share/sgml/docbook/dsssl-stylesheets-*/catalog))
+  endif
 else
   ifneq (,$(wildcard /usr/lib/sgml/stylesheets/nwalsh-modular/catalog))
     CATALOG          := /usr/lib/sgml/CATALOG
     DSSSL_CATALOG    := /usr/lib/sgml/stylesheets/nwalsh-modular/catalog
   else
-    Error: unable to locate DocBook tools.
+    ifneq (,$(wildcard /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog))
+      CATALOG        := /usr/lib/sgml/catalog
+      DSSSL_CATALOG  := /usr/lib/sgml/stylesheet/dsssl/docbook/nwalsh/sgml.catalog
+    else
+      Error: unable to locate DocBook tools.
+    endif
   endif
 endif
 ECOS_STYLESHEET  := $(TOPLEVEL)/pkgconf/stylesheet.dsl
 FIXHTML          := $(TOPLEVEL)/pkgconf/fixhtml.tcl
 
-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  8:04                       ` Gary Thomas
@ 2002-08-07  8:41                         ` Martin Buck
  2002-08-07  8:46                           ` Gary Thomas
  0 siblings, 1 reply; 18+ messages in thread
From: Martin Buck @ 2002-08-07  8:41 UTC (permalink / raw)
  To: Gary Thomas; +Cc: eCos Discussion, Andrew Lunn

Gary Thomas wrote:
> That's already being handled.  I finally got it going with this change,
> which I'll go ahead and commit:

Unfortunately, that's not how it should be. Really, the only
authoritative SGML catalog (at least on a Debian system) is
/etc/sgml.catalog (you can use that both for CATALOG and DSSSL_CATALOG)
and you shouldn't use anything else if it exists, even if you happen to
find other files that might look like SGML catalogs as well.

BTW, according to LSB, /etc/sgml/catalog is supposed to be the master
catalog now and woody seems to implement exactly this. So I'm a bit
surprised that you stumbled over this in the first place, since you
already should have /etc/sgml/catalog and rules.doc already should
search for it (but to be honest, I don't understand all those nested
ifs). Maybe it's because DSSSL_CATALOG should get set to
/etc/sgml/catalog as well but doesn't...

Martin

-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

* Re: [ECOS] Fw: sgml to html
  2002-08-07  8:41                         ` Martin Buck
@ 2002-08-07  8:46                           ` Gary Thomas
  0 siblings, 0 replies; 18+ messages in thread
From: Gary Thomas @ 2002-08-07  8:46 UTC (permalink / raw)
  To: Martin Buck; +Cc: eCos Discussion, Andrew Lunn

On Wed, 2002-08-07 at 09:41, Martin Buck wrote:
> Gary Thomas wrote:
> > That's already being handled.  I finally got it going with this change,
> > which I'll go ahead and commit:
> 
> Unfortunately, that's not how it should be. Really, the only
> authoritative SGML catalog (at least on a Debian system) is
> /etc/sgml.catalog (you can use that both for CATALOG and DSSSL_CATALOG)
> and you shouldn't use anything else if it exists, even if you happen to
> find other files that might look like SGML catalogs as well.
> 
> BTW, according to LSB, /etc/sgml/catalog is supposed to be the master
> catalog now and woody seems to implement exactly this. So I'm a bit
> surprised that you stumbled over this in the first place, since you
> already should have /etc/sgml/catalog and rules.doc already should
> search for it (but to be honest, I don't understand all those nested
> ifs). Maybe it's because DSSSL_CATALOG should get set to
> /etc/sgml/catalog as well but doesn't...

The problem is that the DSSL stylesheets (which are explicitly passed to
jade - I'm not sure why) are in a different location on Debian/Woody and
Red Hat 7.x.

Anyway, I've fixed it now and it should work on all of these systems.

-- 
------------------------------------------------------------
Gary Thomas                  |
eCosCentric, Ltd.            |  
+1 (970) 229-1963            |  eCos & RedBoot experts
gthomas@ecoscentric.com      |
http://www.ecoscentric.com/  |
------------------------------------------------------------


-- 
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss

^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2002-08-07 15:46 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-06  6:08 [ECOS] Fw: sgml to html baran
2002-08-06  6:15 ` Andrew Lunn
2002-08-06  6:24   ` Gary Thomas
2002-08-06  6:28     ` Andrew Lunn
2002-08-06 16:09       ` Bart Veer
2002-08-07  2:58       ` Martin Buck
2002-08-07  3:20         ` Andrew Lunn
2002-08-07  7:02           ` Gary Thomas
2002-08-07  7:10             ` Andrew Lunn
2002-08-07  7:12               ` Gary Thomas
2002-08-07  7:17                 ` Andrew Lunn
2002-08-07  7:31                   ` Gary Thomas
2002-08-07  7:37                     ` Andrew Lunn
2002-08-07  7:45                     ` Martin Buck
2002-08-07  8:04                       ` Gary Thomas
2002-08-07  8:41                         ` Martin Buck
2002-08-07  8:46                           ` Gary Thomas
2002-08-07  7:18             ` Martin Buck

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).