building cacao as an additional VM

Matthias Klose doko at ubuntu.com
Tue Mar 3 09:34:13 PST 2009


Triggered by archive administrators and security people who don't want to care
about two copies of the OpenJDK code in a distribution, I tried to build cacao
as additional VM in the same source package and avoiding separate builds. You
can now call:

  $ java -version
  java version "1.6.0_0"
  OpenJDK Runtime Environment (IcedTea6 1.4) (6b14-0ubuntu18)
  OpenJDK Server VM (build 14.0-b08, mixed mode)

  $ java -cacao -version
  java version "1.6.0_0"
  OpenJDK Runtime Environment (IcedTea6 1.4) (6b14-0ubuntu18)
  CACAO (build 0.99.3+hg, compiled mode)

The cacao bits are installed in <top>/jre/lib/<arch>/cacao, cacao is configured
like for the cacao build in IcedTea, the cacao-alternate-vm patch replaces the
icedtea-cacao patch, cacao-jni-version needs applied to the cacao sources.
The file jvm.cfg.in needs an additional line '-cacao KNOWN'.

There is no configure/make stuff for IcedTea yet; I'm currently assembling this
directly in the packaging.

Doing the same with Zero and with Shark? Didn't check yet, but maybe this would
need a copy of openjdk/hotspot to openjdk/zero, so that patches are applied for
the latter only.

Ok to checkin these patches (without applying them)?

  Matthias
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cacao-alternate-jvm.diff
Url: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090303/0d16aa56/cacao-alternate-jvm.diff 
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: cacao-jni-version.diff
Url: http://mail.openjdk.java.net/pipermail/distro-pkg-dev/attachments/20090303/0d16aa56/cacao-jni-version.diff 


More information about the distro-pkg-dev mailing list