Summary: | sys-cluster/openmpi: respect USE=java and provide mpi.jar | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | Current packages | Assignee: | Gentoo Cluster Team <cluster> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | java |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Attachments: | openmpi-1.8.7-r1.ebuild.diff |
Description
Martin Mokrejš
2015-03-09 14:45:16 UTC
Maybe someone from the Java team can look into this (I'm part of the herd). @Chewi: care to help? Created attachment 408086 [details, diff]
openmpi-1.8.7-r1.ebuild.diff
@Chewi: could you please review this ebuild? You might pick up on the hack that is JAVA_PKG_WANT_{SOURCE,TARGET}. The OpenMPI Java bindings need to be compiled with Java 8 (I get an "Incorrect bytecode version found" error with 6 and 7). Only problem is that virtual/{jre,jdk}-1.8 aren't keyworded for ppc+ppc64. I could drop these two platforms and stick in the right virtuals. Or workaround the issue with JAVA_PKG_WANT variables as I did. Anyway, let me know.
(In reply to Patrice Clement from comment #2) > @Chewi: could you please review this ebuild? You might pick up on the hack > that is JAVA_PKG_WANT_{SOURCE,TARGET}. The OpenMPI Java bindings need to be > compiled with Java 8 (I get an "Incorrect bytecode version found" error with > 6 and 7). Only problem is that virtual/{jre,jdk}-1.8 aren't keyworded for > ppc+ppc64. I could drop these two platforms and stick in the right virtuals. > Or workaround the issue with JAVA_PKG_WANT variables as I did. Anyway, let > me know. That isn't a hack, it's just a big breakage. It doesn't require Java 8 to be installed but then calls javac -source 1.8 -target 1.8 anyway. How is that not going to break on any platform? Your only option is to drop the keywords. However, I don't think you understand what this error means. It means that the package is either using its own -source and -target flags that don't match (R)DEPEND or the flags aren't being passed at all. I'll investigate to find out which and whether Java 8 really is required. Fixed by overriding the configure check for javac to ensure it honours the -source and -target flags. |