Ethereal-dev: Re: [Ethereal-dev] Beginnings of automake in docbook directory

Note: This archive is from the project's previous web site, ethereal.com. This list is no longer active.

From: Ulf Lamping <ulf.lamping@xxxxxx>
Date: Sun, 20 Feb 2005 22:46:46 +0100
Joerg Mayer wrote:

Ulf,

On Sun, Feb 20, 2005 at 01:18:21PM +0100, Ulf Lamping wrote:
But you seem to be on the way ...

Yes, and spent most of today fighting with the existing makefile, learning
a few basic things about xsltproc and catalogc. The result is a much simplified
dependency situation.
I've attached a patch which I ask you to test whether it works for you.
You need to apply the patch and remove the catalog.xml file.
I did both.

I'll also include a commented version of the patch into the main body of
this mail.

Ulf: Is there any specific reason why  you do this:
edg_images:
     cp $(DOCBOOKXSL)/images/note.png ./edg_graphics
     cp $(DOCBOOKXSL)/images/tip.png ./edg_graphics
     cp $(DOCBOOKXSL)/images/warning.png ./edg_graphics

In the makefile instead of just copying them over and chekcing them in?

a) After looking at the license of the package I'm no longer sure that we
  could distribute it under this license (I'm not sure about the contrary
  either)

In the meantime, I've replaced the files with stock icons from GTK, see the SVN checkin comment for details.

And now for the patch:
I hope that this patch will work on your Windows platform too or at least
can be made to work.

Unfortunately not, the (complete) error output, after I've deleted my catalog.xml as you'd suggested before:
------------------------------------------------------------------------------------------------
$ make eug_html_chunked
echo -n '<!ENTITY SvnVersion "' > svn_version.xml
svnversion -n .                   >> svn_version.xml
echo '">'   >> svn_version.xml
--- HTML CHUNKED ---
mkdir -p eug_html_chunked
mkdir -p eug_html_chunked/graphics
mkdir -p eug_html_chunked/graphics/toolbar
cp ./graphics/*.* eug_html_chunked/graphics
cp ./graphics/toolbar/*.* eug_html_chunked/graphics/toolbar
"xsltproc" --stringparam base.dir eug_html_chunked/ --stringparam use.id.as.filename 1 --stringpara m admon.graphics 1 --stringparam admon.graphics.path graphics/ --stringparam section.autolabel 1 --s tringparam section.label.includes.component.label 1 --nonet http://docbook.sourceforge.net/release/
xsl/current/html/chunk.xsl user-guide.xml
I/O error : Attempt to load network entity http://docbook.sourceforge.net/release/xsl/current/html/c
hunk.xsl
warning: failed to load external entity "http://docbook.sourceforge.net/release/xsl/current/html/chu
nk.xsl"
cannot parse http://docbook.sourceforge.net/release/xsl/current/html/chunk.xsl
make: *** [eug_html_chunked] Error 4
------------------------------------------------------------------------------------------------

Seems that it tries to get the .xsl file from the network, but it simply shouldn't do that.

What mechanism is used in your environment which would be used to prevent this? Is the catalog file generated in some way?


When I revert the deletion of the catalog.xml file, *everything works fine* :-)

I've checked in your changes, together with the removal of the svn_version.xml file in the clean target (just forgotten to do that).

Regards, ULFL