public inbox for gentoo-java@lists.gentoo.org
 help / color / mirror / Atom feed
From: Andrew Cowie <andrew@operationaldynamics.com>
To: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] Using a compiler other than that configured at system level in an ebuild
Date: Thu, 29 Nov 2007 19:22:32 +1100	[thread overview]
Message-ID: <1196324552.10568.17.camel@moonglow.roaming.operationaldynamics.com> (raw)
In-Reply-To: <474C2C21.3080109@gentoo.org>

[-- 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 --]

  reply	other threads:[~2007-11-29  8:23 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 [this message]
2007-11-29 21:11     ` Petteri Räty
2007-11-29 15:22 ` Joshua Nichols

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1196324552.10568.17.camel@moonglow.roaming.operationaldynamics.com \
    --to=andrew@operationaldynamics.com \
    --cc=gentoo-java@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox