[Refdb-devel] CVS build problem: doc build fails on debian because no batik-rasterizer script
Status: Beta
Brought to you by:
mhoenicka
From: David N. <dav...@sw...> - 2005-12-10 05:34:19
|
Hi Markus, When the wildcard problem is fixed, the refdb build fails on debian at document generation because there is no 'batik-rasterizer' script on debian systems: ------------------------------------------------------------------------------------------ make[2]: Entering directory `/home/david/data/computing/projects/refdb/packages/refdb/custom/pkg/debianise/source/refdb-0.0-cvs-20051210/doc' batik-rasterizer -m application/pdf refdbmanualfig1.svg make[2]: batik-rasterizer: Command not found make[2]: *** [refdbmanualfig1.pdf] Error 127 make[2]: Leaving directory `/home/david/data/computing/projects/refdb/packages/refdb/custom/pkg/debianise/source/refdb-0.0-cvs-20051210/doc' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/david/data/computing/projects/refdb/packages/refdb/custom/pkg/debianise/source/refdb-0.0-cvs-20051210' make: *** [build-stamp] Error 2 ------------------------------------------------------------------------------------------ I have the debian batik package (libbatik-java) installed and up-to-date but it does not include *any* scripts. I've tried running the rasterizer directly: ------------------------------------------------------------------------------------------ $ java -cp /usr/share/java/batik.jar:/usr/share/java/xerces.jar:/usr/share/java/js.jar org.apache.batik.apps.rasterizer.Main java.security.AccessControlException: permission not granted at java.security.AccessControlContext.checkPermission (AccessControlContext.java:122) at java.security.AccessController.checkPermission (AccessController.java:76) at java.lang.SecurityManager.checkPermission (SecurityManager.java:343) at java.lang.System.setProperty (System.java:396) at org.apache.batik.util.ApplicationSecurityEnforcer.installSecurityManager (Unknown Source) at org.apache.batik.util.ApplicationSecurityEnforcer.enforceSecurity (Unknown Source) at org.apache.batik.apps.rasterizer.Main.execute (Unknown Source) at org.apache.batik.apps.rasterizer.Main.main (Unknown Source) at java.lang.VirtualMachine.invokeMain (VirtualMachine.java) at java.lang.VirtualMachine.main (VirtualMachine.java:108) ------------------------------------------------------------------------------------------ but either I am invoking the wrong class or there is some environmental variable set incorrectly. The FreeBSD rasterizer script uses JPackage's java-utils to set variables and invoke the java rasterizer. The java-utils infrastructure is not available in debian so the method used by the BSD rasterizer script to invoke the rasterizer can't be adapted for use on the debian platform. As a temporary fix I've altered the /doc makefile to use ImageMagick's 'convert' utility which is able to convert SVG to PDF and PNG. This suite is available in BSD (port=ImageMagick) and contains the same utility called by the same name. Have you considered using 'convert' in the makefile instead of 'batik-rasterizer'? Regards, David. |