From: Joshua Nichols <nichoj@gentoo.org>
To: Ivan Yosifov <ivan@yosifov.net>
Cc: gentoo-java@lists.gentoo.org
Subject: Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected
Date: Tue, 02 May 2006 14:29:37 -0400 [thread overview]
Message-ID: <4457A511.2040902@gentoo.org> (raw)
In-Reply-To: <200605022101.46157.ivan@yosifov.net>
Ivan Yosifov wrote:
> Ok...
>
> I updated migration overlay to revision 2153. Reemerged and updated both
> java-config and java-config-wrapper. I now have java-config 2.0.22 and
> 1.3.0-r2 installed, java-config-wrapper is 0.8-r2. /usr/bin/java-config is:
>
> #!/bin/bash
>
> WANT_JAVA_CONFIG=${WANT_JAVA_CONFIG:="2"}
>
> JAVA_CONFIG="/usr/bin/java-config-${WANT_JAVA_CONFIG}"
>
> if [[ -x ${JAVA_CONFIG} ]]; then
> exec ${JAVA_CONFIG} "$@"
> else
> echo "ERROR: Expected to find ${JAVA_CONFIG}"
>
> While emerging eclipse I (still) get:
>
> home ~ # emerge -1 eclipse-sdk
> Calculating dependencies... done!
>
>>>> Emerging (1 of 1) dev-util/eclipse-sdk-3.1.2-r2 to /
>>>> checking ebuild checksums
>>>> checking auxfile checksums
>>>> checking miscfile checksums
>>>> checking distfiles checksums
>>>>
> * Checking for at least 768MBytes RAM ...
> [ ok ]
> true
> * Found offending option -fomit-frame-pointer in your CFLAGS
>
> * One or more potentially gruesome CFLAGS detected. When you run into
> trouble,
> * please edit /etc/make.conf and remove all offending flags, then recompile
> * Eclipse and all its dependencies before submitting a bug report.
>
> * In particular, gtk+ is extremely sensitive to which which flags it was
> * compiled with.
>
> * Tip: use equery depgraph "=eclipse-sdk-3.1.2-r2" to list all dependencies.
>
> Cannot find JAVA_HOME in config file /etc/env.d/java/22sun-j2ee-1.3.1
> Cannot find JAVA_HOME in config file /etc/env.d/java/22sun-j2ee-1.3.1
> Detected a JDK < 1.5.0
> Cannot find JAVA_HOME in config file /etc/env.d/java/22sun-j2ee-1.3.1
> Detected a JDK >= 1.4.2
>
>>>> Unpacking source...
>>>>
>
> The env file seems to come from dev-java/sun-j2ee-1.3.1-r3 but that should be
> an unrelated problem. Please correct me if I am wrong but line 91 of
> java-utils.eclass:
>
That thing about complaining about JAVA_HOME not found in some env files
is a known issue in bugzilla somewhere.
> local vm_patch=$(echo ${vm_version} | cut -d. -f3)
>
> _really_ expects a 3-component vm_version, like 1.2.3. And here java-config -f
> returns sun-jdk-1.5, that means a 2-component version "1.5". I described that
> my last mail and still feel this is the issue at least in my case.
>
>
You'll need to run java-config-1 -f. java-config reads WANT_JAVA_CONFIG
variable to decide which one to actually run (java-config-1 or
java-config-2), and by default it uses java-config-2.
Another thing to try is adding inherit java-pkg to the ebuild. The
eclipse plugin doesn't currently inherit it, but the java-pkg.eclass
from migration-overlay has a few bits for coping with generation-2
being around.
I also might suggest coming into #gentoo-java on freenode to help work
this out, seeing as this thread has been dragging on and hasn't quite
been resolved yet.
- Josh
--
gentoo-java@gentoo.org mailing list
prev parent reply other threads:[~2006-05-02 18:30 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-18 12:31 [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected Ivan Yosifov
2006-04-18 16:36 ` Joshua Nichols
2006-04-19 8:08 ` Ivan Yosifov
2006-04-19 15:15 ` Joshua Nichols
2006-04-20 16:03 ` Ivan Yosifov
2006-04-25 12:18 ` Ivan Yosifov
2006-05-01 21:19 ` Joshua Nichols
2006-05-01 23:45 ` Mathew Robertson
2006-05-02 3:53 ` Joshua Nichols
2006-05-02 4:19 ` [gentoo-java] OT: eclipse auto-indent Mathew Robertson
2006-05-02 4:48 ` Qian Qiao
2006-05-02 4:50 ` Mathew Robertson
2006-05-02 18:01 ` [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected Ivan Yosifov
2006-05-02 18:29 ` Joshua Nichols [this message]
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=4457A511.2040902@gentoo.org \
--to=nichoj@gentoo.org \
--cc=gentoo-java@lists.gentoo.org \
--cc=ivan@yosifov.net \
/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