Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 63288

Summary: dev-java/hibernate uses packed jars
Product: Gentoo Linux Reporter: Thomas Matthijs (RETIRED) <axxo>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: normal CC: gentoo-bugs, mwolfe
Priority: High    
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 63582, 67386, 67388, 67398, 67401, 67406, 67417, 67419    
Bug Blocks: 69972    
Attachments: revised ebuild
Dan's hibernate ebuild
Dan's Hibernate ebuild (update)

Description Thomas Matthijs (RETIRED) gentoo-dev 2004-09-08 08:25:41 UTC
Following the new java policy, packages shouldn't rely on packed jars, dependencies need to be added on our own packages and used.
Comment 1 Lim Swee Tat (RETIRED) gentoo-dev 2004-09-08 20:05:49 UTC
Ok.
Comment 2 Mark Wolfe 2004-09-23 03:32:29 UTC
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.
Comment 3 Mark Wolfe 2004-09-23 05:07:40 UTC
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
Comment 4 Daniel Solano Gómez 2004-10-13 10:19:56 UTC
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)
Comment 5 Daniel Solano Gómez 2004-10-13 10:21:46 UTC
Created attachment 41742 [details]
Dan's hibernate ebuild
Comment 6 Daniel Solano Gómez 2004-10-15 11:24:31 UTC
Created attachment 41906 [details]
Dan's Hibernate ebuild (update)

Fixing a small problem with the commons-logging dependency.
Comment 7 Jan Brinkmann (RETIRED) gentoo-dev 2005-03-11 09:38:47 UTC
*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