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

Bug 175054

Summary: java-maven-2.eclass
Product: Gentoo Linux Reporter: kiorky <kiorky>
Component: [OLD] JavaAssignee: Java team <java>
Status: CONFIRMED ---    
Severity: enhancement CC: dirk, gentoo, kiorky, opal
Priority: High Keywords: InOverlay
Version: unspecified   
Hardware: All   
OS: Linux   
URL: http://maven.apache.org
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 175034    

Description kiorky 2007-04-18 09:57:37 UTC
Use to simplify maven based ebuilds writing (java).

Added to java-experimental overlay.
Comment 1 Christian Heim (RETIRED) gentoo-dev 2007-04-18 10:08:15 UTC
Since maven is m-wanted, reassigning this too.
Comment 2 Andreas Sturmlechner gentoo-dev 2011-03-13 14:06:49 UTC
Hmm. Been a long time this was reported, but I'll add a comment anyway. ^^

There's an issue with the eclass caused by "source?" used in it without been defined as IUSE. Or else the ebuilds were not prepared for it.



!!! All ebuilds that could satisfy "dev-java/maven-base-poms" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/maven-base-poms-2.1::java-overlay (masked by: invalid: DEPEND: USE flag 'source' referenced in conditional 'source?' is not in IUSE)

(dependency required by "dev-java/maven-2.1-r2" [ebuild])
(dependency required by "maven" [argument])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 3 Dirk Tilger 2011-04-14 11:48:25 UTC
The problem from comment 2 is here:

DEPEND="source? ( app-arch/zip )
        ${JAVA_MAVEN_COMMON_DEPS}"

I've seen later down the eclass constructs like:
if hasq source ${IUSE} && use source; then

I'm not sure if that can be done or is acceptable in an eclass as well. If it doesn't, all these maven ebuilds would need to be modified to put source in their IUSE.