Re: Docs build failure

2018-02-20 Thread Derek Atkins
Geert Janssens  writes:

> I think @CMAKE_SOURCE_DIR@ would have worked just fine as well. cmake's 
> configure_file command works with both formats. I don't know why John chose 
> the shell-like variable notation.
>
> But yes, the changes were necessary to get configure_file to work. It would 
> not work with the @-...-@ notation.
>
> You can probably use
> sed -es/'${CMAKE_SOURCE_DIR}'/${top_srcdir}/g
>
> The single quotes around ${CMAKE_SOURCE_DIR} will prevent bash from expanding 
> it on the spot. bash will still remove them so sed will see
> -es/${CMAKE_SOURCE_DIR}//g

I did this and it appears to be working now.

> Geert

-derek

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   warl...@mit.eduPGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure

2018-02-16 Thread Geert Janssens
Op vrijdag 16 februari 2018 17:56:12 CET schreef Derek Atkins:
> Hi,
> 
> I finally fixed the docs build to properly build doxygen.cfg now that
> the Makefile.am is gone in master, but then last night (the first run
> since I made the fix) I get this error:
> 
> warning: tag INCLUDE_PATH: include path
> `${CMAKE_SOURCE_DIR}/libgnucash/engine/' does not exist
> warning: tag INPUT: input source `${CMAKE_SOURCE_DIR}/libgnucash' does not
> exist warning: tag INPUT: input source `${CMAKE_SOURCE_DIR}/gnucash' does
> not exist warning: tag INPUT: input source `${CMAKE_SOURCE_DIR}/common'
> does not exist warning: tag INPUT: input source
> `${CMAKE_SOURCE_DIR}/bindings' does not exist warning: tag INPUT: input
> source
> `${CMAKE_SOURCE_DIR}/libgnucash/engine/' does not exist
> 
> Looking more closely, it looks like the version variable was changed
> from @-VERSION-@ to @VERSION@, but it also looks like doxygen.cfg uses
> CMAKE_SOURCE_DIR, but I don't see any way to set that:
> 
> # grep -i CMAKE doxygen.cfg.in
> INPUT  = ${CMAKE_SOURCE_DIR}/libgnucash \
>  ${CMAKE_SOURCE_DIR}/gnucash \
>  ${CMAKE_SOURCE_DIR}/common \
>  ${CMAKE_SOURCE_DIR}/bindings \
>  ${CMAKE_SOURCE_DIR}/libgnucash/engine/
> INCLUDE_PATH   = ${CMAKE_SOURCE_DIR}/libgnucash/engine/
> #
> 
> So what's the "correct" way to do this now?  I suppose I can just change
> my sed command from s:@-top_srcdir-@:${top_srcdir}:g to
> s:\${CMAKE_SOURCE_DIR}:${top_srcdir}:g
> 
> I just need to determine how to properly quote it..
> 
> Were these changes necessary?
> 
I think @CMAKE_SOURCE_DIR@ would have worked just fine as well. cmake's 
configure_file command works with both formats. I don't know why John chose 
the shell-like variable notation.

But yes, the changes were necessary to get configure_file to work. It would 
not work with the @-...-@ notation.

You can probably use
sed -es/'${CMAKE_SOURCE_DIR}'/${top_srcdir}/g

The single quotes around ${CMAKE_SOURCE_DIR} will prevent bash from expanding 
it on the spot. bash will still remove them so sed will see
-es/${CMAKE_SOURCE_DIR}//g

Geert


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Docs build failure

2018-02-16 Thread Derek Atkins
Hi,

I finally fixed the docs build to properly build doxygen.cfg now that
the Makefile.am is gone in master, but then last night (the first run
since I made the fix) I get this error:

warning: tag INCLUDE_PATH: include path
`${CMAKE_SOURCE_DIR}/libgnucash/engine/' does not exist
warning: tag INPUT: input source `${CMAKE_SOURCE_DIR}/libgnucash' does not exist
warning: tag INPUT: input source `${CMAKE_SOURCE_DIR}/gnucash' does not exist
warning: tag INPUT: input source `${CMAKE_SOURCE_DIR}/common' does not exist
warning: tag INPUT: input source `${CMAKE_SOURCE_DIR}/bindings' does not exist
warning: tag INPUT: input source
`${CMAKE_SOURCE_DIR}/libgnucash/engine/' does not exist

