Following the new java policy, packages shouldn't rely on packed jars, dependencies need to be added on our own packages and used.
Ok.
The following list shows the jars that hibernate uses to biuld. root@mojo hibernate-2.1 # ls -l lib/ total 10064 -rw-r--r-- 1 root root 2070 Jun 2 22:15 README.txt -rw-r--r-- 1 root root 737884 Apr 26 09:57 ant-1.5.3.jar -rw-r--r-- 1 root root 671546 Apr 26 09:57 ant-optional-1.5.3.jar -rw-r--r-- 1 root root 2717 Apr 26 09:57 apache.license.txt -rw-r--r-- 1 root root 348666 Apr 26 09:57 c3p0-0.8.4.5.jar -rw-r--r-- 1 root root 26921 Apr 26 09:57 c3p0.license.txt -rw-r--r-- 1 root root 300056 Apr 26 09:57 cglib-full-2.0.1.jar -rw-r--r-- 1 root root 165119 Apr 26 09:57 commons-collections-2.1.jar -rw-r--r-- 1 root root 100776 Apr 26 09:57 commons-dbcp-1.1.jar -rw-r--r-- 1 root root 63980 Apr 26 09:57 commons-lang-1.0.1.jar -rw-r--r-- 1 root root 31605 Apr 26 09:57 commons-logging-1.0.3.jar -rw-r--r-- 1 root root 39523 Apr 26 09:57 commons-pool-1.1.jar -rw-r--r-- 1 root root 171071 Apr 26 09:57 concurrent-1.3.2.jar -rw-r--r-- 1 root root 17978 Apr 26 09:57 connector.jar -rw-r--r-- 1 root root 9790 Apr 26 09:57 connector.licence.txt -rw-r--r-- 1 root root 486522 Apr 26 09:57 dom4j-1.4.jar -rw-r--r-- 1 root root 42069 Apr 26 09:57 ehcache-0.7.jar -rw-r--r-- 1 root root 539731 Jun 2 22:15 hsqldb.jar -rw-r--r-- 1 root root 104359 Apr 26 09:57 jaas.jar -rw-r--r-- 1 root root 9863 Apr 26 09:57 jaas.licence.txt -rw-r--r-- 1 root root 156505 Apr 26 09:57 jboss-cache.jar -rw-r--r-- 1 root root 287213 Apr 26 09:57 jboss-common.jar -rw-r--r-- 1 root root 576871 Apr 26 09:57 jboss-jmx.jar -rw-r--r-- 1 root root 170923 Apr 26 09:57 jboss-system.jar -rw-r--r-- 1 root root 293789 Apr 26 09:57 jcs-1.0-dev.jar -rw-r--r-- 1 root root 6727 Apr 26 09:57 jdbc2_0-stdext.jar -rw-r--r-- 1 root root 7932 Apr 26 09:57 jdbc2_0-stdext.licence.txt -rw-r--r-- 1 root root 1614796 Apr 26 09:57 jgroups-2.2.1.jar -rw-r--r-- 1 root root 8812 Apr 26 09:57 jta.jar -rw-r--r-- 1 root root 9830 Apr 26 09:57 jta.licence.txt -rw-r--r-- 1 root root 121070 Apr 26 09:57 junit-3.8.1.jar -rw-r--r-- 1 root root 352668 Apr 26 09:57 log4j-1.2.8.jar -rw-r--r-- 1 root root 13091 Apr 26 09:57 odmg-3.0.jar -rw-r--r-- 1 root root 110208 Apr 26 09:57 oscache-2.0.jar -rw-r--r-- 1 root root 475943 Apr 26 09:57 proxool-0.8.3.jar -rw-r--r-- 1 root root 30602 Apr 26 09:57 swarmcache-1.0rc2.jar -rw-r--r-- 1 root root 997276 Apr 26 09:57 xalan-2.4.0.jar -rw-r--r-- 1 root root 895813 Apr 26 09:57 xerces-2.4.0.jar -rw-r--r-- 1 root root 123705 Apr 26 09:57 xml-apis.jar Commons, xerces, xalan, log4j and junit can be used straight away.
Created attachment 40215 [details] revised ebuild This is a revised ebuild for hibernate 2.1.4 I have added building and installation of java-doc and begun the task of linking to installed jars. The following jars are done. # - commons-collections-2.1.jar # - commons-dbcp-1.1.jar # - commons-lang-1.0.1.jar # - commons-logging-1.0.3.jar # - commons-pool-1.1.jar # - junit-3.8.1.jar # - log4j-1.2.8.jar # - xalan-2.4.0.jar # - xerces-2.4.0.jar # - xml-apis.jar
After a bit of work, I have hopefully resolved all of the problems with packed JARs. I have added ebuilds for odmg, cglib, proxool, oscache, swarmcache, and connector (and related/required packages). I have added IUSE tags for some of the connection pooling and caching implementations. Hopefully that should cut down on some of the dependencies that need to be compiled. The following is a summary of all IUSE tags: * doc: standard documetation tag * jikes: build with jikes (not compatible with jboss tag and automatically disabled in such a case) * jboss: compile jboss caching support * swarmcache: compile swarmcache caching support * oscache: compile oscache caching support * jca: compile J2EE connector architecture support * proxool: compile proxool connection pooling support * dbcp: compile Jakarta DBCP pooling support * c3p0: compile c3p0 pooling support * junit: run unit tests (note that this require hsqldb)
Created attachment 41742 [details] Dan's hibernate ebuild
Created attachment 41906 [details] Dan's Hibernate ebuild (update) Fixing a small problem with the commons-logging dependency.
*hibernate-2.1.8 (11 Mar 2005) 11 Mar 2005; Lim Swee Tat <st_lim@gentoo.org> +hibernate-2.1.8.ebuild, +hibernate-3.0_rc1.ebuild: Added 2.1.8 and 3.0rc1