* [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected @ 2006-04-18 12:31 Ivan Yosifov 2006-04-18 16:36 ` Joshua Nichols 0 siblings, 1 reply; 14+ messages in thread From: Ivan Yosifov @ 2006-04-18 12:31 UTC (permalink / raw To: gentoo-java 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 ? -- Cheers, Ivan Yosifov. -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 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 0 siblings, 1 reply; 14+ messages in thread From: Joshua Nichols @ 2006-04-18 16:36 UTC (permalink / raw To: Ivan Yosifov; +Cc: gentoo-java 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 -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 2006-04-18 16:36 ` Joshua Nichols @ 2006-04-19 8:08 ` Ivan Yosifov 2006-04-19 15:15 ` Joshua Nichols 0 siblings, 1 reply; 14+ messages in thread From: Ivan Yosifov @ 2006-04-19 8:08 UTC (permalink / raw To: gentoo-java; +Cc: Joshua Nichols 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 2006-04-19 8:08 ` Ivan Yosifov @ 2006-04-19 15:15 ` Joshua Nichols 2006-04-20 16:03 ` Ivan Yosifov 0 siblings, 1 reply; 14+ messages in thread From: Joshua Nichols @ 2006-04-19 15:15 UTC (permalink / raw To: Ivan Yosifov; +Cc: gentoo-java Ivan Yosifov wrote: > 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. > > I'll have to look into this, but it probably just needs to sanity checking for the vm_extra and company. Aside from that, what is the original of the ebuild for eclipse that you are using? Also, which VM are you using? I haven't been able to quite reproduce this problem... Josh -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 2006-04-19 15:15 ` Joshua Nichols @ 2006-04-20 16:03 ` Ivan Yosifov 2006-04-25 12:18 ` Ivan Yosifov 0 siblings, 1 reply; 14+ messages in thread From: Ivan Yosifov @ 2006-04-20 16:03 UTC (permalink / raw To: gentoo-java; +Cc: Joshua Nichols [-- Attachment #1: Type: text/plain, Size: 3665 bytes --] Am Mittwoch, 19. April 2006 18:15 schrieb Joshua Nichols: > Ivan Yosifov wrote: > > 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. > > I'll have to look into this, but it probably just needs to sanity > checking for the vm_extra and company. > > Aside from that, what is the original of the ebuild for eclipse that you > are using? Also, which VM are you using? I haven't been able to quite > reproduce this problem... > > Josh I am using the eclipse-sdk-3.1.2-r1 ebuild from the main tree, attached here for reference. I have sun-jdk 1.4.2.10-r13 and 1.5.0.06-r13 installed. The problem with vm_patch seems to be that java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/" ( in java-utils_get-vm-version ) returns just "1.5" and so vm_patch=$(echo ${vm_version} | cut -d. -f3) ( in java-utils_is-vm-version-ge ) ends up being an empty string. There is no third field to cut. -- Cheers, Ivan Yosifov. [-- Attachment #2: eclipse-sdk-3.1.2-r1.ebuild --] [-- Type: text/plain, Size: 10577 bytes --] # Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/eclipse-sdk/eclipse-sdk-3.1.2-r1.ebuild,v 1.1 2006/04/19 04:39:41 nichoj Exp $ inherit eutils java-utils flag-o-matic check-reqs MY_A="eclipse-sourceBuild-srcIncluded-${PV}.zip" RELEASE_DATE="200601181600" DESCRIPTION="Eclipse Tools Platform" HOMEPAGE="http://www.eclipse.org/" SRC_URI="http://download.eclipse.org/eclipse/downloads/drops/R-${PV}-${RELEASE_DATE}/${MY_A}" IUSE="gecko-sdk gnome jikes source doc atk" SLOT="3.1" LICENSE="CPL-1.0" KEYWORDS="~x86 ~ppc ~amd64" S="${WORKDIR}" RDEPEND=">=virtual/jre-1.4.2 >=x11-libs/gtk+-2.2.4 gecko-sdk? ( net-libs/gecko-sdk ) atk? ( >=dev-libs/atk-1.6 ) gnome? ( =gnome-base/gnome-vfs-2* =gnome-base/libgnomeui-2* )" DEPEND="${RDEPEND} >=virtual/jdk-1.4.2 jikes? ( >=dev-java/jikes-1.21 ) >=dev-java/ant-1.6.2 >=dev-java/ant-core-1.6.2-r4 >=sys-apps/findutils-4.1.7 app-arch/unzip app-arch/zip" ECLIPSE_DIR="/usr/lib/eclipse-${SLOT}" ECLIPSE_LINKS_DIR="${ECLIPSE_DIR}/links" # TODO: # - use CFLAGS from make.conf when building native libraries # - must patch eclipse build files # - also submit patch to bugs.eclipse.org # - ppc support not tested, but not explicitly broken either # - make a extension location in /var/lib that's writable by 'eclipse' group # -use make_desktop_entry from eutils instead of our own stuff pkg_setup() { debug-print "Checking for sufficient physical RAM" CHECKREQS_MEMORY="768" check_reqs debug-print "Checking for bad CFLAGS" check-cflags # Make sure our vm is sane java-utils_setup-vm java-utils_ensure-vm-version-ge 1 4 2 # All other gentoo archs match in eclipse build system except amd64 if use amd64 ; then eclipsearch=x86_64 else eclipsearch=${ARCH} fi # All other gentoo archs match in sun jdk library patch except x86 if use x86 ; then jvmarch=i386 else jvmarch=${ARCH} fi # eventually, we'll have a plugin directory that's user writable, as group # 'eclipse' -nichoj # Add the eclipse group, for our plugin directories #enewgroup eclipse } src_unpack() { unpack ${A} # TODO figure out what this does -nichoj epatch ${FILESDIR}/06-path-fixups.patch einfo "Setting up virtual machine" java-utils_setup-vm einfo "Cleaning out prebuilt code" clean-prebuilt-code einfo "Patching makefiles" fix_makefiles fix_amd64_ibm_jvm } src_compile() { # karltk: this should be handled by the java-pkg eclass in setup-vm addwrite "/proc/self/maps" addwrite "/proc/cpuinfo" addwrite "/dev/random" # Figure out VM, set up ant classpath and native library paths setup-jvm-opts if use gecko-sdk ; then einfo "Will compile embedded Mozilla support against net-libs/gecko-sdk" setup-mozilla-opts else einfo "Not building embedded Mozilla support" fi use jikes && bootstrap_ant_opts="-Dbuild.compiler=jikes" debug-print "Bootstrapping bootstrap ecj" ant ${bootstrap_ant_opts} -q -f jdtcoresrc/compilejdtcorewithjavac.xml || die "Failed to bootstrap ecj" debug-print "Bootstrapping ecj" ant -lib jdtcoresrc/ecj.jar -q -f jdtcoresrc/compilejdtcore.xml || die "Failed to bootstrap ecj" debug-print "Compiling Eclipse -- see ${S}/compilelog.txt for details" ANT_OPTS="-Xmx1024M" \ ant -lib jdtcoresrc/ecj.jar -q -f build.xml \ -DinstallOs=linux \ -DinstallWs=gtk \ -DinstallArch=${eclipsearch} \ -Dbootclasspath=${bootclasspath} \ -Dlibsconfig=true \ -DjavacTarget=1.4 \ -DjavacSource=1.4 \ -DjavacVerbose=false \ -DjavacFailOnError=true \ -DjavacDebugInfo=true \ -DbuildId="Gentoo Linux ${PF}" \ || die "Failed to compile Eclipse" cp launchertmp/eclipse eclipse-gtk || die "Cannot find eclipse binary" # TODO use make_desktop_entry from eutils during src_install instead -nichoj create-desktop-entry } src_install() { dodir /usr/lib debug-print "Installing features and plugins" [ -f result/linux-gtk-${eclipsearch}-sdk.tar.gz ] || die "tar.gz bundle was not built properly!" tar zxf result/linux-gtk-${eclipsearch}-sdk.tar.gz -C ${D}/usr/lib || die "Failed to extract the built package" mv ${D}/usr/lib/eclipse ${D}/${ECLIPSE_DIR} insinto ${ECLIPSE_DIR} exeinto ${ECLIPSE_DIR} debug-print "Installing eclipse-gtk binary" doexe eclipse-gtk || die "Failed to install eclipse binary" # need to rename inf file to eclipse-gtk.ini, see bug #128128 if use "!source" ; then debug-print "Removing source code" strip-src fi if use "!doc" ; then debug-print "Removing documentation" strip-docs fi # Install startup script exeinto /usr/bin doexe ${FILESDIR}/eclipse-${SLOT} install-desktop-entry doman ${FILESDIR}/eclipse.1 install-link-files # eventually, we'll have a user writable extension location -nichoj # TODO make g+w #dodir /var/lib/eclipse-${SLOT} #touch ${D}/var/lib/eclipse-${SLOT}/.eclipseextension #fowners root:eclipse /var/lib/eclipse-${SLOT} } # ----------------------------------------------------------------------------- # Helper functions # ----------------------------------------------------------------------------- fix_makefiles() { # Comment out hard-coded JAVA_HOME sed -i 's/^JAVA_HOME/#JAVA_HOME/' plugins/org.eclipse.core.resources.linux/src/Makefile || die "Failed to patch Makefile" # Select the set of native libraries to compile local libs="make_swt make_awt make_atk" if use gnome ; then einfo "Building GNOME VFS support" libs="${libs} make_gnome" fi if use gecko-sdk ; then einfo "Building Mozilla embed support" libs="${libs} make_mozilla" fi if use atk ; then einfo "Building ATK support" libs="${libs} make_atk" fi sed -i "s/^all:.*/all: ${libs}/" "plugins/org.eclipse.swt/Eclipse SWT PI/gtk/library/make_linux.mak" || die "Failed to patch make_linux.mak" } fix_amd64_ibm_jvm() { # the ibm jdk ebuild should have fixed headers, but until then # we just fix the compiling here (see bug #97421) if use amd64 ; then if [ ! -z "`java-config --java-version | grep IBM`" ] ; then einfo "Fixing IBM jdk header problem" find plugins -name "make_linux.mak" -print0 | xargs -0 sed -i -e 's/^CFLAGS =/CFLAGS = -D_JNI_IMPORT_OR_EXPORT_= /' fi fi } clean-prebuilt-code() { find ${S} -type f \( -name '*.class' -o -name '*.so' -o -name '*.so.*' -o -name 'eclipse' \) | xargs rm -f } check-cflags() { local badflags="-fomit-frame-pointer -msse2" local error=false local flag for flag in ${badflags} ; do if is-flag ${flag}; then ewarn "Found offending option ${flag} in your CFLAGS" error=true fi done if [ ${error} == "true" ]; then echo ewarn "One or more potentially gruesome CFLAGS detected. When you run into trouble," ewarn "please edit /etc/make.conf and remove all offending flags, then recompile" ewarn "Eclipse and all its dependencies before submitting a bug report." echo ewarn "In particular, gtk+ is extremely sensitive to which which flags it was" ewarn "compiled with." echo einfo "Tip: use equery depgraph \"=${PF}\" to list all dependencies." echo ebeep fi } setup-jvm-opts() { # Figure out correct boot classpath # karltk: this should be handled by the java-pkg eclass in setup-vm if [ ! -z "`java-config --java-version | grep IBM`" ] ; then # IBM JDK local bp="$(java-config --jdk-home)/jre/lib" bootclasspath="${bp}/core.jar:${bp}/xml.jar:${bp}/graphics.jar:${bp}/security.jar:${bp}/server.jar" JAVA_LIB_DIR="$(java-config --jdk-home)/jre/bin" else # Sun derived JDKs (Blackdown, Sun) local bp="$(java-config --jdk-home)/jre/lib" bootclasspath="${bp}/rt.jar:${bp}/jsse.jar" JAVA_LIB_DIR="$(java-config --jdk-home)/jre/lib/${jvmarch}" fi einfo "Using bootclasspath ${bootclasspath}" einfo "Using JVM library path ${JAVA_LIB_DIR}" if [ ! -f ${JAVA_LIB_DIR}/libawt.so ] ; then die "Could not find libawt.so native library" fi export AWT_LIB_PATH=${JAVA_LIB_DIR} } setup-mozilla-opts() { mozilla_dir="--mozdir-unset---" if [ -f ${ROOT}/usr/lib/gecko-sdk/lib/libgtkembedmoz.so ] ; then mozilla_dir=/usr/lib/gecko-sdk else # TODO need to update this appropriately for gecko-sdk eerror "You have enabled the embedded mozilla component, but no suitable" eerror "provider was found. You need gecko-sdk compiled against" eerror "gtk+ v2.0 or newer." eerror "To merge it, execute 'USE=\"gtk2\" emerge mozilla' as root." eerror "To disable embedded mozilla, remove \"mozilla\" from your USE flags." die "Need Mozilla compiled with gtk+-2.x support" fi export GECKO_SDK="${mozilla_dir}" # TODO should this be using pkg-config? export GECKO_INCLUDES="-include ${GECKO_SDK}/include/mozilla-config.h \ -I${GECKO_SDK}/include/nspr \ -I${GECKO_SDK}/include/nspr \ -I${GECKO_SDK}/include/xpcom \ -I${GECKO_SDK}/include/string \ -I${GECKO_SDK}/include/embed_base \ -I${JAVA_HOME}/include/linux" export GECKO_LIBS="-L${GECKO_SDK}/lib -lgtkembedmoz" } build-native() { sh features/org.eclipse.platform.launchers/library/gtk/build.sh \ -os linux -ws gtk \ -arch ${eclipsearch} || die "Failed to build launcher" } create-desktop-entry() { sed -e "s/@PV@/${PV}/" ${FILESDIR}/eclipse-${SLOT}.desktop \ > eclipse-${SLOT}.desktop || die "Failed to create desktop entry" } install-desktop-entry() { dodir /usr/share/applications insinto /usr/share/applications doins eclipse-${SLOT}.desktop } install_link_file() { local path=${1} local file=${2} echo "path=${path}" > "${D}/${ECLIPSE_LINKS_DIR}/${file}" } install-link-files() { einfo "Installing link files" dodir ${ECLIPSE_LINKS_DIR} install_link_file /opt/eclipse-extensions-3 eclipse-binary-extensions-3.link install_link_file /opt/eclipse-extensions-3.1 eclipse-binary-extensions-3.1.link install_link_file /usr/lib/eclipse-extensions-3 eclipse-extensions-3.link install_link_file /usr/lib/eclipse-extensions-3.1 eclipse-extensions-3.1.link # install_link_file /var/lib/eclipse-3 eclipse-var-3.link # install_link_file /var/lib/eclipse-3.1 eclipse-var-3.1.link } strip-src() { local bp=${D}/${ECLIPSE_DIR} rm -rf ${bp}/plugins/org.eclipse.pde.source_3* \ ${bp}/plugins/org.eclipse.jdt.source_3* \ ${bp}/plugins/org.eclipse.platform.source.linux.* \ ${bp}/plugins/org.eclipse.platform.source_3* \ ${bp}/features/org.eclipse.jdt.source_3* \ ${bp}/features/org.eclipse.pde.source_3* \ ${bp}/features/org.eclipse.platform.source_3* } strip-docs() { local bp=${D}/${ECLIPSE_DIR} rm -rf ${bp}/plugins/org.eclipse.platform.doc.* \ ${bp}/plugins/org.eclipse.jdt.doc.* \ ${bp}/plugins/org.eclipse.pde.doc.* } ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 2006-04-20 16:03 ` Ivan Yosifov @ 2006-04-25 12:18 ` Ivan Yosifov 2006-05-01 21:19 ` Joshua Nichols 0 siblings, 1 reply; 14+ messages in thread From: Ivan Yosifov @ 2006-04-25 12:18 UTC (permalink / raw To: gentoo-java; +Cc: Joshua Nichols Am Donnerstag, 20. April 2006 19:03 schrieb Ivan Yosifov: > Am Mittwoch, 19. April 2006 18:15 schrieb Joshua Nichols: > > Ivan Yosifov wrote: > > > 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. > > > > I'll have to look into this, but it probably just needs to sanity > > checking for the vm_extra and company. > > > > Aside from that, what is the original of the ebuild for eclipse that you > > are using? Also, which VM are you using? I haven't been able to quite > > reproduce this problem... > > > > Josh > > I am using the eclipse-sdk-3.1.2-r1 ebuild from the main tree, attached > here for reference. I have sun-jdk 1.4.2.10-r13 and 1.5.0.06-r13 installed. > The problem with vm_patch seems to be that > > java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/" ( in > java-utils_get-vm-version ) > > returns just "1.5" and so > > vm_patch=$(echo ${vm_version} | cut -d. -f3) ( in > java-utils_is-vm-version-ge ) ends up being an empty string. There is no > third field to cut. Still an issue with eclipse-sdk-3.1.2-r2 and migration overlay revision 2129. -- Cheers, Ivan Yosifov. -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 2006-04-25 12:18 ` Ivan Yosifov @ 2006-05-01 21:19 ` Joshua Nichols 2006-05-01 23:45 ` Mathew Robertson 0 siblings, 1 reply; 14+ messages in thread From: Joshua Nichols @ 2006-05-01 21:19 UTC (permalink / raw To: Ivan Yosifov; +Cc: gentoo-java Ivan Yosifov wrote: > Am Donnerstag, 20. April 2006 19:03 schrieb Ivan Yosifov: > >> Am Mittwoch, 19. April 2006 18:15 schrieb Joshua Nichols: >> >>> Ivan Yosifov wrote: >>> >>>> 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. >>>> >>> I'll have to look into this, but it probably just needs to sanity >>> checking for the vm_extra and company. >>> >>> Aside from that, what is the original of the ebuild for eclipse that you >>> are using? Also, which VM are you using? I haven't been able to quite >>> reproduce this problem... >>> >>> Josh >>> >> I am using the eclipse-sdk-3.1.2-r1 ebuild from the main tree, attached >> here for reference. I have sun-jdk 1.4.2.10-r13 and 1.5.0.06-r13 installed. >> The problem with vm_patch seems to be that >> >> java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/" ( in >> java-utils_get-vm-version ) >> >> returns just "1.5" and so >> >> vm_patch=$(echo ${vm_version} | cut -d. -f3) ( in >> java-utils_is-vm-version-ge ) ends up being an empty string. There is no >> third field to cut. >> > > Still an issue with eclipse-sdk-3.1.2-r2 and migration overlay revision 2129. > > Could you check the contents of /usr/bin/java-config ? If it is a python script, try remerging java-config-wrapper. I just finished helping a user in #gentoo-java that was having the same issue, and that did the trick. Now, I need to track down why it's the original java-config, instead of the new wrapper for java-config.... - Josh -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 2006-05-01 21:19 ` Joshua Nichols @ 2006-05-01 23:45 ` Mathew Robertson 2006-05-02 3:53 ` Joshua Nichols 0 siblings, 1 reply; 14+ messages in thread From: Mathew Robertson @ 2006-05-01 23:45 UTC (permalink / raw Cc: gentoo-java I was also having similar problems yesterday, as I had just done a system update. re-emerging the java-config-wrapper has solved most of them - thanks for the tip. Mathew Robertson Joshua Nichols wrote: > Ivan Yosifov wrote: >> Am Donnerstag, 20. April 2006 19:03 schrieb Ivan Yosifov: >> >>> Am Mittwoch, 19. April 2006 18:15 schrieb Joshua Nichols: >>> >>>> Ivan Yosifov wrote: >>>> >>>>> 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. >>>>> >>>> I'll have to look into this, but it probably just needs to sanity >>>> checking for the vm_extra and company. >>>> >>>> Aside from that, what is the original of the ebuild for eclipse >>>> that you >>>> are using? Also, which VM are you using? I haven't been able to quite >>>> reproduce this problem... >>>> >>>> Josh >>>> >>> I am using the eclipse-sdk-3.1.2-r1 ebuild from the main tree, attached >>> here for reference. I have sun-jdk 1.4.2.10-r13 and 1.5.0.06-r13 >>> installed. >>> The problem with vm_patch seems to be that >>> >>> java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/" ( in >>> java-utils_get-vm-version ) >>> >>> returns just "1.5" and so >>> >>> vm_patch=$(echo ${vm_version} | cut -d. -f3) ( in >>> java-utils_is-vm-version-ge ) ends up being an empty string. There >>> is no >>> third field to cut. >>> >> >> Still an issue with eclipse-sdk-3.1.2-r2 and migration overlay >> revision 2129. >> >> > > Could you check the contents of /usr/bin/java-config ? If it is a > python script, try remerging java-config-wrapper. > > I just finished helping a user in #gentoo-java that was having the > same issue, and that did the trick. > > Now, I need to track down why it's the original java-config, instead > of the new wrapper for java-config.... > > - Josh -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 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 18:01 ` [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected Ivan Yosifov 0 siblings, 2 replies; 14+ messages in thread From: Joshua Nichols @ 2006-05-02 3:53 UTC (permalink / raw To: gentoo-java I found the root of the problem. java-config-wrapper was installing /usr/bin/java-config. This is basically a wrapper, as the name suggests. java-config-1 was installing /usr/bin/java-config-1. This was the old school java-config. java-config-2 was installing /usr/bin/java-config-2 .... AND installing the same thing to /usr/bin/java-config. A bit of an oversight on my part, so my apologies for the inconvenience. To fix this, I've bumped to java-config-2.0.22 and java-config-wrapper-0.8-r2. Please update to these versions. I can't stress how important it is keep everything in the overlay up to date, because packages will be bumped as bugs are found and fixed. Regardes, Josh Mathew Robertson wrote: > I was also having similar problems yesterday, as I had just done a > system update. re-emerging the java-config-wrapper has solved most of > them - thanks for the tip. > > Mathew Robertson > > Joshua Nichols wrote: >> Ivan Yosifov wrote: >>> Am Donnerstag, 20. April 2006 19:03 schrieb Ivan Yosifov: >>> >>>> Am Mittwoch, 19. April 2006 18:15 schrieb Joshua Nichols: >>>> >>>>> Ivan Yosifov wrote: >>>>> >>>>>> 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. >>>>>> >>>>> I'll have to look into this, but it probably just needs to sanity >>>>> checking for the vm_extra and company. >>>>> >>>>> Aside from that, what is the original of the ebuild for eclipse >>>>> that you >>>>> are using? Also, which VM are you using? I haven't been able to >>>>> quite >>>>> reproduce this problem... >>>>> >>>>> Josh >>>>> >>>> I am using the eclipse-sdk-3.1.2-r1 ebuild from the main tree, >>>> attached >>>> here for reference. I have sun-jdk 1.4.2.10-r13 and 1.5.0.06-r13 >>>> installed. >>>> The problem with vm_patch seems to be that >>>> >>>> java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/" ( in >>>> java-utils_get-vm-version ) >>>> >>>> returns just "1.5" and so >>>> >>>> vm_patch=$(echo ${vm_version} | cut -d. -f3) ( in >>>> java-utils_is-vm-version-ge ) ends up being an empty string. There >>>> is no >>>> third field to cut. >>>> >>> >>> Still an issue with eclipse-sdk-3.1.2-r2 and migration overlay >>> revision 2129. >>> >>> >> >> Could you check the contents of /usr/bin/java-config ? If it is a >> python script, try remerging java-config-wrapper. >> >> I just finished helping a user in #gentoo-java that was having the >> same issue, and that did the trick. >> >> Now, I need to track down why it's the original java-config, instead >> of the new wrapper for java-config.... >> >> - Josh -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* [gentoo-java] OT: eclipse auto-indent 2006-05-02 3:53 ` Joshua Nichols @ 2006-05-02 4:19 ` Mathew Robertson 2006-05-02 4:48 ` Qian Qiao 2006-05-02 18:01 ` [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected Ivan Yosifov 1 sibling, 1 reply; 14+ messages in thread From: Mathew Robertson @ 2006-05-02 4:19 UTC (permalink / raw To: gentoo-java This question is a little OT, but I can find any web references... How do I turn off the auto-indenting feature, in eclipse? thanks, Mathew -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] OT: eclipse auto-indent 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 0 siblings, 1 reply; 14+ messages in thread From: Qian Qiao @ 2006-05-02 4:48 UTC (permalink / raw To: Mathew Robertson; +Cc: gentoo-java On 5/2/06, Mathew Robertson <mathew.robertson@netratings.com.au> wrote: > This question is a little OT, but I can find any web references... > How do I turn off the auto-indenting feature, in eclipse? > Oops, replied to OP privately instead of to the list, here it goes again: What version of eclipse are you using? For 3.1, go Preferences -> Java -> Code Style -> Formatter. Create a new profile, then you can change the settings on the indentation tab. HTH. -- Joe -- There are 3 kinds of people in the world: Those who can count, and those who can't. -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] OT: eclipse auto-indent 2006-05-02 4:48 ` Qian Qiao @ 2006-05-02 4:50 ` Mathew Robertson 0 siblings, 0 replies; 14+ messages in thread From: Mathew Robertson @ 2006-05-02 4:50 UTC (permalink / raw To: gentoo-java ahh yep forgot version... 3.1.2 got it - thanks Mathew Qian Qiao wrote: > On 5/2/06, Mathew Robertson <mathew.robertson@netratings.com.au> wrote: >> This question is a little OT, but I can find any web references... >> How do I turn off the auto-indenting feature, in eclipse? >> > > Oops, replied to OP privately instead of to the list, here it goes again: > > What version of eclipse are you using? > > For 3.1, go Preferences -> Java -> Code Style -> Formatter. Create a > new profile, then you can change the settings on the indentation tab. > > HTH. > > -- Joe > > > > -- > There are 3 kinds of people in the world: > Those who can count, and those who can't. -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 2006-05-02 3:53 ` Joshua Nichols 2006-05-02 4:19 ` [gentoo-java] OT: eclipse auto-indent Mathew Robertson @ 2006-05-02 18:01 ` Ivan Yosifov 2006-05-02 18:29 ` Joshua Nichols 1 sibling, 1 reply; 14+ messages in thread From: Ivan Yosifov @ 2006-05-02 18:01 UTC (permalink / raw To: gentoo-java; +Cc: Joshua Nichols 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: 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. Am Dienstag, 2. Mai 2006 06:53 schrieb Joshua Nichols: > I found the root of the problem. java-config-wrapper was installing > /usr/bin/java-config. This is basically a wrapper, as the name suggests. > java-config-1 was installing /usr/bin/java-config-1. This was the old > school java-config. java-config-2 was installing /usr/bin/java-config-2 > .... AND installing the same thing to /usr/bin/java-config. A bit of an > oversight on my part, so my apologies for the inconvenience. > > To fix this, I've bumped to java-config-2.0.22 and > java-config-wrapper-0.8-r2. Please update to these versions. I can't > stress how important it is keep everything in the overlay up to date, > because packages will be bumped as bugs are found and fixed. > > Regardes, > > Josh > > Mathew Robertson wrote: > > I was also having similar problems yesterday, as I had just done a > > system update. re-emerging the java-config-wrapper has solved most of > > them - thanks for the tip. > > > > Mathew Robertson > > > > Joshua Nichols wrote: > >> Ivan Yosifov wrote: > >>> Am Donnerstag, 20. April 2006 19:03 schrieb Ivan Yosifov: > >>>> Am Mittwoch, 19. April 2006 18:15 schrieb Joshua Nichols: > >>>>> Ivan Yosifov wrote: > >>>>>> 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. > >>>>> > >>>>> I'll have to look into this, but it probably just needs to sanity > >>>>> checking for the vm_extra and company. > >>>>> > >>>>> Aside from that, what is the original of the ebuild for eclipse > >>>>> that you > >>>>> are using? Also, which VM are you using? I haven't been able to > >>>>> quite > >>>>> reproduce this problem... > >>>>> > >>>>> Josh > >>>> > >>>> I am using the eclipse-sdk-3.1.2-r1 ebuild from the main tree, > >>>> attached > >>>> here for reference. I have sun-jdk 1.4.2.10-r13 and 1.5.0.06-r13 > >>>> installed. > >>>> The problem with vm_patch seems to be that > >>>> > >>>> java-config -f | sed -e "s/.*-\([0-9.]\+\).*/\1/" ( in > >>>> java-utils_get-vm-version ) > >>>> > >>>> returns just "1.5" and so > >>>> > >>>> vm_patch=$(echo ${vm_version} | cut -d. -f3) ( in > >>>> java-utils_is-vm-version-ge ) ends up being an empty string. There > >>>> is no > >>>> third field to cut. > >>> > >>> Still an issue with eclipse-sdk-3.1.2-r2 and migration overlay > >>> revision 2129. > >> > >> Could you check the contents of /usr/bin/java-config ? If it is a > >> python script, try remerging java-config-wrapper. > >> > >> I just finished helping a user in #gentoo-java that was having the > >> same issue, and that did the trick. > >> > >> Now, I need to track down why it's the original java-config, instead > >> of the new wrapper for java-config.... > >> > >> - Josh -- Cheers, Ivan Yosifov. -- gentoo-java@gentoo.org mailing list ^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: [gentoo-java] migration/eclass/java-utils.eclass: line 97: [: -ge: unary operator expected 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 0 siblings, 0 replies; 14+ messages in thread From: Joshua Nichols @ 2006-05-02 18:29 UTC (permalink / raw To: Ivan Yosifov; +Cc: gentoo-java 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 ^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2006-05-02 18:30 UTC | newest] Thread overview: 14+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 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 is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox