Thanks Martin, thanks Alexander !
I completely commented the part with the tree.js.
The build process finished successfully.
Now i just have to put the ebuild together and the gentoo-users can
spend another night compiling.
regards mundi
The complete patch looks like this now:
---
V75_00_24/MaxDB_ORG/sys/src/SAPDB/Interfaces/SQLDBC/genSQLDBCdoc.pl.ori
2005-04-13 11:10:24.000000000 +0200
+++ V75_00_24/MaxDB_ORG/sys/src/SAPDB/Interfaces/SQLDBC/genSQLDBCdoc.pl
2005-04-13 14:16:05.000000000 +0200
@@ -39,8 +39,8 @@ use Getopt::Long;
use Getopt::Std;
use File::Copy;
-my @doxygendirs = ("$ENV{OWN}/tool/bin/", "$ENV{TOOL}/pgm/", "");
-
+#my @doxygendirs = ("$ENV{OWN}/tool/bin/", "$ENV{TOOL}/pgm/", "");
+my @doxygendirs = ("/usr/bin/", "$ENV{OWN}/tool/bin/",
"$ENV{TOOL}/pgm/", "");
my $dotexe=".exe" if($^O=~/.*win32.*/i);
my $doxygen;
my $doxyver="1.3-rc2";
@@ -62,13 +62,14 @@ if (-d "$opt_dir") {
my $found=0;
my $versionok=0;
foreach my $dir (@doxygendirs) {
- $doxygen="${dir}doxygen$dotexe";
+# $doxygen="${dir}doxygen$dotexe";
+ $doxygen="${dir}doxygen";
if (-x "$doxygen") {
$found=1;
- if (checkDoxygenVersion($doxygen, $doxyver)) {
+# if (checkDoxygenVersion($doxygen, $doxyver)) {
$versionok=1;
last;
- }
+# }
}
}
if (!$found) {
@@ -95,41 +96,41 @@ if(system($cmd)) {
exit 1;
}
-my $infile = "$opt_dir/tree.js";
-my $outfile = "$opt_dir/tree.js.tmp";
-open(FILE_IN, "<$infile") || die "Can't open '$infile' (input): $!";
-open(FILE_OUT, ">$outfile") || die "Can't open '$outfile' (output):
$!";
-my $firstline=1;
-while(<FILE_IN>) {
-#
-# Skip if already modified
-#
- if ($_=~/\/\/ tree.js modified by genSQLDBCdoc/) {
- exit 0;
- }
- if ($firstline) {
- print FILE_OUT "// tree.js modified by genSQLDBCdoc\n";
- $firstline=0;
- }
-#
-# Insert link for Native C Reference
-#
- if ($_=~/\s+insDoc\(.*\"SQLDBC_C.h\".*\"(SQLDBC__C.*)\".*/){
- $sqldbc_c_ref = $1;
- }
- if ($_=~/\s+insDoc\(.*\"Compound Members\".*/){
- print FILE_OUT "insDoc(foldersTree, gLnk(\"Native C Reference
\", \"\", \"$sqldbc_c_ref\"))\n";
- }
-#
-# Insert Installation chapter
-#
- if ($_=~/\s+insDoc\(.*\"SQL Database Connectivity.*\".*/){
- print FILE_OUT $_;
- print FILE_OUT "insDoc(foldersTree, gLnk(\"Installation\",
\"\", \"install.html\"))\n";
- next;
- }
- print FILE_OUT $_;
-}
+#my $infile = "$opt_dir/tree.js";
+#my $outfile = "$opt_dir/tree.js.tmp";
+#open(FILE_IN, "<$infile") || die "Can't open '$infile' (input): $!";
+#open(FILE_OUT, ">$outfile") || die "Can't open '$outfile' (output):
$!";
+#my $firstline=1;
+#while(<FILE_IN>) {
+##
+## Skip if already modified
+##
+# if ($_=~/\/\/ tree.js modified by genSQLDBCdoc/) {
+# exit 0;
+# }
+# if ($firstline) {
+# print FILE_OUT "// tree.js modified by genSQLDBCdoc\n";
+# $firstline=0;
+# }
+##
+## Insert link for Native C Reference
+##
+# if ($_=~/\s+insDoc\(.*\"SQLDBC_C.h\".*\"(SQLDBC__C.*)\".*/){
+# $sqldbc_c_ref = $1;
+# }
+# if ($_=~/\s+insDoc\(.*\"Compound Members\".*/){
+# print FILE_OUT "insDoc(foldersTree, gLnk(\"Native C Reference
\", \"\", \"$sqldbc_c_ref\"))\n";
+# }
+##
+## Insert Installation chapter
+##
+# if ($_=~/\s+insDoc\(.*\"SQL Database Connectivity.*\".*/){
+# print FILE_OUT $_;
+# print FILE_OUT "insDoc(foldersTree, gLnk(\"Installation\",
\"\", \"install.html\"))\n";
+# next;
+# }
+# print FILE_OUT $_;
+#}
chdir("$ENV{OWN}/usr");
---
Am Mittwoch, den 13.04.2005, 12:50 +0200 schrieb Kittel, Martin:
> Hi Hermann,
>
> doxygen 1.3 generated javascript code for the main menu of the documentation
> in the file tree.js which genSQLDBCdoc.pl tries to patch. doxygen 1.4 does
> not do this any more, so there is no such file. Since the patching procedure
> only moves some menu entries to a more prominent spot on the HTML page you
> can just disable it without actually losing any information.
>
> Best wishes,
>
> Martin.
>
> -----Original Message-----
> From: Hermann Mundprecht [mailto:[EMAIL PROTECTED]
> Sent: Mittwoch, 13. April 2005 11:44
> To: Schroeder, Alexander
> Cc: [email protected]
> Subject: RE: error building 7.5.0.24 from sources - missing doxygen
>
> Hi Alexander !
> I patched the sys/src/SAPDB/Interfaces/SQLDBC/genSQLDBCdoc.pl using the
> following patch (i also did turn of version checking)
>
> ---
> V75_00_24/MaxDB_ORG/sys/src/SAPDB/Interfaces/SQLDBC/genSQLDBCdoc.pl.ori
> 2005-04-13 11:10:24.000000000 +0200
> +++ V75_00_24/MaxDB_ORG/sys/src/SAPDB/Interfaces/SQLDBC/genSQLDBCdoc.pl
> 2005-04-13 11:19:34.000000000 +0200
> @@ -39,8 +39,8 @@ use Getopt::Long;
> use Getopt::Std;
> use File::Copy;
>
> -my @doxygendirs = ("$ENV{OWN}/tool/bin/", "$ENV{TOOL}/pgm/", "");
> -
> +#my @doxygendirs = ("$ENV{OWN}/tool/bin/", "$ENV{TOOL}/pgm/", "");
> +my @doxygendirs = ("/usr/bin/", "$ENV{OWN}/tool/bin/",
> "$ENV{TOOL}/pgm/", "");
> my $dotexe=".exe" if($^O=~/.*win32.*/i);
> my $doxygen;
> my $doxyver="1.3-rc2";
> @@ -62,13 +62,14 @@ if (-d "$opt_dir") {
> my $found=0;
> my $versionok=0;
> foreach my $dir (@doxygendirs) {
> - $doxygen="${dir}doxygen$dotexe";
> +# $doxygen="${dir}doxygen$dotexe";
> + $doxygen="${dir}doxygen";
> if (-x "$doxygen") {
> $found=1;
> - if (checkDoxygenVersion($doxygen, $doxyver)) {
> +# if (checkDoxygenVersion($doxygen, $doxyver)) {
> $versionok=1;
> last;
> - }
> +# }
> }
> }
> if (!$found) {
> ---
>
> now doxygen generates the docs but the it runs into the next error:
> ...
> Generating namespace member index...
> Generating page index...
> Can't open '/var/tmp/portage/maxdb-src-7.5.0.24/work/V75_00_24/MaxDB_OR\
> G/usr/sdk/sqldbc/doc/html/tree.js' (input): Datei oder Verzeichnis nicht
> \
> gefunden at /var/tmp/portage/maxdb-src-7.5.0.24/work/V75_00_24/MaxDB_OR
> \
> G/tool/bin/genSQLDBCdoc.pl line 101.
> COMMAND error 2
> 'doc-FLOSS.mac' not made because of dependency errors
> ...
>
> regards Mundi
>
> Am Mittwoch, den 13.04.2005, 11:02 +0200 schrieb Schroeder, Alexander:
> > Seems that we forgot the Open Source people ... that doxygen we
> > use is not distributed in the tool sources but exists as binary
> > only ...
> >
> > For now go to sys/src/SAPDB/Interfaces/SQLDBC/genSQLDBCdoc.pl
> > and add your path to the list.
> >
> > Regards
> > Alexander Schr�der
> > SAP DB, SAP Labs Berlin
> >
> >
> > > -----Original Message-----
> > > From: Hermann Mundprecht [mailto:[EMAIL PROTECTED]
> > > Sent: Wednesday, April 13, 2005 10:07 AM
> > > To: [email protected]
> > > Subject: error building 7.5.0.24 from sources - missing doxygen
> > >
> > > Hi !
> > >
> > > I am in the process of creating a gentoo-ebuild for 7.5.0.24
> > > but get the
> > > following error during the build process:
> > >
> > > (from V75_00_24/MaxDB_ORG/sys/wrk/fast/prot/all.mac.x0):
> > > ....
> > > 22:40:17
> > > /var/tmp/portage/maxdb-src-7.5.0.24/work/V75_00_24/MaxDB_ORG/s
> > > ys/wrk/fast/obj/SAPDB/Interfaces/doc/SQLDBC_Architecture.gif
> > >
> > > (perl $OWN/tool/bin/genSQLDBCdoc.pl --with-floss --dir=
> > > $OWN/usr/sdk/sqldbc/doc/html):
> > > targetversion: fast
> > > !(perl $OWN/tool/bin/genSQLDBCdoc.pl --with-floss --dir=
> > > $OWN/usr/sdk/sqldbc/doc/html)
> > > /bin/sh -c \
> > > (perl $OWN/tool/bin/genSQLDBCdoc.pl --with-floss --dir=
> > > $OWN/usr/sdk/sqldbc/doc/html)
> > > ERROR: Could not found doxygen
> > > COMMAND error 1
> > >
> > > Error -2 making '(perl $OWN/tool/bin/genSQLDBCdoc.pl
> > > --with-floss --dir=
> > > $OWN/usr/sdk/sqldbc/doc/html)'
> > > doc-FLOSS.mac:
> > > targetversion: fast
> > > 13-04-05 00:47:08 dependencies (HelloWorld-example.mac)
> > > 'doc-FLOSS.mac' not made because of dependency errors
> > >
> > > Error -2 making 'doc-FLOSS.mac'
> > > ....
> > >
> > > There is a doxygen version 1.4.1 installed on my system that is in the
> > > path.
> > > Im am using the following versions:
> > > build-tools: 533920
> > > gcc: 3.3.5-20050130
> > > perl: 5.8.5
> > >
> > > Does anyone have a clue what the error is (besides the grammatic one
> > > that the error message should be: "Could not find doxygen").
> > > Does the build depend on an installed version of doxygen or should it
> > > provide its own ? If yes - which version ?
> > >
> > > regards Mundi
> > >
> > > --
> > > Hermann Mundprecht <[EMAIL PROTECTED]>
> > >
> > >
> > > --
> > > MaxDB Discussion Mailing List
> > > For list archives: http://lists.mysql.com/maxdb
> > > To unsubscribe:
> > > http://lists.mysql.com/[EMAIL PROTECTED]
> > >
> > >
> >
>
>
--
Hermann Mundprecht <[EMAIL PROTECTED]>