Looking more closely, it looks like the version variable was changed
from @-VERSION-@ to @VERSION@, but it also looks like doxygen.cfg uses
CMAKE_SOURCE_DIR, but I don't see any way to set that:

# grep -i CMAKE doxygen.cfg.in 
INPUT  = ${CMAKE_SOURCE_DIR}/libgnucash \
 ${CMAKE_SOURCE_DIR}/gnucash \
 ${CMAKE_SOURCE_DIR}/common \
 ${CMAKE_SOURCE_DIR}/bindings \
 ${CMAKE_SOURCE_DIR}/libgnucash/engine/
INCLUDE_PATH   = ${CMAKE_SOURCE_DIR}/libgnucash/engine/
#

So what's the "correct" way to do this now?  I suppose I can just change
my sed command from s:@-top_srcdir-@:${top_srcdir}:g to
s:\${CMAKE_SOURCE_DIR}:${top_srcdir}:g

I just need to determine how to properly quote it..

Were these changes necessary?

-derek

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   warl...@mit.eduPGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


gnucash-docs build failure

2016-12-12 Thread Derek Atkins
Hi,
The gnucash-docs build has failed the past two nights.
Here's the current error

-derek

make[2]: Entering directory `/home/gnucash-docs/gnucash-docs/guide/it'
/bin/sh /home/gnucash-docs/gnucash-docs/install-sh -d "gnucash-guide"; \
for file in gnucash-guide.xml; do \
/usr/bin/xsltproc   \
  -o "gnucash-guide/" \
  --param use.id.as.filename "1" \
  --stringparam chunker.output.encoding UTF-8  \
  "../../xsl/general-customization.xsl" "./$file"; \
done
./gnucash-guide.xml:7614: element screenshot: validity error : ID 
tool-lotsInAcct already defined
  
  ^
./gnucash-guide.xml:7634: parser error : Opening and ending tag mismatch: sect2 
line 7587 and sect1
  
  ^
./gnucash-guide.xml:7845: parser error : Opening and ending tag mismatch: 
listitem line 7838 and itemizedlist
  
 ^
./gnucash-guide.xml:7878: parser error : Opening and ending tag mismatch: 
orderedlist line 7815 and listitem
  
 ^
./gnucash-guide.xml:7888: parser error : Opening and ending tag mismatch: sect3 
line 7808 and orderedlist

  ^
./gnucash-guide.xml:7889: parser error : Opening and ending tag mismatch: sect1 
line 7636 and sect3
  
  ^
./gnucash-guide.xml:8074: parser error : Opening and ending tag mismatch: 
orderedlist line 8065 and itemizedlist
  
 ^
./gnucash-guide.xml:8122: parser error : Opening and ending tag mismatch: sect3 
line 8058 and orderedlist

  ^
./gnucash-guide.xml:8123: parser error : Opening and ending tag mismatch: sect1 
line 7546 and sect3
  
  ^
./gnucash-guide.xml:8877: parser error : Opening and ending tag mismatch: 
chapter line 8866 and mediaobject

  ^
./gnucash-guide.xml:8878: parser error : Opening and ending tag mismatch: 
listitem line 8232 and screenshot
  
   ^
./gnucash-guide.xml:8879: parser error : Opening and ending tag mismatch: 
orderedlist line 8160 and figure

 ^
./gnucash-guide.xml:: parser error : Opening and ending tag mismatch: sect3 
line 8125 and listitem
  
 ^
./gnucash-guide.xml:8894: parser error : Opening and ending tag mismatch: 
chapter line 5214 and orderedlist

  ^
./gnucash-guide.xml:8895: parser error : Opening and ending tag mismatch: part 
line 3388 and sect3
  
  ^
./gnucash-guide.xml:9023: parser error : Opening and ending tag mismatch: sect3 
line 8897 and sect1
  
  ^
./gnucash-guide.xml:9080: parser error : Opening and ending tag mismatch: book 
line 78 and sect2

^
./gnucash-guide.xml:9081: parser error : Extra content at the end of the 
document
  
  ^
unable to parse ./gnucash-guide.xml
make[2]: *** [convert-html] Error 6
make[2]: Leaving directory `/home/gnucash-docs/gnucash-docs/guide/it'
make[1]: *** [html-recursive] Error 1
make[1]: Leaving directory `/home/gnucash-docs/gnucash-docs/guide'
make: *** [html-recursive] Error 1

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   warl...@mit.eduPGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build (was: Re: Docs build failure: jp-html)

2011-09-06 Thread Christian Stimming

Zitat von Geert Janssens janssens-ge...@telenet.be:

Which means that the pdf target has not rebuilt since Jul 2.  However, the
build rule *is*:

make html pdf


Are you sure there have been any changes to the source files since Jul 2 ? I
don't see a need to rebuild the pdf is its sources are unchanged.

(Looking at the rules now...)

It seems the images are not marked as dependencies of the pdf files. So if an
images is changed, this will not trigger a rebuild. Perhaps we  
should list the images as dependencies to fix this ?


We could, but you can easily imagine the follow-up problem with this:  
As soon as any editor changes a filename of an image or removes one,  
he/she will surely forget to adapt those makefile dependency rules,  
causing another break of build... but maybe that's not a problem and  
it is probably a good idea to add the images as dependencies.


Regards,

Christian

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build (was: Re: Docs build failure: jp-html)

2011-09-05 Thread Derek Atkins
Hi,

On Sun, September 4, 2011 3:56 pm, Cristian Marchi wrote:
 Is there a way for me to see if the nightly doc builds work? can you cc
 me the nightly build so that I can check if all went right?

Um, I don't know.  Right now it's run out of cron and the mail-on-failure
comes directly to me.  I'd have to figure out how to email to someone
else.  However there have been no failures for the past few nights.

 Last question: looking in the docs build tree [1] I see that pdf files
 are old. With what frequency the pdf and html files are generated?

Hmm, they should be generated every night.  However it looks like the pdf
does not get rebuilt.  Maybe the dependencies are wrong such that if the
pdf exists it wont rebuild?  Looking at the docs build dir I see:

[root@code trunk]# ls -l guide/C/gnucash-guide.pdf
-rw-r--r--. 1 root root 7701032 Jul  2 03:20 guide/C/gnucash-guide.pdf

Which means that the pdf target has not rebuilt since Jul 2.  However, the
build rule *is*:

make html pdf

I'm going to change that to add epub in a minute.  Note that epub has the
same problem.  Even with make epub it will not rebuild over an existing
gnucash-guide.epub.  At least that's true for everything except jp_JP. 
However the pdf rule will not rebuild the pdf if it exists.


 Thanks
 Cristian

-derek


 [1] http://code.gnucash.org/docs/

 Il 25/08/2011 18:32, Derek Atkins ha scritto:
 Thanks.  It works now.
 -derek

 PS: I get nightly mail about the cron job failure.  I just haven't
 looked
 into it in a while..

 On Thu, August 25, 2011 12:17 pm, Cristian Marchi wrote:
 It should be fixed now. I forgot to add the xml files for chapter 16
 and
 17.
 Thanks for noticing this problem.

 Cristian

 Il 25/08/2011 17:48, Derek Atkins ha scritto:
 There is a bug in the docs build:

 make[2]: Entering directory
 `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'
 /bin/sh /home/gnucash/gnucash-docs/trunk/install-sh -d
 gnucash-guide;
 \
 for file in gnucash-guide.xml; do \
