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

Bug 361593

Summary: dev-java/icu4j-4.4.2: icu4j-localespi.jar does not exist during install
Product: Gentoo Linux Reporter: Martin von Gagern <Martin.vGagern>
Component: [OLD] JavaAssignee: Java team <java>
Status: RESOLVED OBSOLETE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build log
emerge --info

Description Martin von Gagern 2011-04-01 12:47:03 UTC
Created attachment 268119 [details]
emerge --info

localespi:

jar:
     [copy] Copying 1 file to /var/tmp/portage/dev-java/icu4j-4.4.2/work
     [copy] Warning: Could not find file /var/tmp/portage/dev-java/icu4j-4.4.2/work/main/classes/localespi/out/lib/icu4j-localespi.jar to copy.

BUILD SUCCESSFUL
Total time: 18 seconds
>>> Source compiled.
>>> Test phase [not enabled]: dev-java/icu4j-4.4.2

>>> Install icu4j-4.4.2 into /var/tmp/portage/dev-java/icu4j-4.4.2/image/ category dev-java
 * ERROR: dev-java/icu4j-4.4.2 failed (install phase):
 *   icu4j-localespi.jar does not exist
Comment 1 Martin von Gagern 2011-04-01 12:47:30 UTC
Created attachment 268121 [details]
build log
Comment 2 Livid 2011-04-03 17:27:30 UTC
Created attachment 268371 [details]
emerge --info

I expirience the same bug atm.
Comment 3 Martin von Gagern 2011-04-03 19:18:38 UTC
Probably due to sun-jdk-1.5 as the VM. Forcing the VM to 1.6 should work around this problem: JAVA_PKG_FORCE_VM=sun-jdk-1.6 emerge -1 icu4j

I've got debugging build logs (ant -d) from both 1.5 and 1.6 here, but as the order of many things is nondeterministic, its hard to find the significant changes. The logs are too big to attach in plain, and should be easy to reproduce:

ebuild /usr/portage/dev-java/icu4j/icu4j-4.4.2.ebuild clean prepare
cd /var/tmp/portage/dev-java/icu4j-4.4.2/work
ANT_TASKS=none GENTOO_VM=sun-jdk-1.5 ant -d jar 2>&1 | tee /tmp/1.5.log
cd
ebuild /usr/portage/dev-java/icu4j/icu4j-4.4.2.ebuild clean prepare
cd /var/tmp/portage/dev-java/icu4j-4.4.2/work
ANT_TASKS=none GENTOO_VM=sun-jdk-1.6 ant -d jar 2>&1 | tee /tmp/1.6.log
Comment 4 Martin von Gagern 2011-04-07 14:45:55 UTC
(In reply to comment #3)
> I've got debugging build logs (ant -d) from both 1.5 and 1.6 here, but as the
> order of many things is nondeterministic, its hard to find the significant
> changes.

Found it, in the 1.5 verbose build:

localespi:
Skipped because property 'is.java6.plus' not set.

This corresponds to line 380 of the root build.xml:
<target name="localespi" if="is.java6.plus"
        description="Build Locale SPI classes">

I guess it's safe to assume that the localespi feature is available only with a java6 vm. So you have two options: either depend on java6 unconditionally, or introduce a USE flag which will skip installation of the localespi jar if disabled, and will force java6 dependency when enabled.
Comment 5 Miroslav Ć ulc gentoo-dev 2015-02-03 15:39:31 UTC
as java 5 is gone from gentoo tree, this issue should not appear anymore and so this report became obsolete