public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-java] Using a compiler other than that configured at system level in an ebuild
@ 2007-11-27 14:00 Andrew Cowie
  2007-11-27 14:39 ` Petteri Räty
  2007-11-29 15:22 ` Joshua Nichols
  0 siblings, 2 replies; 5+ messages in thread
From: Andrew Cowie @ 2007-11-27 14:00 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 266 bytes --]

I've been trying to bump the gnu-classpath ebuild to 0.96.1, but I'm
running into some problems. Part of the issue may be building it with
Sun javac. Is it possible to force an ebuild to use a non-system (or, if
you will, non-default) compiler?

AfC
Sydney


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-java] Using a compiler other than that configured at system level in an ebuild
  2007-11-27 14:00 [gentoo-java] Using a compiler other than that configured at system level in an ebuild Andrew Cowie
@ 2007-11-27 14:39 ` Petteri Räty
  2007-11-29  8:22   ` Andrew Cowie
  2007-11-29 15:22 ` Joshua Nichols
  1 sibling, 1 reply; 5+ messages in thread
From: Petteri Räty @ 2007-11-27 14:39 UTC (permalink / raw
  To: Andrew Cowie; +Cc: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 488 bytes --]

Andrew Cowie kirjoitti:
> I've been trying to bump the gnu-classpath ebuild to 0.96.1, but I'm
> running into some problems. Part of the issue may be building it with
> Sun javac. Is it possible to force an ebuild to use a non-system (or, if
> you will, non-default) compiler?
> 
> AfC
> Sydney
> 

gnu-classpath should have ./configure switches for forcing the compiler.
Your other option here is using eclipse-ecj as it needs a 1.5 compile
nowadays.

Regards,
Petteri


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-java] Using a compiler other than that configured at system level in an ebuild
  2007-11-27 14:39 ` Petteri Räty
@ 2007-11-29  8:22   ` Andrew Cowie
  2007-11-29 21:11     ` Petteri Räty
  0 siblings, 1 reply; 5+ messages in thread
From: Andrew Cowie @ 2007-11-29  8:22 UTC (permalink / raw
  To: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 1688 bytes --]

On Tue, 2007-11-27 at 16:39 +0200, Petteri Räty wrote:
> gnu-classpath should have ./configure switches for forcing the compiler.

It has --with-ecj and --with-ecj-jar=; unfortunately it ignored them,
and continued to use the javac
in /etc/java-config-2/current-system-vm/bin. That's something their
configure was picking up for itself, as its not something that the
ebuild is supplying.

When I raised this with my friends in the classpath community, people
said that they didn't bother to test whether their product would build
with Sun javac 1.5. I was agog, but their response was "well, it builds
with icedtea".

Ignoring that topic for a minute, I just tried installing a 1.6 Sun JDK
(it wasn't available last time I worked on this) It's possible that
classpath will build with Sun javac 1.6 and force switched the system VM
to it. The Java compile passed....

        [The original question remains, however: how does one force a
        Gentoo Java ebuild to require a specific compiler or version
        thereof?]

...but then some of the C building crapped out, some gsteamer related
file not finding a GDK header. Bah. So I did USE-gstreamer to get it to
fly, but that then broke the ebuild which has 

        dodoc README.gsteamer

with that removed the ebuild passed at last, and jamvm 1.5.0 (which was
the whole point of the exercise) built fine with a straight forward rev
bump of its existing ebuild.

So as far as dev-java/gnu-classpath is concerned, a 0.96.1 ebuild will
need to depend on Java >= 1.6

AfC
Sydney

[Actually, I did USE="-gstreamer -gtk -cairo -alsa" as well, but that's
because I don't much care about Swing]


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-java] Using a compiler other than that configured at system level in an ebuild
  2007-11-27 14:00 [gentoo-java] Using a compiler other than that configured at system level in an ebuild Andrew Cowie
  2007-11-27 14:39 ` Petteri Räty
@ 2007-11-29 15:22 ` Joshua Nichols
  1 sibling, 0 replies; 5+ messages in thread
From: Joshua Nichols @ 2007-11-29 15:22 UTC (permalink / raw
  To: Andrew Cowie; +Cc: gentoo-java

Andrew Cowie wrote:
> I've been trying to bump the gnu-classpath ebuild to 0.96.1, but I'm
> running into some problems. Part of the issue may be building it with
> Sun javac. Is it possible to force an ebuild to use a non-system (or, if
> you will, non-default) compiler?
>
> AfC
> Sydney
>
>   
In src_compile, you can use:

java-pkg_force-compiler <compiler goes here>

Although, I think this would only affect ant builds. To affect make based stuff, it depends on how it is determining javac to use.
 * It might be using a JAVAC variable. Setting JAVAC="<compiler executable goes here>" should solve it.
 * It might just be calling javac, and just using whatever is found on the path. I'm not sure if we have a reasonable way of addressing this particular case.


-- 
Joshua Nichols
Gentoo/Ruby Developer
Gentoo/Java Developer
http://technicalpickles.com

-- 
gentoo-java@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-java] Using a compiler other than that configured at system level in an ebuild
  2007-11-29  8:22   ` Andrew Cowie
@ 2007-11-29 21:11     ` Petteri Räty
  0 siblings, 0 replies; 5+ messages in thread
From: Petteri Räty @ 2007-11-29 21:11 UTC (permalink / raw
  To: Andrew Cowie; +Cc: gentoo-java

[-- Attachment #1: Type: text/plain, Size: 361 bytes --]

Andrew Cowie kirjoitti:
> So as far as dev-java/gnu-classpath is concerned, a 0.96.1 ebuild will
> need to depend on Java >= 1.6
> 

This is not a problem on x86 and amd64 where we have 1.6 stable. ppc and
ppc64 on the other hand don't have 1.6 available at this time. There are
ebuilds for some IBM beta in the bugzilla at best.

Regards,
Petteri


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 252 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2007-11-29 21:13 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-27 14:00 [gentoo-java] Using a compiler other than that configured at system level in an ebuild Andrew Cowie
2007-11-27 14:39 ` Petteri Räty
2007-11-29  8:22   ` Andrew Cowie
2007-11-29 21:11     ` Petteri Räty
2007-11-29 15:22 ` Joshua Nichols

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox