Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Architectures & Platforms Gentoo on AMD64
  • Search

commons-pool doesn't compile for java 1.5

Have an x86-64 problem? Post here.
Locked
Advanced search
10 posts • Page 1 of 1
Author
Message
kernelcowboy
Guru
Guru
User avatar
Posts: 391
Joined: Sat Feb 14, 2004 8:34 pm
Location: New Plymouth, New Zealand

commons-pool doesn't compile for java 1.5

  • Quote

Post by kernelcowboy » Thu Jan 26, 2006 2:50 am

is this news to anyone? bugzilla says "Zarro Boogs found. " it's the enum keyword problem. (incidentally it doesn't mention this in the tomcat bugs either, and this is a dependancy.)

i dont know too much about dependancies and bugs in the gentoo world. but, i do in the java word.

is there any way around this until it's fixed? like may be installing as a binary?

thanks
Top
alistair
Retired Dev
Retired Dev
User avatar
Posts: 869
Joined: Fri Jul 15, 2005 12:53 am

  • Quote

Post by alistair » Thu Jan 26, 2006 8:59 am

switch your system-jm to a java1.4 version. I believe, this was true late last year at least, that java1.5 has not been marked stable for the simple reason that a lot of the java packages in portage do not support compulation by java1.5, including some important build tools (maybe ant, im not to sure). As you can imagine this is very important for a source based distro.

therefore if you want java1.5 just make sure you have 1.4 as well
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Top
kernelcowboy
Guru
Guru
User avatar
Posts: 391
Joined: Sat Feb 14, 2004 8:34 pm
Location: New Plymouth, New Zealand

  • Quote

Post by kernelcowboy » Thu Jan 26, 2006 7:23 pm

Thanks. Indeed emergeing with a 1.4 vm was the key.

However, why wouldn't there be a bug listed for the commons--pool ebuild? Should there be one stating 'Doesn't compile with 1.5 - enum.'

incidentally, it doesn't seem like a tough problem to fix in an open source system? are the maintainers just really back logged, or are the commons-pool dev's not able to rename enum and release their code? or, i'm i really in the dark here?

thanks
Top
GJtje
n00b
n00b
Posts: 63
Joined: Sun Nov 07, 2004 11:05 pm
Location: Amsterdam, NL
Contact:
Contact GJtje
Website

  • Quote

Post by GJtje » Thu Jan 26, 2006 9:06 pm

Java5 is a major change, that's why. They wrote their code for 1.4 not 1.5.
Top
alistair
Retired Dev
Retired Dev
User avatar
Posts: 869
Joined: Fri Jul 15, 2005 12:53 am

  • Quote

Post by alistair » Fri Jan 27, 2006 2:41 am

kernelcowboy wrote:Thanks. Indeed emergeing with a 1.4 vm was the key.

However, why wouldn't there be a bug listed for the commons--pool ebuild? Should there be one stating 'Doesn't compile with 1.5 - enum.'

incidentally, it doesn't seem like a tough problem to fix in an open source system? are the maintainers just really back logged, or are the commons-pool dev's not able to rename enum and release their code? or, i'm i really in the dark here?

thanks
1. A bug was filed against the java1.5 releases. It would be to hard to (and annoying from a dev's perspective) bug report all the java packages.
2) The gentoo developers probably dont release their own patch because they dont have the time to make it + then maintain it within portage while upstream developers decide if they want to use it. (They could be planning a big rewrite after all).
3) As you why the upstream devs havent done that I sadly can't answer.
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Top
kernelcowboy
Guru
Guru
User avatar
Posts: 391
Joined: Sat Feb 14, 2004 8:34 pm
Location: New Plymouth, New Zealand

  • Quote

Post by kernelcowboy » Fri Jan 27, 2006 6:10 am

