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 339854 - Autoconf macro to offer to create source jars
Autoconf macro to offer to create source jars
Status: RESOLVED FIXED
Product: java-gnome
Classification: Bindings
Component: General
mainline
Other Linux
: Normal normal
: ---
Assigned To: java-gnome bindings maintainers
java-gnome bindings maintainers
Depends on: 361653 361724 361883 361894 361896
Blocks:
 
 
Reported: 2006-04-26 20:09 UTC by Rob Staudinger
Modified: 2007-01-05 00:59 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
glib-java-srcjar.diff (1.22 KB, patch)
2006-04-26 21:24 UTC, Rob Staudinger
none Details | Review
cairo-java-srcjar.diff (1.20 KB, patch)
2006-04-26 21:24 UTC, Rob Staudinger
none Details | Review
libgtk-java-srcjar.diff (1.26 KB, patch)
2006-04-26 21:25 UTC, Rob Staudinger
none Details | Review
libglade-java-srcjar.diff (1.18 KB, patch)
2006-04-26 21:26 UTC, Rob Staudinger
none Details | Review
libgtk-java2.8.4-src.jar (723.13 KB, application/octet-stream)
2006-05-02 13:23 UTC, khiraly
  Details
libgnome-java2.12-src.jar (91.98 KB, text/plain)
2006-05-02 13:25 UTC, khiraly
  Details
libgnome-java2.12-src.jar (91.98 KB, application/octet-stream)
2006-05-02 13:26 UTC, khiraly
  Details
glib-java-srcjar.diff (2.99 KB, patch)
2006-05-02 22:42 UTC, Rob Staudinger
needs-work Details | Review
cairo-java-srcjar.diff (2.19 KB, patch)
2006-05-02 22:43 UTC, Rob Staudinger
none Details | Review
libgtk-java-srcjar.diff (2.22 KB, patch)
2006-05-02 22:44 UTC, Rob Staudinger
none Details | Review
libglade-java-srcjar.diff (2.15 KB, patch)
2006-05-02 22:45 UTC, Rob Staudinger
none Details | Review
cairo-java-srcjar.diff (1.99 KB, patch)
2006-05-02 22:57 UTC, Rob Staudinger
accepted-commit_now Details | Review
libgtk-java-srcjar.diff (2.00 KB, patch)
2006-05-02 22:58 UTC, Rob Staudinger
none Details | Review
libglade-java-srcjar.diff (1.91 KB, patch)
2006-05-02 22:59 UTC, Rob Staudinger
accepted-commit_now Details | Review
glib-java-srcjar.diff (2.95 KB, patch)
2006-05-06 09:38 UTC, Rob Staudinger
needs-work Details | Review
glib-java-srcjar.diff (2.93 KB, patch)
2006-05-11 08:15 UTC, Rob Staudinger
committed Details | Review
cairo-java-srcjar.diff (1.97 KB, patch)
2006-05-11 08:16 UTC, Rob Staudinger
accepted-commit_now Details | Review
libgtk-java-srcjar.diff (1.98 KB, patch)
2006-05-11 08:17 UTC, Rob Staudinger
committed Details | Review
libglade-java-srcjar.diff (1.89 KB, patch)
2006-05-11 08:18 UTC, Rob Staudinger
committed Details | Review

Description Rob Staudinger 2006-04-26 20:09:13 UTC
This is a set of buildsystem patches (5-liners each) for creating source jars.
A new target "src-jar" is introduced, so building is as easy as issuing "make src-jar" in $(top_srcdir). This target is also called from dist-hook resulting in "make dist" creating them automatically.
Comment 1 Rob Staudinger 2006-04-26 21:24:01 UTC
Created attachment 64352 [details] [review]
glib-java-srcjar.diff

Ok, 2 more lines for supporting out-of-srcdir builds.
Comment 2 Rob Staudinger 2006-04-26 21:24:26 UTC
Created attachment 64353 [details] [review]
cairo-java-srcjar.diff

Ok, 2 more lines for supporting out-of-srcdir builds.
Comment 3 Rob Staudinger 2006-04-26 21:25:17 UTC
Created attachment 64355 [details] [review]
libgtk-java-srcjar.diff

Ok, 2 more lines for supporting out-of-srcdir builds.
Comment 4 Rob Staudinger 2006-04-26 21:26:10 UTC
Created attachment 64356 [details] [review]
libglade-java-srcjar.diff

Ok, 2 more lines for supporting out-of-srcdir builds.
Comment 5 Andrew Cowie 2006-05-02 13:01:28 UTC
I've discussed this with Robert a few times. We want to make it so that there is a ./configure option that allows a distro packaging java-gnome to say where they want the source jars to go [as different distros have different location policies].

It would seem a little autoconf macro foo will be necessary but I think that will end us up with the most flexible result.

AfC
Comment 6 Rob Staudinger 2006-05-02 13:23:15 UTC
Will take care of that.
How do the options
  --enable-srcjar
  --srcjar-prefix=$foo
sound to you?
What about a default srcjar prefix of "$(datadir)/java" ?
Comment 7 khiraly 2006-05-02 13:23:32 UTC
Created attachment 64661 [details]
libgtk-java2.8.4-src.jar
Comment 8 khiraly 2006-05-02 13:25:19 UTC
Comment on attachment 64661 [details]
libgtk-java2.8.4-src.jar

Source java against the recent stable build
Comment 9 khiraly 2006-05-02 13:25:52 UTC
Created attachment 64662 [details]
libgnome-java2.12-src.jar

