chaoskagami / chaos-overlay

Random ebuilds for gentoo
2 stars 0 forks source link

LWJGL is broken #6

Open James-E-A opened 8 years ago

James-E-A commented 8 years ago

The dev-java/lwjgl ebuild is broken. (It is also broken in the official Java overlay; the people there are too understaffed to work on small libraries like LWJGL at the moment.)

>>> Compiling source in /var/tmp/portage/dev-java/lwjgl-2.9.1/work ...
 * Using following ANT_TASKS: ant-nodeps
Buildfile: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/build.xml

-initialize:
[initialiazing bin folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/bin
[initialiazing native bin folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/bin/lwjgl
[initialiazing native OpenGL ES bin folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/bin/lwjgles
[initialiazing lib folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/libs
[initialiazing dist folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/dist
[initialiazing docs folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/doc/javadoc
[initialiazing res folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/res
[initialiazing temp folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp
[initialiazing temp/jar folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/jar
[initialiazing temp/doc folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/doc
[initialiazing temp/res folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/res
[initialiazing temp/native folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native
[initialiazing temp/windows folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/windows
[initialiazing temp/linux folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/linux
[initialiazing temp/freebsd folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/freebsd
[initialiazing temp/macosx folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/macosx
[initialiazing temp/solaris folder] Created dir: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/solaris

compile:
     [core] Compiling 726 source files to /var/tmp/portage/dev-java/lwjgl-2.9.1/work/bin
     [core] /var/tmp/portage/dev-java/lwjgl-2.9.1/work/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java:36: error: package net.java.games.util.plugins does not exist
     [core] import net.java.games.util.plugins.Plugin;
     [core]                                   ^
     [core] /var/tmp/portage/dev-java/lwjgl-2.9.1/work/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java:41: error: cannot find symbol
     [core] public class LWJGLEnvironmentPlugin extends ControllerEnvironment implements Plugin {
     [core]                                                                              ^
     [core]   symbol: class Plugin
     [core] Note: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/src/java/org/lwjgl/MacOSXSysImplementation.java uses or overrides a deprecated API.
     [core] Note: Recompile with -Xlint:deprecation for details.
     [core] Note: Some input files use unchecked or unsafe operations.
     [core] Note: Recompile with -Xlint:unchecked for details.
     [core] 2 errors

BUILD FAILED
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/build.xml:451: Compile failed; see the compiler error output for details.

Total time: 32 seconds
 * ERROR: dev-java/lwjgl-2.9.1::chaos failed (compile phase):
 *   eant failed
 * 
 * Call stack:
 *     ebuild.sh, line  133:  Called src_compile
 *   environment, line 3938:  Called java-pkg-2_src_compile
 *   environment, line 1835:  Called eant 'headers' 'jars' 'jars_es' '-f' 'build.xml'
 *   environment, line  596:  Called die
 * The specific snippet of code:
 *       ant ${antflags} "${@}" || die "eant failed"
 * 
 * If you need support, post the output of `emerge --info '=dev-java/lwjgl-2.9.1::chaos'`,
 * the complete build log and the output of `emerge -pqv '=dev-java/lwjgl-2.9.1::chaos'`.
!!! When you file a bug report, please include the following information:
GENTOO_VM=icedtea-bin-7  CLASSPATH="" JAVA_HOME="/opt/icedtea-bin-7.2.6.5"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info =lwjgl-2.9.1
 * The complete build log is located at '/var/tmp/portage/dev-java/lwjgl-2.9.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-java/lwjgl-2.9.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-java/lwjgl-2.9.1/work'
 * S: '/var/tmp/portage/dev-java/lwjgl-2.9.1/work'

>>> Failed to emerge dev-java/lwjgl-2.9.1
chaoskagami commented 8 years ago

Unfortunately, I'm no longer a gentoo user (I run LFS now) so debugging portage issues takes a bit longer.

Which version of java are you building with? I have no clue how to go about fixing this, since it's a missing symbol and not something like a java 7-8 incompatibility.

Not to mention lwjgl2 has been dropped upstream for lwlgl3 which is an API-incompatible rewrite.

On April 28, 2016 9:39:41 AM EDT, James notifications@github.com wrote:

The dev-java/lwjgl ebuild is broken. (It is also broken in the official Java overlay; the people there are too understaffed to work on small libraries like LWJGL at the moment.)

>>> Compiling source in /var/tmp/portage/dev-java/lwjgl-2.9.1/work ...
* Using following ANT_TASKS: ant-nodeps
Buildfile: /var/tmp/portage/dev-java/lwjgl-2.9.1/work/build.xml

-initialize:
[initialiazing bin folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/bin
[initialiazing native bin folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/bin/lwjgl
[initialiazing native OpenGL ES bin folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/bin/lwjgles
[initialiazing lib folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/libs
[initialiazing dist folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/dist
[initialiazing docs folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/doc/javadoc
[initialiazing res folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/res
[initialiazing temp folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp
[initialiazing temp/jar folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/jar
[initialiazing temp/doc folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/doc
[initialiazing temp/res folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/res
[initialiazing temp/native folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native
[initialiazing temp/windows folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/windows
[initialiazing temp/linux folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/linux
[initialiazing temp/freebsd folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/freebsd
[initialiazing temp/macosx folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/macosx
[initialiazing temp/solaris folder] Created dir:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/temp/native/solaris

compile:
[core] Compiling 726 source files to
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/bin
[core]
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java:36:
error: package net.java.games.util.plugins does not exist
    [core] import net.java.games.util.plugins.Plugin;
    [core]                                   ^
[core]
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/src/java/org/lwjgl/util/jinput/LWJGLEnvironmentPlugin.java:41:
error: cannot find symbol
[core] public class LWJGLEnvironmentPlugin extends
ControllerEnvironment implements Plugin {
[core]                                                                 
           ^
    [core]   symbol: class Plugin
[core] Note:
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/src/java/org/lwjgl/MacOSXSysImplementation.java
uses or overrides a deprecated API.
    [core] Note: Recompile with -Xlint:deprecation for details.
    [core] Note: Some input files use unchecked or unsafe operations.
    [core] Note: Recompile with -Xlint:unchecked for details.
    [core] 2 errors

BUILD FAILED
/var/tmp/portage/dev-java/lwjgl-2.9.1/work/build.xml:451: Compile
failed; see the compiler error output for details.

Total time: 32 seconds
* ERROR: dev-java/lwjgl-2.9.1::chaos failed (compile phase):
*   eant failed
* 
* Call stack:
*     ebuild.sh, line  133:  Called src_compile
*   environment, line 3938:  Called java-pkg-2_src_compile
*   environment, line 1835:  Called eant 'headers' 'jars' 'jars_es'
'-f' 'build.xml'
*   environment, line  596:  Called die
* The specific snippet of code:
*       ant ${antflags} "${@}" || die "eant failed"
* 
* If you need support, post the output of `emerge --info
'=dev-java/lwjgl-2.9.1::chaos'`,
* the complete build log and the output of `emerge -pqv
'=dev-java/lwjgl-2.9.1::chaos'`.
!!! When you file a bug report, please include the following
information:
GENTOO_VM=icedtea-bin-7  CLASSPATH=""
JAVA_HOME="/opt/icedtea-bin-7.2.6.5"
JAVACFLAGS="-source 1.5 -target 1.5" COMPILER="javac"
and of course, the output of emerge --info =lwjgl-2.9.1
* The complete build log is located at
'/var/tmp/portage/dev-java/lwjgl-2.9.1/temp/build.log'.
* The ebuild environment file is located at
'/var/tmp/portage/dev-java/lwjgl-2.9.1/temp/environment'.
* Working directory: '/var/tmp/portage/dev-java/lwjgl-2.9.1/work'
* S: '/var/tmp/portage/dev-java/lwjgl-2.9.1/work'

>>> Failed to emerge dev-java/lwjgl-2.9.1

You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/chaoskagami/chaos-overlay/issues/6

Sent from my Android device with K-9 Mail. Please excuse my brevity.

chaoskagami commented 8 years ago

I'm not 100% on this, but it looks like jutils isn't being dragged into the classpath. net.java.games.util.plugins.Plugin should be part of jutils. jutils ends up in net.java so there wasn't a need for it to be explicitly inserted to the classpath when this was written (and it did originate from java-overlay.)

Adding dev-java/jutils:0 to CDEPEND and jutils to EANT_GENTOO_CLASSPATH may fix this, but I don't run gentoo at the moment and I'm unable to test whether this is the case.