Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 677230 - media-libs/libcaca-0.99_beta19 - src_compile(): javac: error: Source option 5 is no longer supported. Use 6 or later.
Summary: media-libs/libcaca-0.99_beta19 - src_compile(): javac: error: Source option 5...
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-02-03 22:29 UTC by jospezial
Modified: 2020-10-25 18:04 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jospezial 2019-02-03 22:29:07 UTC
Making all in java
make[2]: Entering directory '/var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19-abi_x86_64.amd64/java'
/opt/openjdk-bin-11.0.2_p7/bin/javac -source 1.5 -target 1.5 -d . /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/Font.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/Display.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/Caca.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/NativeObject.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/Canvas.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/CacaException.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/Event.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/TimeoutException.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/Attribute.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/Color.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/CacaObject.java /var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19/java/org/zoy/caca/Dither.java
warning: [options] bootstrap class path not set in conjunction with -source 5
error: Source option 5 is no longer supported. Use 6 or later.
error: Target option 1.5 is no longer supported. Use 1.6 or later.
make[2]: *** [Makefile:909: org/zoy/caca/Attribute.class] Error 2
make[2]: Leaving directory '/var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19-abi_x86_64.amd64/java'
make[1]: *** [Makefile:541: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libcaca-0.99_beta19/work/libcaca-0.99.beta19-abi_x86_64.amd64'
make: *** [Makefile:436: all] Error 2
 * ERROR: media-libs/libcaca-0.99_beta19::gentoo failed (compile phase):
 *   emake failed
Comment 1 jospezial 2020-10-25 13:00:04 UTC
Fix of this is simple:
-       java? ( >=virtual/jre-1.5 )"
+       java? ( >=virtual/jre-1.6 )"

-       java? ( >=virtual/jdk-1.5 )
+       java? ( >=virtual/jdk-1.6 )


But then we see another bug (javah is not available for openjdk-bin-11 on x86_64):

Making all in java
make[2]: Entering directory '/var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19-abi_x86_64.amd64/java'
/opt/openjdk-bin-11.0.9_p11/bin/javac -source 1.6 -target 1.6 -d . /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/Attribute.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/Caca.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/CacaException.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/CacaObject.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/Canvas.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/Color.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/Display.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/Dither.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/Event.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/Font.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/NativeObject.java /var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19/java/org/zoy/caca/TimeoutException.java
warning: [options] bootstrap class path not set in conjunction with -source 6
warning: [options] source value 6 is obsolete and will be removed in a future release
warning: [options] target value 1.6 is obsolete and will be removed in a future release
warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
4 warnings
/opt/openjdk-bin-11.0.9_p11/bin/jar -cf libjava.jar org
/usr/bin/javah -d . -classpath . org.zoy.caca.Attribute
* javah is not available for openjdk-bin-11 on x86_64
* IMPORTANT: some Java tools are not available on some VMs or some architectures
make[2]: *** [Makefile:917: org_zoy_caca_Attribute.h] Error 1
make[2]: Leaving directory '/var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19-abi_x86_64.amd64/java'
make[1]: *** [Makefile:542: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/media-libs/libcaca-0.99_beta19-r1/work/libcaca-0.99.beta19-abi_x86_64.amd64'
make: *** [Makefile:437: all] Error 2
 * ERROR: media-libs/libcaca-0.99_beta19-r1::overlay_jl failed (compile phase):
 *   emake failed


Possible fix for that (now or in future) there:
https://github.com/cacalabs/libcaca