You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Mladen Turk <mt...@apache.org> on 2004/09/10 18:13:46 UTC

building docs on WIN32

Hi,

I'm getting the following error when trying to build a docs:


D:\WRKPLACE\docs\manual\build>build.bat

...

metafiles:
      [echo] checking metafiles...
     [apply] could not open file 
'D:\WRKPLACE\docs\manual\WRKPLACE\docs\manual\bind.xml' (No such file or 
directory), stopped at build/lib/metafile.pl line 162.


The interesting is that the true path is 'D:\WRKPLACE\docs\manual',
so it seems that the directory is added twice to the constructed path.

Anyone has a similar experience, or some other steps are needed,
perhaps even switching OS :).

I'm using:
ant 1.6.2
perl v5.8.1 (ActiveState)
java 1.4.2_04
WINXP


Regards,
MT.


Re: building docs on WIN32

Posted by André Malo <nd...@perlig.de>.
* Mladen Turk <mt...@apache.org> wrote:

> It works on WIN32.
> In the mean time I've tested it under cygwin and the behavior is
> the same, so it seems that the Spec::Cygwin is broken too.
> Perhaps you should test both for Spec::WIN32 and Spec::Cygwin and use
> your abs2rel wrapper in that case.

:-(

I've attached a new DocUtil.pm which uses another, hopefully better strategy.
Seems to work on Win32. Could you test it on Cygwin again? Thanks.

nd
-- 
"Das Verhalten von Gates hatte mir bewiesen, dass ich auf ihn und seine
beiden Gef�hrten nicht zu z�hlen brauchte" -- Karl May, "Winnetou III"

Im Westen was neues: <http://pub.perlig.de/books.html#apache2>

Re: building docs on WIN32

Posted by Mladen Turk <mt...@apache.org>.
André Malo wrote:

> 
> Well, I've worked around the File::Spec problem and committed the change to
> cvs. Please test.
>

It works on WIN32.
In the mean time I've tested it under cygwin and the behavior is
the same, so it seems that the Spec::Cygwin is broken too.
Perhaps you should test both for Spec::WIN32 and Spec::Cygwin and use
your abs2rel wrapper in that case.


Regards,
MT.


Re: building docs on WIN32

Posted by André Malo <nd...@perlig.de>.
* André Malo <nd...@perlig.de> wrote:

> That is strange. dirname should be / here. It looks like the File::Spec
> module does something weird. I'm still investigating ...

Well, I've worked around the File::Spec problem and committed the change to
cvs. Please test.

Thanks!

nd
-- 
"Die Untergeschosse der Sempergalerie bleiben währenddessen aus
 statistischen Gründen geflutet." -- Spiegel Online

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: building docs on WIN32

Posted by André Malo <nd...@perlig.de>.
* Mladen Turk <mt...@apache.org> wrote:

> I'm getting the following error when trying to build a docs:

> metafiles:
>       [echo] checking metafiles...
>      [apply] could not open file 
> 'D:\WRKPLACE\docs\manual\WRKPLACE\docs\manual\bind.xml' (No such file or 
> directory), stopped at build/lib/metafile.pl line 162.

Hmm, looks like a remote debugging issue. It works fine on Win2k.
Perhaps, we should exchange the mails privately until the issue is solved ;)

Could you apply this patch and say, what it gives:

Index: lib/metafile.pl
===================================================================
RCS file: /home/cvspublic/site-tools/httpd-docs-build/lib/metafile.pl,v
retrieving revision 1.16
diff -u -r1.16 metafile.pl
--- lib/metafile.pl     18 Apr 2004 20:50:15 -0000      1.16
+++ lib/metafile.pl     10 Sep 2004 22:02:29 -0000
@@ -63,6 +63,7 @@
 for $file (@files) {
     my (%current, %variants);
     my ($dirname, $basename, $relative, $metafile) = srcinfo($file);
+    print "file=$file\ndirname=$dirname\nbasename=$basename\n";

     # first determine the reality
     @pfiles = grep /^\Q$basename.\E(?:html\.[^.]+|xml)/ => @all_files;

> I'm using:
> ant 1.6.2

Are you sure? ant is included in the build tools, currently with version
1.6.1.

nd
-- 
"Umfassendes Werk (auch fuer Umsteiger vom Apache 1.3)"
                                          -- aus einer Rezension

<http://pub.perlig.de/books.html#apache2>

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org


Re: building docs on WIN32

Posted by André Malo <nd...@perlig.de>.
* Mladen Turk <mt...@apache.org> wrote:

> metafiles:
>       [echo] checking metafiles...
>      [apply] could not open file 
> 'D:\WRKPLACE\docs\manual\WRKPLACE\docs\manual\bind.xml' (No such file or 
> directory), stopped at build/lib/metafile.pl line 162.

After some further patching and testing, the problem is solved now for win32
and cygwin.

Thanks to Kess and Mladen for their tests.

nd
-- 
Winnetous Erbe: <http://pub.perlig.de/books.html#apache2>

---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org