From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.54) id 1FW7lv-0003Lf-9r for garchives@archives.gentoo.org; Wed, 19 Apr 2006 08:10:47 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.6/8.13.5) with SMTP id k3J8BBCB022955; Wed, 19 Apr 2006 08:11:11 GMT Received: from home.yosifov.net (mail.yosifov.net [193.200.14.114]) by robin.gentoo.org (8.13.6/8.13.5) with ESMTP id k3J8B9sT024249 for ; Wed, 19 Apr 2006 08:11:11 GMT Received: by home.yosifov.net (Postfix, from userid 1000) id 787E7286D072; Wed, 19 Apr 2006 11:08:28 +0300 (EEST) From: Ivan Yosifov Organization: Yosifov Engineering To: gentoo-java@lists.gentoo.org Subject: Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected Date: Wed, 19 Apr 2006 11:08:27 +0300 User-Agent: KMail/1.9.1 Cc: Joshua Nichols References: <200604181531.47237.ivan@yosifov.net> <444515A4.3070508@gentoo.org> In-Reply-To: <444515A4.3070508@gentoo.org> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-java@gentoo.org MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200604191108.28151.ivan@yosifov.net> X-Archives-Salt: 5cafdd37-8bdb-4d2c-a0d4-85d0e76a74ab X-Archives-Hash: cc122648be23e7ff11450fdd914e3a9f Am Dienstag, 18. April 2006 19:36 schrieb Joshua Nichols: > Ivan Yosifov wrote: > > Hello, > > > > Happens while emergeing eclipse: > > > > home ~ # emerge -1 eclipse-sdk > > Calculating dependencies... done! > > > >>>> Emerging (1 of 1) dev-util/eclipse-sdk-3.1.2 to / > >>>> checksums files .... > >>>> checksums src_uri ;-) eclipse-sourceBuild-srcIncluded-3.1.2.zip > > > > * Checking for sufficient physical RAM > > * Checking for bad CFLAGS > > * Found offending option -fomit-frame-pointer in your CFLAGS > > .... > > * Tip: use equery depgraph "=eclipse-sdk-3.1.2" to list all > > dependencies. > > > > /usr/local/portage/migration/migration/eclass/java-utils.eclass: line 97: > > [: -ge: unary operator expected > > Detected a JDK < 1.5.0 > > Detected a JDK >= 1.4.2 > > > >>>> Unpacking source... > > > > /usr/local/portage/migration/migration/ is where I've put the migration > > overlay revision 2114. Bash is 3.1_p17. Is this an eclass bug or > > something else ? > > Something else, I think. I've been working on the eclipse ebuilds (while > using migration-overlay, obviously), and hadn't noticed any problems. > > It might have something to do with the ebuild itself. Someone went and > committed a bump to 3.1.2 without consulting with us Java folks, so I'm > not sure what condition it is. Expect to see a new revision in a day or > so... > > Josh I am getting the same with the new eclipse-sdk-3.1.2-r1. I added some debugging output to the eclass in java-utils_is-vm-version-ge(): --- ./java-utils.eclass 2006-04-19 10:58:43.000000000 +0300 +++ /usr/local/portage/migration/migration/eclass/java-utils.eclass 2006-04-19 11:00:25.000000000 +0300 @@ -91,6 +91,12 @@ local vm_patch=$(echo ${vm_version} | cut -d. -f3) local vm_extra=$(echo ${vm_version} | cut -d. -f4) + echo ${vm_major} + echo ${vm_minor} + echo ${user_major} + echo ${user_minor} + echo ${vm_patch} + echo ${user_patch} if [ ${vm_major} -ge ${user_major} ] && [ ${vm_minor} -gt ${user_minor} ] ; then echo "Detected a JDK >= ${user_version}" return 0 and the output is: * Tip: use equery depgraph "=eclipse-sdk-3.1.2-r1" to list all dependencies. 1 5 1 5 0 /usr/local/portage/migration/migration/eclass/java-utils.eclass: line 103: [: -ge: unary operator expected Detected a JDK < 1.5.0 1 5 1 4 2 Detected a JDK >= 1.4.2 >>> Unpacking source... ,meaning that vm_patch is ending up empty and that seems to confuse -ge conditionals using it. -- Cheers, Ivan Yosifov. -- gentoo-java@gentoo.org mailing list