Summary: | version bump: dev-java/saxon-9.1.0.2 | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Jiri Tyr <jiri.tyr> |
Component: | New packages | Assignee: | Java team <java> |
Status: | RESOLVED FIXED | ||
Severity: | enhancement | CC: | askwar, dotnet, flammie, h.mth, kim, manyac, mjinks, ralf, skandalfo |
Priority: | High | ||
Version: | 2005.1 | ||
Hardware: | x86 | ||
OS: | Linux | ||
URL: | https://overlays.gentoo.org/svn/proj/javajava-experimental | ||
Whiteboard: | 8.8 InOverlay | ||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | 183081 | ||
Bug Blocks: | 173129 | ||
Attachments: |
saxon-8.9.ebuild
build-8.9.xml VERY PRELIMINARY saxon9 ebuild Original saxon-b 9.1.0.7 build file Diff file called by the ebuild (attachment 198387) to prep the upstream build.xml |
Description
Jiri Tyr
2006-04-20 02:24:29 UTC
In the meanwhile saxon 8.8 is out. Could anybody please add the ebuild? I tested saxon 8.8 using some complicated xslt 1.0 templates and it works perfectly. It might also be useful to add a small script, named 'saxon', to the package that runs the saxon processor. Something like ' java -jar /path/to/saxon8.jar "$@" ' Seems to include .NET stuff so we should probably move this to dev-libs/ and use flag the .NET code. Added an initial ebuild to our experimental overlay https://overlays.gentoo.org/svn/proj/java/migrated-java-experimental-overlay/dev-java/saxon http://overlays.gentoo.org/proj/java/changeset/3398 *** Bug 173126 has been marked as a duplicate of this bug. *** By now, 8.9 is out. FWIW: The 8.8 ebuild can be found at https://overlays.gentoo.org/svn/proj/java/java-overlay/dev-java/saxon/ - the URL is wrong now. The build-8.8.xml file cannot be used to build 8.9. It fails with: Buildfile: build.xml init: [mkdir] Created dir: /Gentoo/Portage/build/portage/dev-java/saxon-8.9/work/build/META-INF/services [mkdir] Created dir: /Gentoo/Portage/build/portage/dev-java/saxon-8.9/work/dist [mkdir] Created dir: /Gentoo/Portage/build/portage/dev-java/saxon-8.9/work/dist/doc compile: [javac] Compiling 873 source files to /Gentoo/Portage/build/portage/dev-java/saxon-8.9/work/build [javac] /Gentoo/Portage/build/portage/dev-java/saxon-8.9/work/src/net/sf/saxon/Configuration.java:26: package net.sf.saxon.dotnet does not exist [javac] /*DOTNETONLY*/import net.sf.saxon.dotnet.DotNetPlatform; [javac] ^ [javac] /Gentoo/Portage/build/portage/dev-java/saxon-8.9/work/src/net/sf/saxon/Configuration.java:218: cannot find symbol [javac] symbol : variable DotNetPlatform [javac] location: class net.sf.saxon.Configuration [javac] /*DOTNETONLY*/ platform = DotNetPlatform.getInstance(); [javac] ^ [javac] /Gentoo/Portage/build/portage/dev-java/saxon-8.9/work/src/net/sf/saxon/ant/AntTransform.java:279: package com.saxonica does not exist [javac] factory = new com.saxonica.SchemaAwareTransformerFactory(); [javac] ^ [javac] Note: Some input files use or override a deprecated API. [javac] Note: Recompile with -Xlint:deprecation for details. [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 3 errors BUILD FAILED /Gentoo/Portage/build/portage/dev-java/saxon-8.9/work/build.xml:34: Compile failed; see the compiler error output for details. Total time: 8 seconds * * ERROR: dev-java/saxon-8.9 failed. * Call stack: * ebuild.sh, line 1648: Called dyn_compile * ebuild.sh, line 988: Called qa_call 'src_compile' * ebuild.sh, line 44: Called src_compile * ebuild.sh, line 1328: Called java-pkg-2_src_compile * java-pkg-2.eclass, line 84: Called eant 'jar' 'javadoc' '-f' 'build.xml' * java-utils-2.eclass, line 1894: Called die * * eant failed * If you need support, post the topmost build error, and the call stack if relevant. * A complete build log is located at '/Gentoo/Portage/logs/dev-java:saxon-8.9:20070725-123547.log'. * This ebuild is from an overlay: '/Gentoo/Portage/local-tree/misc/' * !!! When you file a bug report, please include the following information: GENTOO_VM=sun-jdk-1.6 CLASSPATH="" JAVA_HOME="/opt/sun-jdk-1.6.0.02" JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="javac" and of course, the output of emerge --info Created attachment 130953 [details]
saxon-8.9.ebuild
Modified 8.8 ebuild to properly build 8.9.
Created attachment 130954 [details]
build-8.9.xml
Modified 8.8 build.xml to properly build 8.9.
Hello everybody. I've just attached a set of hacked build.xml and ebuild that seem to properly install the thing. I made it depend on either jdk/jre 1.6 or jdk/jr1 1.5 + jsr173. I've just installed it on jdk 1.5. I also added the xquery launcher as requested in bug #183081. I hope you like it ;-) FWIW, the version 9 series started last year, and we're now at 9.0.0.3. What's in the repository was from 2005. Just FYI. version 9.x supports XSLT 2 which would be really nice to have in the tree Flameeyes told me that he needs it for docbook5. ... and OOo 3.0 ships saxon9. :) (In reply to comment #10) > version 9.x supports XSLT 2 which would be really nice to have in the tree Is there something preventing version 9 from being included? I know nothing about Saxon but I have a request from a user/project to provide support for version 9 on a Tomcat/Cocoon server. I guess I'll try cribbing from the latest 8x series ebuild I can find, and if I have any luck I'll post the results here. (In reply to comment #13) > I guess I'll try cribbing from the latest 8x series ebuild I can find, and if I > have any luck I'll post the results here. Ha, no luck. Looks like the sources got pretty extensively rearranged between 8 and 9, no shock that, and it's croaking when something called "javax.xml.xquery" doesn't exist. Portage doesn't know about anything with "javax" in its name, and I can't find build instructions on the Saxon web site, so I'm no help. Created attachment 198387 [details]
VERY PRELIMINARY saxon9 ebuild
Needs work! See comments below.
Created attachment 198389 [details]
Original saxon-b 9.1.0.7 build file
build.xml from the 9.1.0.7 tag of the SVN sources, not included in the downloadable tarball.
Created attachment 198392 [details, diff] Diff file called by the ebuild (attachment 198387 [details]) to prep the upstream build.xml As above, very hackish and very preliminary, do not use without looking carefully first. See comment below. Thank you, googlebrain: http://www.nabble.com/Compiling-saxon9.jar-for-OpenOffice.org-3-tt18334779.html#a18335082 Following Michael Kay's suggestion and with a lot of trial and error, I have saxonb 9.1.0.7 up to a "builds for me" state. I have not yet tried to use the results of the build, they may be worthless for all I know but having made it this far I thought I'd share. The build.xml file and associated diff are the result of following those instructions, and also tweaking here and there when things didn't build out of the box. Mostly that means the diff inserts a lot of comment characters to eliminate .NET stuff, and changes a few diretory paths in the META section, but in some cases there are functional changes, for example making the "jar-bj" target depend on "create-meta-inf". The ebuild still needs cleanup work. Lots of literal paths and a literal URI which shouldn't be used as-is. The literal source URI arises from a bigger problem, which is that the downloadable source package available at SourceForge doesn't appear to include the javax/xml tree, which is needed to build XQuery support. To get around that, I made my own source archive from the contents of the released sources and the javax tree from the 9.1.0.7 tag in the SVN sources. I'm not sure how to go about fixing this "for real" and I don't think it's a very good idea to have people downloading the saxon sources from my little ftp server, even on the off chance that this does work... ;) One may do an ebuild based on fedora build scripts located here: http://cvs.fedoraproject.org/viewvc/rpms/saxon/devel/ build steps: saxon.spec build.xml: saxon.build.script ... check others AFAIS these two are not necessary: - saxon-resources9-2-0-2.zip - saxon-9.2.0.2-9.2.0.3.patch I would just stick with latest Saxon-HE 9.2.0.x source, i.e.: http://sourceforge.net/projects/saxon/files/Saxon-HE/9.2/saxonhe9-2-0-6source.zip And finally a note here: I added version 9.2 to java-overlay. There are two minor bugs to fix I do not know how. :) See: https://overlays.gentoo.org/proj/java/changeset/8119 Someone may update summary and keywords, thanks! I fixed the external javadoc issue. The package.env:DEPEND issue is still open. Anyone? :) JFYI, the duplicates issue with package.env is fixed by http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/java-utils-2.eclass?r1=1.132&r2=1.133 thanks Betelgeuse! 9.2.0.6 in tree, thanks everyone! |