xsltproc -o gnucash-guide/ --param use.id.as.filename 1 \
  --stringparam chunker.output.encoding
 UTF-8
 \
../../xsl/general-customization.xsl ./$file; \
 done
 warning: failed to load external entity ch_oth_assets.xml
 ./gnucash-guide.xml:340: parser error : Failure to process entity
 chapter16
 chapter16;
  ^
 ./gnucash-guide.xml:340: parser error : Entity 'chapter16' not defined
 chapter16;
  ^
 warning: failed to load external entity ch_python_bindings.xml
 ./gnucash-guide.xml:341: parser error : Failure to process entity
 chapter17
 chapter17;
  ^
 ./gnucash-guide.xml:341: parser error : Entity 'chapter17' not defined
 chapter17;
  ^
 unable to parse ./gnucash-guide.xml
 make[2]: *** [convert-html] Error 6
 make[2]: Leaving directory
 `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'

 -derek

 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel





-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build (was: Re: Docs build failure: jp-html)

2011-09-05 Thread Geert Janssens
On maandag 5 september 2011, Derek Atkins wrote:
 Hi,
 
 On Sun, September 4, 2011 3:56 pm, Cristian Marchi wrote:
  Is there a way for me to see if the nightly doc builds work? can you cc
  me the nightly build so that I can check if all went right?
 
 Um, I don't know.  Right now it's run out of cron and the mail-on-failure
 comes directly to me.  I'd have to figure out how to email to someone
 else.  However there have been no failures for the past few nights.
 
  Last question: looking in the docs build tree [1] I see that pdf files
  are old. With what frequency the pdf and html files are generated?
 
 Hmm, they should be generated every night.  However it looks like the pdf
 does not get rebuilt.  Maybe the dependencies are wrong such that if the
 pdf exists it wont rebuild?  Looking at the docs build dir I see:
 
 [root@code trunk]# ls -l guide/C/gnucash-guide.pdf
 -rw-r--r--. 1 root root 7701032 Jul  2 03:20 guide/C/gnucash-guide.pdf
 
 Which means that the pdf target has not rebuilt since Jul 2.  However, the
 build rule *is*:
 
 make html pdf
 
Are you sure there have been any changes to the source files since Jul 2 ? I 
don't see a need to rebuild the pdf is its sources are unchanged.

(Looking at the rules now...)

It seems the images are not marked as dependencies of the pdf files. So if an 
images is changed, this will not trigger a rebuild. Perhaps we should list the 
images as dependencies to fix this ?

Geert
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Docs build (was: Re: Docs build failure: jp-html)

2011-09-04 Thread Cristian Marchi
Is there a way for me to see if the nightly doc builds work? can you cc 
me the nightly build so that I can check if all went right?


Last question: looking in the docs build tree [1] I see that pdf files 
are old. With what frequency the pdf and html files are generated?


Thanks
Cristian

[1] http://code.gnucash.org/docs/

Il 25/08/2011 18:32, Derek Atkins ha scritto:

Thanks.  It works now.
-derek

PS: I get nightly mail about the cron job failure.  I just haven't looked
into it in a while..

On Thu, August 25, 2011 12:17 pm, Cristian Marchi wrote:

It should be fixed now. I forgot to add the xml files for chapter 16 and
17.
Thanks for noticing this problem.

Cristian

Il 25/08/2011 17:48, Derek Atkins ha scritto:

There is a bug in the docs build:

make[2]: Entering directory
`/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'
/bin/sh /home/gnucash/gnucash-docs/trunk/install-sh -d gnucash-guide;
\
for file in gnucash-guide.xml; do \
   xsltproc -o gnucash-guide/ --param use.id.as.filename 1 \
 --stringparam chunker.output.encoding UTF-8
