Can you make saxon-8.7.1 ebuild and add it to the portage tree? Thank you.
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
*** 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:
[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
[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] /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] /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] 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
/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]
Modified 8.8 ebuild to properly build 8.9.
Created attachment 130954 [details]
Modified 8.8 build.xml to properly build 8.9.
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 188.8.131.52.
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 184.108.40.206 build file
build.xml from the 220.127.116.11 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:
Following Michael Kay's suggestion and with a lot of trial and error, I have saxonb 18.104.22.168 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 22.214.171.124 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:
build steps: saxon.spec
... check others
AFAIS these two are not necessary:
I would just stick with latest Saxon-HE 9.2.0.x source, i.e.:
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. :)
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
126.96.36.199 in tree, thanks everyone!