Never has for me. I always end up adding it to package.mask - but no more! I have the latest Sun JDK. >>> md5 src_uri ;-) apache-ant-1.6.0-src.tar.bz2 >>> Unpacking source... >>> Unpacking apache-ant-1.6.0-src.tar.bz2 to /var/tmp/portage/ant-1.6.0-r2/work * Applying build.sh-exit-fix.patch.gz... [ ok ]>>> Source unpacked. ... Bootstrapping Ant Distribution ... Compiling Ant Classes src/main/org/apache/tools/ant/Location.java:125: cannot resolve symbol symbol : method fromURI (java.lang.String) location: class org.apache.tools.ant.util.FileUtils this.fileName = FileUtils.newFileUtils().fromURI(fileName); ^ src/main/org/apache/tools/ant/Target.java:229: cannot resolve symbol symbol : class EmptyEnumeration location: class org.apache.tools.ant.util.CollectionUtils return new CollectionUtils.EmptyEnumeration(); ^ src/main/org/apache/tools/ant/DirectoryScanner.java:699: cannot resolve symbol symbol : method rtrimWildcardTokens (java.lang.String) location: class org.apache.tools.ant.types.selectors.SelectorUtils SelectorUtils.rtrimWildcardTokens(includes[icounter]); ^ src/main/org/apache/tools/ant/types/selectors/MappingSelector.java:81: cannot resolve symbol symbol : method getFileTimestampGranularity () location: class org.apache.tools.ant.util.FileUtils granularity = (int) FileUtils.newFileUtils().getFileTimestampGranularity(); ^ src/main/org/apache/tools/ant/RuntimeConfigurable.java:278: cannot resolve symbol symbol : class EmptyEnumeration location: class org.apache.tools.ant.util.CollectionUtils return new CollectionUtils.EmptyEnumeration(); ^ src/main/org/apache/tools/ant/Diagnostics.java:240: cannot resolve symbol symbol : method getClassSource (java.lang.Class) location: class org.apache.tools.ant.util.LoaderUtils File f = LoaderUtils.getClassSource(clazz); ^ src/main/org/apache/tools/ant/taskdefs/FixCRLF.java:568: cannot resolve symbol symbol : method rename (java.io.File,java.io.File) location: class org.apache.tools.ant.util.FileUtils fileUtils.rename(tmpFile, destFile); ^ src/main/org/apache/tools/ant/taskdefs/Copy.java:645: cannot resolve symbol symbol : method copyFile (java.lang.String,java.lang.String,org.apache.tools.ant.types.FilterSetCollection,java.util.Vector,boolean,boolean,java.lang.String,java.lang.String,org.apache.tools.ant.Project) location: class org.apache.tools.ant.util.FileUtils fileUtils.copyFile(fromFile, toFile, executionFilters, ^ src/main/org/apache/tools/ant/taskdefs/Zip.java:422: cannot resolve symbol symbol : method rename (java.io.File,java.io.File) location: class org.apache.tools.ant.util.FileUtils fileUtils.rename(zipFile, renamedFile); ^ src/main/org/apache/tools/ant/taskdefs/Zip.java:539: cannot resolve symbol symbol : method rename (java.io.File,java.io.File) location: class org.apache.tools.ant.util.FileUtils fileUtils.rename(renamedFile, zipFile); ^ src/main/org/apache/tools/ant/taskdefs/Move.java:267: cannot resolve symbol symbol : method copyFile (java.io.File,java.io.File,org.apache.tools.ant.types.FilterSetCollection,java.util.Vector,boolean,boolean,java.lang.String,java.lang.String,org.apache.tools.ant.Project) location: class org.apache.tools.ant.util.FileUtils getFileUtils().copyFile(fromFile, toFile, executionFilters, ^ src/main/org/apache/tools/ant/taskdefs/Rename.java:125: cannot resolve symbol symbol : method rename (java.io.File,java.io.File) location: class org.apache.tools.ant.util.FileUtils FileUtils.newFileUtils().rename(src, dest); ^ src/main/org/apache/tools/ant/taskdefs/Replace.java:462: cannot resolve symbol symbol : method rename (java.io.File,java.io.File) location: class org.apache.tools.ant.util.FileUtils fileUtils.rename(temp, src); ^ src/main/org/apache/tools/ant/helper/ProjectHelper2.java:223: cannot resolve symbol symbol : method getNamespaceXMLReader () location: class org.apache.tools.ant.util.JAXPUtils XMLReader parser = JAXPUtils.getNamespaceXMLReader(); ^ src/main/org/apache/tools/ant/helper/ProjectHelper2.java:227: cannot resolve symbol symbol : method toURI (java.lang.String) location: class org.apache.tools.ant.util.FileUtils uri = fu.toURI(buildFile.getAbsolutePath()); ^ src/main/org/apache/tools/ant/helper/ProjectHelper2.java:450: cannot resolve symbol symbol : method fromURI (java.lang.String) location: class org.apache.tools.ant.util.FileUtils String path = fu.fromURI(systemId); ^ src/main/org/apache/tools/ant/helper/ProjectHelper2.java:459: cannot resolve symbol symbol : method toURI (java.lang.String) location: class org.apache.tools.ant.util.FileUtils inputSource.setSystemId(fu.toURI(file.getAbsolutePath())); ^ Note: Some input files use or override a deprecated API. Note: Recompile with -deprecation for details. 17 errors ... Failed compiling Ant classes ! Bootstrap FAILED !!! ERROR: dev-java/ant-1.6.0-r2 failed. !!! Function src_compile, Line 41, Exitcode 1 !!! (no error message) Reproducible: Always Steps to Reproduce: 1. 2. 3.
mightymax linux-2.6.2_rc1-love1 # java-config -L [sun-j2sdk-1.4.2] "Sun JDK 1.4.2" (/etc/env.d/java/20sun-j2sdk-1.4.2) * mightymax linux-2.6.2_rc1-love1 # java-config -O /opt/sun-j2sdk-1.4.2
Can you post "emerge info" output ?
mightymax root # emerge info Portage 2.0.50_pre16 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.6.1-rc1-love3) ================================================================= System uname: 2.6.1-rc1-love3 i686 Celeron (Coppermine) Gentoo Base System version 1.4.3.12 Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.7.8 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -frename-registers -mfpmath=sse,387 -msse -mmmx" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=pentium3 -O2 -pipe -fomit-frame-pointer -frename-registers -mfpmath=sse,387 -msse -mmmx" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://distro.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.gentoo.org/gentoo-portage" USE="X aalib alsa apache2 arts avi berkdb bonobo crypt cups dnd dvd encode esd evo fbcon foomaticdb gdbm ggi gif gnome gpm gtk gtk2 gtkhtml guile imap imlib innodb java jpeg kde ldap libg++ libwww mad maildir mbox mikmod mng mozilla moznoirc moznomail mozp3p mozsvg mozxmlterm mpeg nas ncurses nls nptl oggvorbis openal opengl pam pdflib perl plotutils png postgres python qt quicktime readline samba sasl sdl slang spell sse ssl svga tcltk tcpd truetype usb wmf wxwindows x86 xml2 xmms xv xvid zlib"
I tried to compile it from script: the problem is in bootstrap.sh at line 118, when it try to copile ant without its util. I don't think i can write a patch for this script but if you have a older version of ant you can compile it with build.xml. It's easy run ant from bash. It works. This is not a solution for the emerge.
To solve this probelm you have to unmerge old version of ant and go on with upgrade... if you have ant 1.5.4 on your computer ebuild should compile the new version with build.xml. My suggestion, nothing else! So try... emerge -C dev-java/ant emerge dev-java/ant
That worked. So should the ebuild be stating ant-1.5.6 and below as blockers than need to be removed first?
Is this bug considered closed??
No. The ant ebuild should either be blocked by a previous ant install or suggest unmerging ant if the initial attempt to emerge fails.
Fixed in 1.6.0-r3 Cheers.