\
   ../../xsl/general-customization.xsl ./$file; \
done
warning: failed to load external entity ch_oth_assets.xml
./gnucash-guide.xml:340: parser error : Failure to process entity
chapter16
chapter16;
 ^
./gnucash-guide.xml:340: parser error : Entity 'chapter16' not defined
chapter16;
 ^
warning: failed to load external entity ch_python_bindings.xml
./gnucash-guide.xml:341: parser error : Failure to process entity
chapter17
chapter17;
 ^
./gnucash-guide.xml:341: parser error : Entity 'chapter17' not defined
chapter17;
 ^
unable to parse ./gnucash-guide.xml
make[2]: *** [convert-html] Error 6
make[2]: Leaving directory
`/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'

-derek


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel




___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Docs build failure: jp-html

2011-08-25 Thread Derek Atkins
There is a bug in the docs build:

make[2]: Entering directory `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'
/bin/sh /home/gnucash/gnucash-docs/trunk/install-sh -d gnucash-guide; \
for file in gnucash-guide.xml; do \
 xsltproc -o gnucash-guide/ --param use.id.as.filename 1 \
   --stringparam chunker.output.encoding UTF-8  \
 ../../xsl/general-customization.xsl ./$file; \
done
warning: failed to load external entity ch_oth_assets.xml
./gnucash-guide.xml:340: parser error : Failure to process entity chapter16
chapter16;
   ^
