Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361593 - dev-java/icu4j-4.4.2: icu4j-localespi.jar does not exist during install
Summary: dev-java/icu4j-4.4.2: icu4j-localespi.jar does not exist during install
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-04-01 12:47 UTC by Martin von Gagern
Modified: 2015-02-03 15:39 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (dev-java:icu4j-4.4.2.emerge--info,6.24 KB, text/plain)
2011-04-01 12:47 UTC, Martin von Gagern
Details
build log (dev-java:icu4j-4.4.2:20110401-121738.log,14.37 KB, text/plain)
2011-04-01 12:47 UTC, Martin von Gagern
Details
emerge --info (emerge-info.log,4.48 KB, text/plain)
2011-04-03 17:27 UTC, Livid
Details

Note You need to log in before you can comment on or make changes to this bug.
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