How does IcedTea plugging work?
neugens at limasoftware.net
Wed Oct 31 22:28:05 UTC 2007
Il giorno mer, 31/10/2007 alle 22.46 +0530, Amit Kumar Saha ha scritto:
> On 10/31/07, Andrew Haley <aph at redhat.com> wrote:
> Amit Kumar Saha writes:
> > It would really be nice, if someone could provide me with a
> brief idea about
> > how IcedTea has been developed.
> > Specifically, I would like to know- if i have my own Open
> JDK build and i
> > want to plugin the GNU classpath packages - how would I do
> Which GNU classpath packages?
> None in particular. I was wondering if there is a general way of doing
> it or is it package specific? Its fine if you can just illustrate via
> a single example.
It depends on your needs.
What we usually do is to prepare a patchset against the current OpenJDK
tree, store the patchset into the patch directory of IcedTea, and then
enable it into the Makefile.
The hard part is to make the patchset itself, especially if you want to
add native stuff because OpenJDK uses a different way to build, and it's
not always obvious how to do it, so what you need to know depends on
what you want to do.
For example, I just finished porting the GConf preference backend we
have in Classpath into IcedTea. I wanted to keep the ability to
enable/disable it at compile time.
I had a couple of choices to do this, one was to hack around the
different build scripts, adding the sources I needed, the configure time
libraries (and I gave up on this), create the patch, and enable/disable
it in the IcedTea Makefile.
The other (what I did actually) was to just put the backend sources into
a directory of its own, use the usual configure/make magics, then copy
the shared object into the appropriate places.
So, it really depends on your task.
Hope that helps,
Lima Software - http://www.limasoftware.net/
GNU Classpath Developer - http://www.classpath.org/
Fedora Ambassador - http://fedoraproject.org/wiki/MarioTorre
Jabber: neugens at jabber.org
pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF
Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF
Please, support open standards:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 189 bytes
Desc: Questa ? una parte del messaggio firmata digitalmente
More information about the discuss