./gnucash-guide.xml:340: parser error : Entity 'chapter16' not defined
chapter16;
   ^
warning: failed to load external entity ch_python_bindings.xml
./gnucash-guide.xml:341: parser error : Failure to process entity chapter17
chapter17;
   ^
./gnucash-guide.xml:341: parser error : Entity 'chapter17' not defined
chapter17;
   ^
unable to parse ./gnucash-guide.xml
make[2]: *** [convert-html] Error 6
make[2]: Leaving directory `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'

-derek

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   warl...@mit.eduPGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure: jp-html

2011-08-25 Thread Cristian Marchi

It should be fixed now. I forgot to add the xml files for chapter 16 and 17.
Thanks for noticing this problem.

Cristian

Il 25/08/2011 17:48, Derek Atkins ha scritto:

There is a bug in the docs build:

make[2]: Entering directory `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'
/bin/sh /home/gnucash/gnucash-docs/trunk/install-sh -d gnucash-guide; \
for file in gnucash-guide.xml; do \
  xsltproc -o gnucash-guide/ --param use.id.as.filename 1 \
--stringparam chunker.output.encoding UTF-8  \
  ../../xsl/general-customization.xsl ./$file; \
done
warning: failed to load external entity ch_oth_assets.xml
./gnucash-guide.xml:340: parser error : Failure to process entity chapter16
chapter16;
^
./gnucash-guide.xml:340: parser error : Entity 'chapter16' not defined
chapter16;
^
warning: failed to load external entity ch_python_bindings.xml
./gnucash-guide.xml:341: parser error : Failure to process entity chapter17
chapter17;
^
./gnucash-guide.xml:341: parser error : Entity 'chapter17' not defined
chapter17;
^
unable to parse ./gnucash-guide.xml
make[2]: *** [convert-html] Error 6
make[2]: Leaving directory `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'

-derek


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure: jp-html

2011-08-25 Thread Derek Atkins
Thanks.  It works now.
-derek

PS: I get nightly mail about the cron job failure.  I just haven't looked
into it in a while..

On Thu, August 25, 2011 12:17 pm, Cristian Marchi wrote:
 It should be fixed now. I forgot to add the xml files for chapter 16 and
 17.
 Thanks for noticing this problem.

 Cristian

 Il 25/08/2011 17:48, Derek Atkins ha scritto:
 There is a bug in the docs build:

 make[2]: Entering directory
 `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'
 /bin/sh /home/gnucash/gnucash-docs/trunk/install-sh -d gnucash-guide;
 \
 for file in gnucash-guide.xml; do \
   xsltproc -o gnucash-guide/ --param use.id.as.filename 1 \
 --stringparam chunker.output.encoding UTF-8
 \
   ../../xsl/general-customization.xsl ./$file; \
 done
 warning: failed to load external entity ch_oth_assets.xml
 ./gnucash-guide.xml:340: parser error : Failure to process entity
 chapter16
 chapter16;
 ^
 ./gnucash-guide.xml:340: parser error : Entity 'chapter16' not defined
 chapter16;
 ^
 warning: failed to load external entity ch_python_bindings.xml
 ./gnucash-guide.xml:341: parser error : Failure to process entity
 chapter17
 chapter17;
 ^
 ./gnucash-guide.xml:341: parser error : Entity 'chapter17' not defined
 chapter17;
 ^
 unable to parse ./gnucash-guide.xml
 make[2]: *** [convert-html] Error 6
 make[2]: Leaving directory
 `/u1/home/gnucash/gnucash-docs/trunk/guide/ja_JP'

 -derek

 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel



-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Docs build failure -- java failure building PDF?

2011-07-01 Thread Derek Atkins
Hi,

The docs build has been failing for a while.  I finally took the time to
play with it to find the error.  Maybe someone can help me debug this?

make[2]: Entering directory `/u1/home/gnucash/gnucash-docs/trunk/help/it_IT'
fop 'gnucash-help.fo' 'gnucash-help.pdf'
Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/avalon/framework/configuration/ConfigurationException
at org.apache.fop.apps.FopFactory.init(FopFactory.java:150)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166)
at 
org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:102)
at org.apache.fop.cli.Main.startFOP(Main.java:153)
at org.apache.fop.cli.Main.main(Main.java:196)
Caused by: java.lang.ClassNotFoundException: 
org.apache.avalon.framework.configuration.ConfigurationException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 5 more
make[2]: *** [gnucash-help.pdf] Error 1
make[2]: Leaving directory `/u1/home/gnucash/gnucash-docs/trunk/help/it_IT'

-derek

-- 
   Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
   Member, MIT Student Information Processing Board  (SIPB)
   URL: http://web.mit.edu/warlord/PP-ASEL-IA N1NWH
   warl...@mit.eduPGP key available
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure -- java failure building PDF?

2011-07-01 Thread Cristian Marchi
Does this error comes from 2.2 docs? I've just updated the trunk version 
of docs and can't reproduce the problem.


Il 01/07/2011 18:21, Derek Atkins ha scritto:

Hi,

The docs build has been failing for a while.  I finally took the time to
play with it to find the error.  Maybe someone can help me debug this?

make[2]: Entering directory `/u1/home/gnucash/gnucash-docs/trunk/help/it_IT'
fop 'gnucash-help.fo' 'gnucash-help.pdf'
Exception in thread main java.lang.NoClassDefFoundError: 
org/apache/avalon/framework/configuration/ConfigurationException
at org.apache.fop.apps.FopFactory.init(FopFactory.java:150)
at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166)
at 
org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:102)
at org.apache.fop.cli.Main.startFOP(Main.java:153)
at org.apache.fop.cli.Main.main(Main.java:196)
Caused by: java.lang.ClassNotFoundException: 
org.apache.avalon.framework.configuration.ConfigurationException
at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
... 5 more
make[2]: *** [gnucash-help.pdf] Error 1
make[2]: Leaving directory `/u1/home/gnucash/gnucash-docs/trunk/help/it_IT'

-derek


___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure -- java failure building PDF?

2011-07-01 Thread Derek Atkins
It shouldn't.  It comes from:

[root@code trunk]# svn info
Path: .
URL: file:///home/svn/repo/gnucash-docs/trunk
Repository Root: file:///home/svn/repo
Repository UUID: 57a11ea4-9604-0410-9ed3-97b8803252fd
Revision: 20811
Node Kind: directory
Schedule: normal
Last Changed Author: cmarchi
Last Changed Rev: 20795
Last Changed Date: 2011-06-21 15:25:09 -0400 (Tue, 21 Jun 2011)

Note that I did recently upgrade the server from F10 to F15, so it COULD
be something from that.  HOWEVER I don't think so -- I think the failures
started after the upgrade.

-derek

On Fri, July 1, 2011 12:38 pm, Cristian Marchi wrote:
 Does this error comes from 2.2 docs? I've just updated the trunk version
 of docs and can't reproduce the problem.

 Il 01/07/2011 18:21, Derek Atkins ha scritto:
 Hi,

 The docs build has been failing for a while.  I finally took the time to
 play with it to find the error.  Maybe someone can help me debug this?

 make[2]: Entering directory
 `/u1/home/gnucash/gnucash-docs/trunk/help/it_IT'
 fop 'gnucash-help.fo' 'gnucash-help.pdf'
 Exception in thread main java.lang.NoClassDefFoundError:
 org/apache/avalon/framework/configuration/ConfigurationException
  at org.apache.fop.apps.FopFactory.init(FopFactory.java:150)
  at org.apache.fop.apps.FopFactory.newInstance(FopFactory.java:166)
  at
 org.apache.fop.cli.CommandLineOptions.init(CommandLineOptions.java:102)
  at org.apache.fop.cli.Main.startFOP(Main.java:153)
  at org.apache.fop.cli.Main.main(Main.java:196)
 Caused by: java.lang.ClassNotFoundException:
 org.apache.avalon.framework.configuration.ConfigurationException
  at java.net.URLClassLoader$1.run(URLClassLoader.java:217)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
  ... 5 more
 make[2]: *** [gnucash-help.pdf] Error 1
 make[2]: Leaving directory
 `/u1/home/gnucash/gnucash-docs/trunk/help/it_IT'

 -derek

 ___
 gnucash-devel mailing list
 gnucash-devel@gnucash.org
 https://lists.gnucash.org/mailman/listinfo/gnucash-devel



-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure -- java failure building PDF?

2011-07-01 Thread Derek Atkins

On Fri, July 1, 2011 12:45 pm, Geert Janssens wrote:
 On vrijdag 1 juli 2011, Derek Atkins wrote:
 Caused by: java.lang.ClassNotFoundException:
 org.apache.avalon.framework.configuration.ConfigurationException

 Your installation seems to have a problem with the avalon framework.

 What distro are you using, and how did you install fop ?

Fedora 15 (upgraded from F10)
It was installed via RPM from the upgrade (I dont recall where I got the
original installation).  The current version of fop:

fop-0.95-5.fc14.noarch

 Geert

-derek

-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure -- java failure building PDF?

2011-07-01 Thread Geert Janssens
On vrijdag 1 juli 2011, Derek Atkins wrote:
 On Fri, July 1, 2011 12:45 pm, Geert Janssens wrote:
  On vrijdag 1 juli 2011, Derek Atkins wrote:
  Caused by: java.lang.ClassNotFoundException:
  org.apache.avalon.framework.configuration.ConfigurationException
  
  Your installation seems to have a problem with the avalon framework.
  
  What distro are you using, and how did you install fop ?
 
 Fedora 15 (upgraded from F10)
 It was installed via RPM from the upgrade (I dont recall where I got the
 original installation).  The current version of fop:
 
 fop-0.95-5.fc14.noarch
 
  Geert
 
 -derek
I'm using the same version on F14 and don't get the error. What version of 
avalon-framework do you have ?

Mine is 
avalon-framework-4.1.4-6.fc12.i686

Geert
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure -- java failure building PDF?

2011-07-01 Thread Derek Atkins

On Fri, July 1, 2011 12:54 pm, Geert Janssens wrote:
 On vrijdag 1 juli 2011, Derek Atkins wrote:
 On Fri, July 1, 2011 12:45 pm, Geert Janssens wrote:
  On vrijdag 1 juli 2011, Derek Atkins wrote:
  Caused by: java.lang.ClassNotFoundException:
  org.apache.avalon.framework.configuration.ConfigurationException
 
  Your installation seems to have a problem with the avalon framework.
 
  What distro are you using, and how did you install fop ?

 Fedora 15 (upgraded from F10)
 It was installed via RPM from the upgrade (I dont recall where I got the
 original installation).  The current version of fop:

 fop-0.95-5.fc14.noarch

  Geert

 -derek
 I'm using the same version on F14 and don't get the error. What version of
 avalon-framework do you have ?

 Mine is
 avalon-framework-4.1.4-6.fc12.i686


avalon-framework-4.3-3.fc15.noarch

 Geert

-derek

-- 
   Derek Atkins 617-623-3745
   de...@ihtfp.com www.ihtfp.com
   Computer and Internet Security Consultant

___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure -- java failure building PDF?

2011-07-01 Thread Geert Janssens
On vrijdag 1 juli 2011, Derek Atkins wrote:
 avalon-framework-4.3-3.fc15.noarch
 
  Geert
 
 -derek

Ok, a quick search with google shows that fop is broken on F15.

fop-0.95 doesn't work with avalon-framework-4.3.3 [1]. Fop 1.x has been fixed 
in the meantime to work with avalon-framework, but it has another critical bug 
that prevents the creation of pdf files [2].

The only workaround for now is to downgrade avalon-framework back to 4.1.x and 
use fop 0.95.

Geert

[1] https://bugzilla.redhat.com/show_bug.cgi?format=multipleid=704298
[2] https://bugzilla.redhat.com/show_bug.cgi?id=689930
___
gnucash-devel mailing list
gnucash-devel@gnucash.org
https://lists.gnucash.org/mailman/listinfo/gnucash-devel


Re: Docs build failure -- java failure building PDF?

2011-07-01 Thread Derek Atkins

On Fri, July 1, 2011 2:02 pm, Geert Janssens wrote:
 On vrijdag 1 juli 2011, Derek Atkins wrote:
 avalon-framework-4.3-3.fc15.noarch

  Geert

 -derek

 Ok, a quick search with google shows that fop is broken on F15.

 fop-0.95 doesn't work with avalon-framework-4.3.3 [1]. Fop 1.x has been
 fixed
 in the meantime to work with avalon-framework, but it has another critical
 bug
 that prevents the creation of pdf files [2].

 The only workaround for now is to downgrade avalon-framework back to 4.1.x
 and
 use fop 0.95.

 Geert

 [1] https://bugzilla.redhat.com/show_bug.cgi?format=multipleid=704298
 [2] https://bugzilla.redhat.com/show_bug.cgi?id=689930

Thanks for the reference.  #2 says that upgrading to fop-1.0-16 fixes the
problem, so I ran:

yum --enablerepo=rawhide update fop

And now the build succeeds.  There is still a crash in there, but it
generates a PDF.  I haven't looked to see what the PDF looks like. 
Tonight's build will put it online.

Some of the warnings look like:

WARNING: Line 1 of a paragraph overflows the available area by 2500
millipoints. (See position 251:266)
Jul 1, 2011 7:44:08 PM
org.apache.fop.image.loader.batik.PreloaderSVG$Loader getImage
WARNING: Batik not in class path
java.lang.NoClassDefFoundError: org/w3c/dom/svg/SVGDocument
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:634)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:277)
at java.net.URLClassLoader.access$000(URLClassLoader.java:73)
at java.net.URLClassLoader$1.run(URLClassLoader.java:212)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:205)
at java.lang.ClassLoader.loadClass(ClassLoader.java:321)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:294)
at java.lang.ClassLoader.loadClass(ClassLoader.java:266)
at
org.apache.batik.dom.svg.SVGDOMImplementation.createDocument(SVGDOMImplementation.java:149)
at
org.apache.batik.dom.util.SAXDocumentFactory.startElement(SAXDocumentFactory.java:615)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.startElement(AbstractSAXParser.java:504)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.scanStartElement(XMLNSDocumentScannerImpl.java:376)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl$NSContentDriver.scanRootElementHook(XMLNSDocumentScannerImpl.java:602)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl$FragmentContentDriver.next(XMLDocumentFragmentScannerImpl.java:3080)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(XMLDocumentScannerImpl.java:899)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(XMLDocumentScannerImpl.java:625)
at
com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(XMLNSDocumentScannerImpl.java:116)
at
com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(XMLDocumentFragmentScannerImpl.java:488)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:819)
at
com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(XML11Configuration.java:748)
at
com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(XMLParser.java:123)
at
com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(AbstractSAXParser.java:1208)
at
com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(SAXParserImpl.java:525)
at
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:431)
at
org.apache.batik.dom.util.SAXDocumentFactory.createDocument(SAXDocumentFactory.java:349)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createDocument(SAXSVGDocumentFactory.java:223)
at
org.apache.batik.dom.svg.SAXSVGDocumentFactory.createSVGDocument(SAXSVGDocumentFactory.java:135)
at
org.apache.fop.image.loader.batik.PreloaderSVG$Loader.getImage(PreloaderSVG.java:122)
at
org.apache.fop.image.loader.batik.PreloaderSVG$Loader.access$100(PreloaderSVG.java:105)
at
org.apache.fop.image.loader.batik.PreloaderSVG.preloadImage(PreloaderSVG.java:73)
at
org.apache.xmlgraphics.image.loader.ImageManager.preloadImage(ImageManager.java:175)
at
org.apache.xmlgraphics.image.loader.cache.ImageCache.needImageInfo(ImageCache.java:128)
at
org.apache.xmlgraphics.image.loader.ImageManager.getImageInfo(ImageManager.java:122)
at org.apache.fop.fo.flow.ExternalGraphic.bind(ExternalGraphic.java:81)
at org.apache.fop.fo.FObj.processNode(FObj.java:123)
at