| Summary: | dev-util/netbeans-8.1 depends on oracle-jdk-bin | ||
|---|---|---|---|
| Product: | Gentoo Linux | Reporter: | Juergen Rose <rose> |
| Component: | Current packages | Assignee: | Miroslav Šulc <fordfrog> |
| Status: | RESOLVED OBSOLETE | ||
| Severity: | normal | CC: | java, n-roeser, stefan.gast |
| Priority: | Normal | ||
| Version: | unspecified | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Package list: | Runtime testing required: | --- | |
| Bug Depends on: | 547918 | ||
| Bug Blocks: | |||
|
Description
Juergen Rose
2015-11-06 21:15:47 UTC
here is my note i put in the ebuild some time ago: # oracle-jdk-bin is needed because other jdks do not contain file jre/lib/ext/jfxrt.jar # the error: # [parseprojectxml] Distilling /var/tmp/portage/dev-java/netbeans-platform-9999_p20140922/work/nbbuild/build/public-package-jars/org-netbeans-libs-javafx.jar from [/var/tmp/portage/dev-java/netbeans-platform-9999_p20140922/work/nbbuild/netbeans/platform/modules/org-netbeans-libs-javafx.jar, /opt/icedtea-bin-7.2.4.7/jre/lib/ext/jfxrt.jar] # [parseprojectxml] Classpath entry /opt/icedtea-bin-7.2.4.7/jre/lib/ext/jfxrt.jar does not exist; skipping # [nbmerge] Failed to build target: all-api.html4j none of the icedtea packages contain jar with the same name so i suppose the problem is still valid but i can test it again when i find some time. anyway probably unless you're gonna do javafx development with netbeans on gentoo, you can used oracle-jdk-bin just to compile netbeans-platform and then used icedtea for netbeans runtime. in fact i run netbeans on icedtea 8 daily. there are only some issues with debugging that does not work unfortunately. fordfrog, I take it that is needed at build time and it's not that easy to avoid? This isn't really a shortcoming of icedtea, there is OpenJFX, which is maintained as a separate project. On a related note, you definitely should not be depending on oracle-jdk-bin:1.7 as this version is highly vulnerable. I really should have removed it already but I am holding back until virtual/jdk:1.8 is stable, otherwise it might force some current stable users onto icedtea when they might not want it. In other news, stabilising virtual/jdk:1.8 is getting ever closer. Not nearly as quickly as I'd like but that's life. Forgot to add that you should depend on the javafx flag, so oracle-jdk-bin:1.7[javafx]. (In reply to James Le Cuirot from comment #3) > Forgot to add that you should depend on the javafx flag, so > oracle-jdk-bin:1.7[javafx]. I mean 1.8!! *needs sleep* I do not have set the javafx flag, nevertheless 'emerge -pvD netbeans' wants to emerge oracle-jdk-bin: oot@lynx2:/root(12)# emerge -pvD netbeans These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N F ] dev-java/java-sdk-docs-1.7.0.80:1.7::gentoo 59,736 KiB [ebuild N F ] dev-java/oracle-jdk-bin-1.7.0.80:1.7::gentoo USE="X alsa doc examples fontconfig nsplugin (-aqua) -derby -jce -pax_kernel (-selinux) -source" 191,047 KiB [ebuild R ] dev-java/junit-4.12-r1:4::gentoo USE="doc examples source*" 657 KiB [ebuild N ] dev-java/javax-inject-1-r2::gentoo USE="doc -source" 11 KiB ... [ebuild NS ] dev-java/netbeans-javadoc-8.1:8.1::gentoo [8.0.2:8.0::gentoo] 0 KiB [ebuild NS ] dev-util/netbeans-8.1:8.1::gentoo [8.0.2:8.0::gentoo] USE="doc" LINGUAS="de fr ru -af -ar -ar_SA -bg -ca -cs -el -es -es_CO -fil -gl -hi_IN -id_ID -it -ja -ko -lt -nl_BE -nl_NL -pl -pt_BR -pt_PT -ro -si -sq -sr -sv -ta_IN -tr -vi -zh_CN -zh_TW" NETBEANS_MODULES="apisupport cnd dlight enterprise ergonomics groovy java mobility php profiler websvccommon -extide -javacard -javafx -webcommon" 11,666 KiB Total: 38 packages (16 new, 21 in new slots, 1 reinstall), Size of downloads: 577,829 KiB Fetch Restriction: 3 packages (3 unsatisfied) (In reply to Juergen Rose from comment #5) > I do not have set the javafx flag, nevertheless 'emerge -pvD netbeans' wants > to emerge oracle-jdk-bin: I was speaking to fordfrog. netbeans-platform (and netbeans-javadoc?) should depend on oracle-jdk-bin:1.8[javafx]. You don't need to set anything. even netbeans 8.1 still needs that javafx jar so we cannot avoid oracle-jdk-bin for now, at least until we have openjfx ebuild and i until i figure out how to affect netbeans-platform build so that it picks jar from this package instead (in case it would be installed in different path than it is for oracle-jdk-bin). anyway, as per chewi's comments i switched to dev-java/oracle-jdk-bin:1.8[javafx] both netbeans-platform-8.1 and netbeans-javadoc-8.1: commit fdbfd23c41d8535a2e7205d9f8847c79d0c94086 Author: Miroslav Šulc <fordfrog@gentoo.org> Date: Sun Nov 8 11:15:56 2015 +0100 dev-java/netbeans-javadoc: switched to jdk 1.8 per bug #565048 Package-Manager: portage-2.2.24 commit d85f7a17666670502a306f9c4301121048d57013 Author: Miroslav Šulc <fordfrog@gentoo.org> Date: Sun Nov 8 11:14:45 2015 +0100 dev-java/netbeans-platform: switched to jdk 1.8 per bug #565048 Package-Manager: portage-2.2.24 added bug #547918 as blocker of this bug. Is able to build =dev-util/netbeans-8.1 with oracle-jdk-bin, but run under =dev-java/icedtea-3.0.0 ? (In reply to Denis I. Polukarov from comment #8) > Is able to build =dev-util/netbeans-8.1 with oracle-jdk-bin, but run under > =dev-java/icedtea-3.0.0 ? yes, i run netbeans with icedtea-3.0.0. it even better integrates with the theme i use compared to oracle-jdk-bin Now that =dev-util/netbeans-8.0.2 is gone and there is only =dev-util/netbeans-8.2 left, this becomes more urgent, as the proprietary, fetch-restricted dev-java/oracle-jdk-bin is now a mandatory requirement for Netbeans on Gentoo. Is there any good news about Netbeans in Gentoo? Maybe a binary package might help as a temporary workaround for the JavaFX problem? it's obsolete now as netbeans is being removed from the main tree. if you need netbeans, see bug #685782. |