After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 361894 - Building libgtk-java on OpenSolaris
Building libgtk-java on OpenSolaris
Status: RESOLVED FIXED
Product: java-gnome
Classification: Bindings
Component: GTK
mainline
Other opensolaris
: Normal normal
: ---
Assigned To: java-gnome bindings maintainers
java-gnome bindings maintainers
Depends on: 360207 361899
Blocks: 339854
 
 
Reported: 2006-10-13 09:34 UTC by John Rice
Modified: 2007-01-05 00:59 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Patches for building libgtk-java on OpenSolaris (8.34 KB, patch)
2006-10-13 09:37 UTC, John Rice
needs-work Details | Review
Patches for building libgtk-java on OpenSolaris (8.29 KB, patch)
2006-10-16 18:32 UTC, John Rice
committed Details | Review

Description John Rice 2006-10-13 09:34:49 UTC
This is a set of buildsystem patches to allow libgtk-java to be built on OpenSolaris nevada build48 and above [currently this build uses Gnome 2.14, but will be bumped to Gnome 2.16 shortly].

Changes for the following:
1. Running examples: changes to runExample.sh.in making tests work on
OpenSolaris
2. Need gnome2-java-uninstalled.pc.in for common routines for Java-GNOME
bindings, Not installed. Needed when building meta/uber packages.
3. Configure --with_javadir is meant to be a supported configure option to tell the build where to put generated jar files, but had some hard coded path bugs and was not being picked up in generated .pc file.
4. Generating Javadoc on OpenSolaris - problem with use of "find -mindep". Not supported on this OS, simple generic workaround added. Also added missing classpath to remove build errors.
5. Applied existing Patch 65224 to create src jar from Bug 339854.
6. Need to change where doc base dir is set in the build, as we wanted to put it in a different location on OpenSolaris. Currently defaulting to ${datadir/doc}. Added configure option --with_docbasedir to support this.
7. Need to change where macro base dir is set in the build, as we wanted to put it in a different location on OpenSolaris. Currently defaulting to ${datadir/doc}. Added configure option --with_macrobasedir to support this.

Both docbasedir and macrobasedir support requires the glib macro jg_common.m4 Patch 74620 Bug 360207
Comment 1 John Rice 2006-10-13 09:37:32 UTC
Created attachment 74621 [details] [review]
Patches for building libgtk-java on OpenSolaris
Comment 2 John Rice 2006-10-13 10:05:43 UTC
Typo for gnome2-java-uninstalled.pc.in in 1. gtk2-java-uninstalled.pc.in
Comment 3 Andrew Cowie 2006-10-15 09:33:56 UTC
Why does http://bugzilla.gnome.org/attachment.cgi?id=74621&action=diff#libgtk-java-2.8.5.orig/doc/examples/runExample.sh.in_sec2 reference explicit jar locations + versions? That would seem to be one of those "oops I worked on the generated file, not the .in one" glitches.

Ah, the joys of the anti-patterns relating to generated code...

AfC
Comment 4 John Rice 2006-10-16 18:07:47 UTC
Opps - I screwed up, put it down to general patch fatigue :) I should not have been using the explicit jar locations + versions, I was indeed patching the generated version instead of the .in file.
Comment 5 John Rice 2006-10-16 18:32:52 UTC
Created attachment 74835 [details] [review]
Patches for building libgtk-java on OpenSolaris

Replaced hardcoded jar paths with @CAIROJAR@ @JGJAR@
Comment 6 Andrew Cowie 2006-10-17 06:23:30 UTC
Good show. Thanks for that, John.

[Always much better for submitters to fix their own bugs - their headspace is closer to a particular bit of code than a reviewers probably is. And the extra work encourages the right behaviour in the future! :)]

Will apply.

AfC