alistair wrote: 1. A bug was filed against the java1.5 releases. It would be to hard to (and annoying from a dev's perspective) bug report all the java packages.
I am, by no means, trying to cause an argument by sayin this ... But, isn't it the package that is failing to compile, not the virtual machine. And some packages may compile fine in java 1.5, should the vm be penalized for that? May be we should allow 1.5 to be your vm if you choose, and then mark some packages as stable and others not. and assign bugs to the ones that are not. in fact, isn't your java version similar to your ARCH, except you can more than one virtual ARCH. (I feel I'm slipping outside my confort knowledge zone, so I'll stop here.)
Top
AllenJB
Veteran
Veteran
User avatar
Posts: 1285
Joined: Fri Sep 02, 2005 10:47 am
Contact:
Contact AllenJB
Website

  • Quote

Post by AllenJB » Fri Jan 27, 2006 8:37 am

kernelcowboy wrote:
alistair wrote: 1. A bug was filed against the java1.5 releases. It would be to hard to (and annoying from a dev's perspective) bug report all the java packages.
I am, by no means, trying to cause an argument by sayin this ... But, isn't it the package that is failing to compile, not the virtual machine. And some packages may compile fine in java 1.5, should the vm be penalized for that? May be we should allow 1.5 to be your vm if you choose, and then mark some packages as stable and others not. and assign bugs to the ones that are not. in fact, isn't your java version similar to your ARCH, except you can more than one virtual ARCH. (I feel I'm slipping outside my confort knowledge zone, so I'll stop here.)
There's no way within portage to mark packages stable on unstable based upon what other software (versions) you have installed.

I could have misinterpreted what I've read to date, but as I understand it, the java herd are permanently solving the problem by adding a feature to the java ebuilds where the ebuild specifies what version of java to compile it in - so when java 1.6 comes out, this problem won't occur because java 1.5 packages will compile using 1.5.

Allen
Top
alistair
Retired Dev
Retired Dev
User avatar
Posts: 869
Joined: Fri Jul 15, 2005 12:53 am

  • Quote

Post by alistair » Fri Jan 27, 2006 10:42 am

kernelcowboy wrote:
alistair wrote: 1. A bug was filed against the java1.5 releases. It would be to hard to (and annoying from a dev's perspective) bug report all the java packages.
I am, by no means, trying to cause an argument by sayin this ... But, isn't it the package that is failing to compile, not the virtual machine. And some packages may compile fine in java 1.5, should the vm be penalized for that? May be we should allow 1.5 to be your vm if you choose, and then mark some packages as stable and others not. and assign bugs to the ones that are not. in fact, isn't your java version similar to your ARCH, except you can more than one virtual ARCH. (I feel I'm slipping outside my confort knowledge zone, so I'll stop here.)
Yes that is true and I agree with you, But on the other hand I understand why they have done it this way. Another messy way that "might" work is to (in each java package's ebuild) add -version 1.4 flags to the javac options.
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Top
alistair
Retired Dev
Retired Dev
User avatar
Posts: 869
Joined: Fri Jul 15, 2005 12:53 am

  • Quote

Post by alistair » Fri Jan 27, 2006 10:47 am

emerge -pv sun-jdk

These are the packages that I would merge, in order:

Calculating dependencies
!!! All ebuilds that could satisfy "sun-jdk" have been masked.
!!! One of the following masked packages is required to complete your request:
- dev-java/sun-jdk-1.5.0.06-r2 (masked by: package.mask)
# <nichoj@gentoo.org>
# Many things in the tree don't compile with 1.5 yet.
# 1.5 defaults to -target 1.5, which makes downgrading to a 1.4/1.3
# impossible. See bug #69970 and bug 65937 for more information.
# http://www.gentoo.org/proj/en/java/tiger-faq.xml

- dev-java/sun-jdk-1.5.0.06-r1 (masked by: package.mask)
- dev-java/sun-jdk-1.4.2.10-r2 (masked by: -* keyword)
- dev-java/sun-jdk-1.5.0.06 (masked by: package.mask)
- dev-java/sun-jdk-1.3.1.17 (masked by: -* keyword)
- dev-java/sun-jdk-1.3.1.16 (masked by: -* keyword)
- dev-java/sun-jdk-1.2.2.017 (masked by: -* keyword)
- dev-java/sun-jdk-1.4.2.10-r1 (masked by: -* keyword)
- dev-java/sun-jdk-1.4.2.10 (masked by: -* keyword)

For more information, see MASKED PACKAGES section in the emerge man page or
refer to the Gentoo Handbook.
______________
Help the gentoo-java project. Visit Gentoo Java Project

what good are admin powers if you don't abuse them for personal gain - mark_alec
Top
AllenJB
Veteran
Veteran
User avatar
Posts: 1285
Joined: Fri Sep 02, 2005 10:47 am
Contact:
Contact AllenJB
Website

  • Quote

Post by AllenJB » Fri Jan 27, 2006 12:09 pm

alistair wrote:
kernelcowboy wrote:
alistair wrote: 1. A bug was filed against the java1.5 releases. It would be to hard to (and annoying from a dev's perspective) bug report all the java packages.
I am, by no means, trying to cause an argument by sayin this ... But, isn't it the package that is failing to compile, not the virtual machine. And some packages may compile fine in java 1.5, should the vm be penalized for that? May be we should allow 1.5 to be your vm if you choose, and then mark some packages as stable and others not. and assign bugs to the ones that are not. in fact, isn't your java version similar to your ARCH, except you can more than one virtual ARCH. (I feel I'm slipping outside my confort knowledge zone, so I'll stop here.)
Yes that is true and I agree with you, But on the other hand I understand why they have done it this way. Another messy way that "might" work is to (in each java package's ebuild) add -version 1.4 flags to the javac options.
As I understand it, that's essentially what they're doing. But they're doing it in a way (probably through use of an eclass) so that from now on every java package ebuild will specify what version of java it needs to be compiled with. Of course, this isn't an overnight change. The new method needs to be thoroughly tested before being deployed, and then every java ebuild needs to be updated with it's correct -version flags.

Allen
Top
Locked

10 posts • Page 1 of 1

Return to “Gentoo on AMD64”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic