Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 73319 - dev-java/bcel-5.1 fails
Summary: dev-java/bcel-5.1 fails
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: Highest normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-12-04 02:56 UTC by Patrizio Bassi
Modified: 2004-12-30 07:35 UTC (History)
0 users

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


Attachments
bcel-5.1.ebuild (bcel-5.1.ebuild,1.03 KB, text/plain)
2004-12-19 09:43 UTC, Jan Brinkmann (RETIRED)
Details
bcel-5.1-gentoo-buildxml.diff (bcel-5.1-gentoo-buildxml.diff,1.26 KB, patch)
2004-12-19 09:44 UTC, Jan Brinkmann (RETIRED)
Details | Diff
bcel-5.1-gentoo-src.diff (bcel-5.1-gentoo-src.diff,3.17 KB, patch)
2004-12-19 09:47 UTC, Jan Brinkmann (RETIRED)
Details | Diff
bcel-5.1.ebuild (bcel-5.1.ebuild,1.08 KB, text/plain)
2004-12-19 10:05 UTC, Jan Brinkmann (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Patrizio Bassi 2004-12-04 02:56:32 UTC
after log4j unlock i tried to emerge eclipse

but bcel failed.

always with jdk 5.0!
Comment 1 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-12-04 04:10:49 UTC
I do not understand the problem. Please state your problem clearly and completely
so that may attempt to reproduce it.

In particular, list the versions of the packages involved, and all pertaining
error messages.
Comment 2 Patrizio Bassi 2004-12-04 04:54:57 UTC
sorry, i haven't my notebook so i can't try again:

infos:
jdk 5.0

trying to compile it gives errors, the "usual ones"
like enum and so on...

and compilation fails.

i searched for a newer version, but seems 5.1 is the lastest.
patch needed so.
Comment 3 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-12-04 05:44:24 UTC
Presumably, the build.xml needs to be patched with source/target=1.4 (or older).
Comment 4 Patrizio Bassi 2004-12-06 03:25:27 UTC
found a solution.

a) USE="-jikes" or will create so many errors.

b) search the sources for "Deprecated" class. it's in 2 files only.
Pass2verifier and String[...]
i don't remember exactly...i did the patch on a friend's pc.

changed the Deprecated class into "org.apache.bcel.classfile.Deprecated"

and it will compile good.

should be 5 occorrences only.

i did manually and so i can't provide a patch.


(of course this is for jdk 5.0, but will work with older versons too. it's due to java.lang.Deprecated class, so Deprecated will be ambigous).


please apply asap.
Comment 5 Jan Brinkmann (RETIRED) gentoo-dev 2004-12-19 09:43:00 UTC
Created attachment 46350 [details]
bcel-5.1.ebuild

a new ebuild which doesnt make use of the CLASSPATH=foo... thing. i've also
done some other cleanups and the most important it applies two patches.
Comment 6 Jan Brinkmann (RETIRED) gentoo-dev 2004-12-19 09:44:55 UTC
Created attachment 46351 [details, diff]
bcel-5.1-gentoo-buildxml.diff

this patch adds source and target attributes to the javac nodes and adds a
reference to ${regexp.jar} to the build.xml. by doing it this way we can simply
add regexp.jar=... to the build.properties file inside of the ebuild.
Comment 7 Jan Brinkmann (RETIRED) gentoo-dev 2004-12-19 09:47:53 UTC
Created attachment 46352 [details, diff]
bcel-5.1-gentoo-src.diff

patches the source code to get rid of the errors which prevented bcel from
being build using jdk 1.5
Comment 8 Jan Brinkmann (RETIRED) gentoo-dev 2004-12-19 10:05:43 UTC
Created attachment 46354 [details]
bcel-5.1.ebuild

fixed a dependendy error
Comment 9 Karl Trygve Kalleberg (RETIRED) gentoo-dev 2004-12-30 07:35:25 UTC
Fixed. No revdump done.