When building octave with java-useflag set, it fails with: *** snip *** /bin/mkdir -p '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/class-concat/@foo' /usr/bin/install -c -m 644 class-concat/@foo/foo.m '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/class-concat/@foo' /bin/mkdir -p '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/classes/@Blork' /usr/bin/install -c -m 644 classes/@Blork/Blork.m classes/@Blork/bleek.m classes/@Blork/display.m classes/@Blork/get.m classes/@Blork/set.m '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/classes/@Blork' /bin/mkdir -p '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/@int64' /usr/bin/install -c -m 644 @int64/tbcover.m '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/@int64' /bin/mkdir -p '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/bug-38691/dir1' /usr/bin/install -c -m 644 bug-38691/dir1/func1.m '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/bug-38691/dir1' /bin/mkdir -p '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/bug-38691/dir2' /usr/bin/install -c -m 644 bug-38691/dir2/func1.m bug-38691/dir2/func2.m bug-38691/dir2/func3.m '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc/tests/fixed/bug-38691/dir2' make[4]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1/test' make[3]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1/test' make[2]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1/test' Making install in . make[2]: Entering directory `/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1' Makefile:2830: warning: overriding recipe for target `check' Makefile:2392: warning: ignoring old recipe for target `check' Octave successfully built. Now choose from the following: ./run-octave - to run in place to test before installing make check - to run the tests make install - to install (PREFIX=/usr) make[3]: Entering directory `/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1' Makefile:2830: warning: overriding recipe for target `check' Makefile:2392: warning: ignoring old recipe for target `check' make[3]: Für das Ziel »install-exec-am« ist nichts zu tun. /bin/mkdir -p /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/site/m /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/site/api-v49+/m /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/site/m /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/lib64/octave/site/oct/x86_64-pc-linux-gnu /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/lib64/octave/site/oct/api-v49+/x86_64-pc-linux-gnu /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/lib64/octave/3.8.1/site/oct/x86_64-pc-linux-gnu /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/libexec/octave/site/exec/x86_64-pc-linux-gnu /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/libexec/octave/api-v49+/site/exec/x86_64-pc-linux-gnu /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/libexec/octave/3.8.1/site/exec/x86_64-pc-linux-gnu /bin/mkdir -p '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/include/octave-3.8.1/octave' /usr/bin/install -c -m 644 config.h '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/include/octave-3.8.1/octave' /bin/mkdir -p '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc' /usr/bin/install -c -m 644 CITATION NEWS config.log '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/etc' /bin/mkdir -p '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/include/octave-3.8.1/octave' /usr/bin/install -c -m 644 oct-conf-post.h '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/include/octave-3.8.1/octave' make[3]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1' make[2]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1' make[1]: Leaving directory `/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1' * Removing unnecessary /usr/lib64/octave/3.8.1/liboctave.la (no static archive) * Removing unnecessary /usr/lib64/octave/3.8.1/liboctinterp.la (no static archive) * Removing unnecessary /usr/lib64/octave/3.8.1/liboctgui.la (no static archive) [01m[31;06m!!! ERROR: Couldn't find a VM dep[0m Traceback (most recent call last): File "/usr/lib/python-exec/python2.7/class-version-verify.py", line 32, in <module> options.version = int(options.version.split(".")[-1]) ValueError: invalid literal for int() with base 10: 'jar' * Incorrect bytecode version found * in file: /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/m/java/octave.jar * See /var/tmp/portage/sci-mathematics/octave-3.8.1-r1/temp/class-version-verify.log for more details. * ERROR: sci-mathematics/octave-3.8.1-r1::gentoo failed (install phase): * Incorrect bytecode found * * Call stack: * ebuild.sh, line 93: Called src_install * environment, line 5336: Called java-pkg_regjar '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/m/java/octave.jar' * environment, line 4025: Called java-pkg_verify-classes '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/image//usr/share/octave/3.8.1/m/java/octave.jar' * environment, line 4189: Called die * The specific snippet of code: * die "Incorrect bytecode found"; * * If you need support, post the output of `emerge --info '=sci-mathematics/octave-3.8.1-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-mathematics/octave-3.8.1-r1::gentoo'`. !!! When you file a bug report, please include the following information: GENTOO_VM= CLASSPATH="" JAVA_HOME="" JAVACFLAGS="" COMPILER="" and of course, the output of emerge --info =octave-3.8.1 * The complete build log is located at '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/temp/environment'. * Working directory: '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1' * S: '/var/tmp/portage/sci-mathematics/octave-3.8.1-r1/work/octave-3.8.1' Reproducible: Always The problem can be solved by adding to RDEPEND: java? ( >=virtual/jre-1.3 )
1) Please post your `emerge --info' output in a comment. 2) Please attach the entire build log to this bug report.
Created attachment 382848 [details] build.log.bz2
Created attachment 382850 [details] emerge --info =octave-3.8.1-r1
nothing from the maintainers? the fix is provided; please add it to the tree.
Thanks to M. B. for reporting and the fix, applied to octave-3.8.1-r1 and 3.8.2.