emerge rhino Calculating dependencies ...done! >>> emerge (1 of 1) dev-java/rhino-1.5.5-r1 to / >>> md5 files ;-) rhino-1.5.5-r1.ebuild >>> md5 files ;-) rhino-1.6.1-r1.ebuild >>> md5 files ;-) ChangeLog >>> md5 files ;-) metadata.xml >>> md5 files ;-) files/jsscript >>> md5 files ;-) files/digest-rhino-1.5.5-r1 >>> md5 files ;-) files/digest-rhino-1.6.1-r1 >>> md5 files ;-) files/00_dont-fetch-swing-ex.patch >>> md5 files ;-) files/rhino-1.6-gentoo.patch >>> md5 src_uri ;-) rhino1_5R5.zip >>> md5 src_uri ;-) rhino-swing-ex-1.0.zip >>> Unpacking source... >>> Unpacking rhino1_5R5.zip to /var/tmp/portage/rhino-1.5.5-r1/work * Applying 00_dont-fetch-swing-ex.patch ... [ ok ] >>> Source unpacked. Buildfile: build.xml properties: init: [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/classes [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/rhino1_5R5 [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/rhino1_5R5/src [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/rhino1_5R5/toolsrc [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/rhino1_5R5/examples [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/rhino1_5R5/docs [mkdir] Created dir: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/rhino1_5R5/docs/apidocs compile: properties: compile: [javac] Compiling 109 source files to /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/classes [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/src/org/mozilla/javascript/Context.java:1835: warning: [deprecation] org.mozilla.javascript.WrapHandler in org.mozilla.javascript has been deprecated [javac] WrapHandler _handler; [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/src/org/mozilla/javascript/Context.java:1837: warning: [deprecation] org.mozilla.javascript.WrapHandler in org.mozilla.javascript has been deprecated [javac] WrapHandlerProxy(WrapHandler handler) [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/src/org/mozilla/javascript/Context.java:450: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Object for a varargs call [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning [javac] = (Context[])threadLocalGet.invoke(threadLocalCx, null); [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/src/org/mozilla/javascript/Context.java:2428: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Class for a varargs call [javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning [javac] threadLocalGet = cl.getMethod("get", null); [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/src/org/mozilla/javascript/NativeJavaObject.java:849: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Class for a varargs call [javac] cast to java.lang.Class[] for a non-varargs call and to suppress this warning [javac] meth = value.getClass().getMethod("doubleValue", null); [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/src/org/mozilla/javascript/NativeJavaObject.java:859: warning: non-varargs call of varargs method with inexact argument type for last parameter; [javac] cast to java.lang.Object for a varargs call [javac] cast to java.lang.Object[] for a non-varargs call and to suppress this warning [javac] return ((Number)meth.invoke(value, null)).doubleValue(); [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 6 warnings [copy] Copying 2 files to /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/classes properties: get-swing-ex: [unzip] Expanding: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/swingExSrc.zip into /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger [delete] Deleting: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/FileSystemModel2.java [delete] Deleting: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/MergeSort.java [delete] Deleting: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/TreeTableExample2.java compile: [javac] Compiling 22 source files to /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build/classes [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java:1545: warning: [deprecation] disable() in javax.swing.JComponent has been deprecated [javac] public void disable() { [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java:1545: warning: [deprecation] disable() in java.awt.Component has been deprecated [javac] public void disable() { [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java:1553: warning: [deprecation] enable() in javax.swing.JComponent has been deprecated [javac] public void enable() { [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/debugger/Main.java:1553: warning: [deprecation] enable() in java.awt.Component has been deprecated [javac] public void enable() { [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java:127: reference to CodeSource is ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.CodeSigner[]) in java.security.CodeSource match [javac] new CodeSource(null, null); [javac] ^ [javac] /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java:170: reference to CodeSource is ambiguous, both method CodeSource(java.net.URL,java.security.cert.Certificate[]) in java.security.CodeSource and method CodeSource(java.net.URL,java.security.CodeSigner[]) in java.security.CodeSource match [javac] CodeSource cs = new CodeSource(url, null); [javac] ^ [javac] Note: Some input files use unchecked or unsafe operations. [javac] Note: Recompile with -Xlint:unchecked for details. [javac] 2 errors [javac] 4 warnings BUILD FAILED /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build.xml:51: The following error occurred while executing this line: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/build.xml:69: Compile failed; see the compiler error output for details. Total time: 11 seconds !!! ERROR: dev-java/rhino-1.5.5-r1 failed. !!! Function src_compile, Line 34, Exitcode 1 !!! compilation error !!! If you need support, post the topmost build error, NOT this status message. using sun-jdk-1.5.0.01.
added a patch to make compilation against 1.5 possible. thanks for your report.
This new patch breaks the build on my system: [javac] 581. print_error(R.getMessage("msg.idswitch.bad_invocation", str)); [javac] ^----------^ [javac] *** Semantic Warning: Invoking the class method "getMessage" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type. [javac] Issued 1 semantic warning compiling "/var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/idswitch/SwitchGenerator.java": [javac] 385. String error_text = R.getMessage("msg.idswitch.same_string", [javac] ^----------^ [javac] *** Semantic Warning: Invoking the class method "getMessage" via an instance is discouraged because the method invoked will be the one in the variable's declared type, not the instance's dynamic type. [javac] Found 4 semantic errors compiling "/var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/org/mozilla/javascript/tools/shell/JavaPolicySecurity.java": [javac] 127. java.security.CodeSigner[] foo = new java.security.CodeSigner[1]; [javac] ^--------^ [javac] *** Semantic Error: Type "java.security.CodeSigner" was not found. [javac] 127. java.security.CodeSigner[] foo = new java.security.CodeSigner[1]; [javac] ^----------------------^ [javac] *** Semantic Error: A candidate for type "CodeSigner" was found, but it is invalid and needs to be fixed before this type will successfully compile. [javac] 172. java.security.CodeSigner[] foo = new java.security.CodeSigner[1]; [javac] ^----------------------^ [javac] *** Semantic Error: A candidate for type "CodeSigner" was found, but it is invalid and needs to be fixed before this type will successfully compile. [javac] 172. java.security.CodeSigner[] foo = new java.security.CodeSigner[1]; [javac] ^----------------------^ [javac] *** Semantic Error: A candidate for type "CodeSigner" was found, but it is invalid and needs to be fixed before this type will successfully compile. BUILD FAILED /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/build.xml:51: The following error occurred while executing this line: /var/tmp/portage/rhino-1.5.5-r1/work/rhino1_5R5/toolsrc/build.xml:69: Compile failed; see the compiler error output for details. Total time: 3 seconds !!! ERROR: dev-java/rhino-1.5.5-r1 failed. !!! Function src_compile, Line 35, Exitcode 1 !!! compilation error !!! If you need support, post the topmost build error, NOT this status message.
The new patch breaks on my system as well using blackdown-jdk-1.4.2.01-r1 Same error as comment #2
Created attachment 50092 [details, diff] /usr/portage/dev-java/rhino/files/1.5.5_jdk15.patch previous patch required a 1.5 vm and broke build against 1.4 vm. this patch is from the rhino 1_6R1 download and should work with both 1.5 and 1.4.
ok, i've commited the new patch. i was very tired yesterday when i did this, i'm sorry.
worked for me, thanks.
Thank you, Jan.