Source java against the recent stable build
Comment 10 khiraly 2006-05-02 13:26:02 UTC
Created attachment 64663 [details]
libgnome-java2.12-src.jar

Source java against the recent stable build
Comment 11 Rob Staudinger 2006-05-02 22:42:11 UTC
Created attachment 64700 [details] [review]
glib-java-srcjar.diff

The new options now are
--enable-srcjar
--with-srcjardir=DIR
Comment 12 Rob Staudinger 2006-05-02 22:43:33 UTC
Created attachment 64701 [details] [review]
cairo-java-srcjar.diff

The new options now are
--enable-srcjar
--with-srcjardir=DIR
Comment 13 Rob Staudinger 2006-05-02 22:44:34 UTC
Created attachment 64702 [details] [review]
libgtk-java-srcjar.diff

The new options now are
--enable-srcjar
--with-srcjardir=DIR
Comment 14 Rob Staudinger 2006-05-02 22:45:47 UTC
Created attachment 64703 [details] [review]
libglade-java-srcjar.diff

The new options now are
--enable-srcjar
--with-srcjardir=DIR
Comment 15 Rob Staudinger 2006-05-02 22:57:45 UTC
Created attachment 64705 [details] [review]
cairo-java-srcjar.diff

The new options now are
--enable-srcjar
--with-srcjardir=DIR
Comment 16 Rob Staudinger 2006-05-02 22:58:36 UTC
Created attachment 64706 [details] [review]
libgtk-java-srcjar.diff

The new options now are
--enable-srcjar
--with-srcjardir=DIR
Comment 17 Rob Staudinger 2006-05-02 22:59:06 UTC
Created attachment 64707 [details] [review]
libglade-java-srcjar.diff

The new options now are
--enable-srcjar
--with-srcjardir=DIR
Comment 18 Andrew Cowie 2006-05-03 01:04:09 UTC
This is fantastic, Robert!

Initial glance looks fine; I will apply just as soon as I get a moment.

AfC
Comment 19 Rob Staudinger 2006-05-05 06:45:04 UTC
(In reply to comment #18)
[...]
> Initial glance looks fine; I will apply just as soon as I get a moment.

Maybe you'd like to swap AC_ARG_ENABLE for AC_ARG_WITH in attachment #64700 [details] (the glib-java patch). Initially I thought using _ENABLE was more to the autoconf docs but since at present all options are declared _WITH that'd be more consistent. Will update patch if i get to it before you apply.
Comment 20 Andrew Cowie 2006-05-06 02:28:54 UTC
Consistency is good. I'd prefer to stick with --with now that you mention it.

Of course, it would be famous if someone could figure out a way to make {with and enable} and {without and disable} be synonyms in all of our options. Kinda silly that you have to remember which is which.

We've run also run into behaviour that --with doesn't leave on a default behaviour that --without turns off. So lame. But another story.

AfC
Comment 21 Rob Staudinger 2006-05-06 09:38:53 UTC
Created attachment 64912 [details] [review]
glib-java-srcjar.diff

--with-srcjar
--with-srcjardir=DIR
Comment 22 Andrew Cowie 2006-05-07 13:20:53 UTC
Sure, that makes sense. 

Any more for any more? Otherwise I'll commit this in the morning.

AfC
Comment 23 Andrew Cowie 2006-05-10 02:24:04 UTC
Eeeee nope. The glib-java patch causes the build to fail, after compiling everything, with:

   No rule to make target `"./doc-stamp"', needed by `all-local'.  Stop.

Presumably it would have worked fine if --with-jardir=blah or whatever was specified, but the build still needs to work if no option are specified!

What was wrong with the original

   if BUILD_JAVADOC
   all-local: $(top_builddir)/doc-stamp
   else
   all-local:
   endif

that you removed?

AfC
Comment 24 Rob Staudinger 2006-05-11 08:15:39 UTC
Created attachment 65221 [details] [review]
glib-java-srcjar.diff

Fix typo.
Comment 25 Rob Staudinger 2006-05-11 08:16:35 UTC
Created attachment 65222 [details] [review]
cairo-java-srcjar.diff

Fix typo.
Comment 26 Rob Staudinger 2006-05-11 08:17:10 UTC
Created attachment 65224 [details] [review]
libgtk-java-srcjar.diff

Fix typo.
Comment 27 Rob Staudinger 2006-05-11 08:18:19 UTC
Created attachment 65225 [details] [review]
libglade-java-srcjar.diff

Fix typo.
Comment 28 Rob Staudinger 2006-05-11 08:23:25 UTC
(In reply to comment #23)
[...]
> What was wrong with the original
> 
>    if BUILD_JAVADOC
>    all-local: $(top_builddir)/doc-stamp
>    else
>    all-local:
>    endif

Had restructure the "all-local" target a bit, there are now multiple optional dependencies on it because of the added srcjar.
Sorry for the messup, please try the fresh patches.
Comment 29 Rob Staudinger 2006-05-16 21:31:06 UTC
glib: committed
Please somebody with a freedesktop cvs commit bit take care of the cairo-java patch.
Comment 30 Andrew Cowie 2006-09-19 12:40:23 UTC
Rob,

I can do the cairo patch in the next day or so; go head and do the libgtk-java, libgnome-java, etc patches that *are* in GNOME CVS.

AfC
Comment 31 Andrew Cowie 2006-10-24 03:04:41 UTC
Marking these patches as "committed" (although they were actually applied by virtue of the patches contributed by John Rich getting java-gnome to build on OpenSolaris).

Thanks to Rob and John!

AfC