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

Bug 141868

Summary: use ant_src_unpack instead of src_unpack for dev-java/lucene
Product: Gentoo Linux Reporter: Mikko Tiihonen <mikko.tiihonen>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED INVALID    
Severity: normal    
Priority: High    
Version: 2006.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: use ant_src_unpack and add new use flag examples

Description Mikko Tiihonen 2006-07-27 02:37:16 UTC
From http://www.gentoo.org/proj/en/java/java-devel.xml:

java-ant-2.eclass: The eclasse exports the src_unpack phase. If you need to override the default unpack, use ant_src_unpack and not src_unpack

Lucene-1.4.3-r2 uses java-ant-2 but overrides src_unpack.
Comment 1 Mikko Tiihonen 2006-07-27 02:38:09 UTC
Created attachment 92838 [details, diff]
use ant_src_unpack and add new use flag examples
Comment 2 Krzysztof Pawlik (RETIRED) gentoo-dev 2006-07-27 03:15:25 UTC
From java-ant-2.eclass:

# ------------------------------------------------------------------------------
# @public java-ant_src_unpack
#
# Unpacks the source, and attempts to fix build files.
# ------------------------------------------------------------------------------
post_src_unpack() {
        if java-pkg_func-exists ant_src_unpack; then
                java-pkg_announce-qa-violation "Using old ant_src_unpack. Should be src_unpack"
                ant_src_unpack
        fi
        java-ant_bsfix
}

The docs are outdated.