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

Bug 109531

Summary: Fix for classpath assumptions made by jboss-3.2.5 ebuild
Product: Gentoo Linux Reporter: Dave Nebinger <dnebinger>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED NEEDINFO    
Severity: normal CC: dnebinger
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: jboss-3.2.5-r1.ebuild

Description Dave Nebinger 2005-10-16 21:33:32 UTC
Attached find what I refer to as jboss-3.2.5-r1.ebuild.

The jboss-3.2.5.ebuild currently in portage makes some assumptions about
classpath settings and jar file availabilities, but there is nothing within the
ebuild that says "Hey, add these to your classpath before you emerge jboss".

The attached ebuild file tries (for the most part) to stick with java-config to
pull in the required classpath stuff to get jboss 3.2.5 to compile.  The
exception is the necessary j2ee.jar file...  Without a better source, I added
sun-j2ee as a dependency to pull it in (perhaps there's better choices, but I'll
leave that up to the maintainers to decide).
Comment 1 Dave Nebinger 2005-10-16 21:35:00 UTC
Created attachment 70825 [details]
jboss-3.2.5-r1.ebuild
Comment 2 Josh Nichols (RETIRED) gentoo-dev 2005-12-10 23:18:29 UTC
In the future, please submit patches against existing ebuilds instead of   
attaching the whole ebuild. This makes it easier to see what was   
changed/deleted/removed.   
   
Could you please include the logs of the errors you get when trying to build? I   
suspect that something else may be skewed, but it is hard to say without logs.  
   
The way you're tweaking the CLASSPATH seems a bit misguided to me: 
* First of all, you  would need to DEPEND/RDEPEND on the packages you will be 
calling java-config -p  on, to make sure they are available. 
* Second, there are helper functions in  java-pkg to handle this instead of 
directly calling java-config:  java-pkg_getjars is what you want in this case. 
* Thirdly, you should not need to include j2ee.jar from sun-j2ee.... JBoss 
builds its own copy of j2ee.jar.