CVS build problem: doc build fails on debian because no batik-rasterizer script
David Nebauer <[email protected]>
| Newsgroups | gmane.text.refdb.devel |
|---|---|
| Message-ID | <[email protected]> |
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. ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click