Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 130568 - version bump: dev-java/saxon-
Summary: version bump: dev-java/saxon-
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High enhancement (vote)
Assignee: Java team
Whiteboard: 8.8 InOverlay
: 173126 (view as bug list)
Depends on: 183081
Blocks: 173129
  Show dependency tree
Reported: 2006-04-20 02:24 UTC by Jiri Tyr
Modified: 2010-03-28 17:38 UTC (History)
9 users (show)

See Also:
Package list:
Runtime testing required: ---

saxon-8.9.ebuild (saxon-8.9.ebuild,1.79 KB, text/plain)
2007-09-14 22:06 UTC, Juan J. García de Soria
build-8.9.xml (build-8.9.xml,4.10 KB, text/plain)
2007-09-14 22:07 UTC, Juan J. García de Soria
VERY PRELIMINARY saxon9 ebuild (saxonb-,2.13 KB, text/plain)
2009-07-18 08:27 UTC, Michael Jinks
Original saxon-b build file (build-,48.00 KB, application/xml)
2009-07-18 08:30 UTC, Michael Jinks
Diff file called by the ebuild (attachment 198387) to prep the upstream build.xml (gentoo-build.xml.diff,16.26 KB, patch)
2009-07-18 08:32 UTC, Michael Jinks
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jiri Tyr 2006-04-20 02:24:29 UTC
Can you make saxon-8.7.1 ebuild and add it to the portage tree? Thank you.
Comment 1 Maik Nijhuis 2006-11-15 05:58:05 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 "$@" '

Comment 2 Petteri Räty (RETIRED) gentoo-dev 2006-12-20 11:59:53 UTC
Seems to include .NET stuff so we should probably move this to dev-libs/ and use flag the .NET code.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2006-12-20 14:13:47 UTC
Added an initial ebuild to our experimental overlay
Comment 4 Raúl Porcel (RETIRED) gentoo-dev 2007-04-02 13:02:33 UTC
*** Bug 173126 has been marked as a duplicate of this bug. ***
Comment 5 Alexander Skwar 2007-07-25 12:37:47 UTC
By now, 8.9 is out. 

FWIW: The 8.8 ebuild can be found at - the URL is wrong now.

The build-8.8.xml file cannot be used to build 8.9. It fails with:

Buildfile: build.xml

    [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/ 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/ 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/ 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

/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:
 *, line 1648:   Called dyn_compile
 *, line 988:   Called qa_call 'src_compile'
 *, line 44:   Called src_compile
 *, 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-"
JAVACFLAGS="-source 1.6 -target 1.6" COMPILER="javac"
and of course, the output of emerge --info
Comment 6 Juan J. García de Soria 2007-09-14 22:06:53 UTC
Created attachment 130953 [details]

Modified 8.8 ebuild to properly build 8.9.
Comment 7 Juan J. García de Soria 2007-09-14 22:07:57 UTC
Created attachment 130954 [details]

Modified 8.8 build.xml to properly build 8.9.
Comment 8 Juan J. García de Soria 2007-09-14 22:11:26 UTC
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 ;-)
Comment 9 R Stephan 2008-01-28 10:26:22 UTC
FWIW, the version 9 series started last year, and we're now at
What's in the repository was from 2005. Just FYI.
Comment 10 Martin Gysel (bearsh) 2008-03-07 09:11:10 UTC
version 9.x supports XSLT 2 which would be really nice to have in the tree
Comment 11 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-09-22 13:09:37 UTC
Flameeyes told me that he needs it for docbook5.
Comment 12 Hanno Zysik (geki) 2008-11-08 11:14:39 UTC
... and OOo 3.0 ships saxon9. :)
Comment 13 Michael Jinks 2009-07-17 02:46:01 UTC
(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.
Comment 14 Michael Jinks 2009-07-17 04:21:38 UTC
(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.
Comment 15 Michael Jinks 2009-07-18 08:27:57 UTC
Created attachment 198387 [details]
VERY PRELIMINARY saxon9 ebuild

Needs work!  See comments below.
Comment 16 Michael Jinks 2009-07-18 08:30:13 UTC
Created attachment 198389 [details]
Original saxon-b build file

build.xml from the tag of the SVN sources, not included in the downloadable tarball.
Comment 17 Michael Jinks 2009-07-18 08:32:59 UTC
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.
Comment 18 Michael Jinks 2009-07-18 08:52:12 UTC
Thank you, googlebrain:

Following Michael Kay's suggestion and with a lot of trial and error, I have saxonb 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 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... ;)
Comment 19 Hanno Zysik (geki) 2010-03-10 17:34:29 UTC
One may do an ebuild based on fedora build scripts located here:

build steps: saxon.spec
... check others

AFAIS these two are not necessary:
- saxon-

I would just stick with latest Saxon-HE 9.2.0.x source, i.e.:
Comment 20 Hanno Zysik (geki) 2010-03-11 18:06:05 UTC
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!
Comment 21 Hanno Zysik (geki) 2010-03-23 22:11:13 UTC
I fixed the external javadoc issue. The package.env:DEPEND issue is still open. Anyone? :)
Comment 22 Hanno Zysik (geki) 2010-03-24 18:56:41 UTC
JFYI, the duplicates issue with package.env is fixed by

thanks Betelgeuse!
Comment 23 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2010-03-28 17:38:48 UTC in tree, thanks everyone!