Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 177429 (java-virtuals) - [TRACKER] java virtuals support and migration
Summary: [TRACKER] java virtuals support and migration
Status: RESOLVED WONTFIX
Alias: java-virtuals
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords: Tracker
Depends on: 174182 200593 205731 212922 219126
Blocks:
  Show dependency tree
 
Reported: 2007-05-07 09:59 UTC by Vlastimil Babka (Caster) (RETIRED)
Modified: 2023-06-05 08:31 UTC (History)
1 user (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 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2007-05-07 09:59:02 UTC
I did this in xmlgraphics-commons:
DEPEND=
                jpeg? (
                        || (
                                >=dev-java/sun-jdk-1.4
                                >=dev-java/blackdown-jdk-1.4
                                >=dev-java/ibm-jdk-bin-1.4
                                >=dev-java/jrockit-jdk-bin-1.4
                        )
                )

But that doesn't help in forcing one of these VM's to be used. So had to do this workaround:
pkg_setup() {
        java-pkg-2_pkg_setup

        if use jpeg && java-pkg_current-vm-matches kaffe; then
                eerror "Sun-private JPEG support cannot be built with kaffe."
                eerror "Please set your build VM to Sun, Blackdown, IBM or JRockit JDK."
                eerror "See http://www.gentoo.org/doc/en/java.xml for details."
                eerror "Alternatively, install this package with USE=-jpeg"
                die "Cannot build with USE=jpeg and kaffe."
        fi
}
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-05-07 10:02:18 UTC
This is called virtuals support.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2007-05-07 10:03:05 UTC
Basically in this case we would have virtual-sun-jpeg or something and then have the tools look at if we need to switch vm.
Comment 3 Volkmar W. Pogatzki 2023-06-05 08:31:41 UTC
(In reply to Vlastimil Babka (Caster) (RETIRED) from comment #0)
> I did this in xmlgraphics-commons:
> [...]

xmlgraphics-commons is presently version 2.8 without such problems.
Also, java-virtuals is going away. Closing.