Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39165 - Upgrade from ant-1.6.0 to ant-1.6.0-r2 broke <replaceregexp> task from ant-contrib
Summary: Upgrade from ant-1.6.0 to ant-1.6.0-r2 broke <replaceregexp> task from ant-co...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-23 08:13 UTC by Haroon Rafique
Modified: 2004-01-23 15:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Haroon Rafique 2004-01-23 08:13:50 UTC
Just recently upgraded from ant-1.6.0 to ant-1.6.0-r2 and my <taskdef> for ant-contrib broke.

I get an error as follows:

build.xml:216: Could not create task or type of type: replaceregexp.

Ant could not find the task or a class this task relies upon.

Line 216 is where the <replaceregexp> is being called. (Not that it matters, but the <taskdef> for ant-contrib is in another file properties.xml).

Reverting back to ant-1.6.0.ebuild (downloaded from the Attic):
http://www.gentoo.org/cgi-bin/viewcvs.cgi/*checkout*/dev-java/ant/Attic/ant-1.6.0.ebuild?rev=HEAD&content-type=text/plain
fixes the problem from me.

Its ironic that the latest log entry on that ebuild says:
"Removed Broken ant version."

Let me know if I can help diagnose this.  So, looks like this is definitely a problem in the new .ebuild (New method for building ant.) and not in ant since ant sources are the same.
Comment 1 Haroon Rafique 2004-01-23 08:15:18 UTC
output from java-config -L:

[sun-jdk-1.4.2.03] "Sun JDK 1.4.2.03" (/etc/env.d/java/20sun-jdk-1.4.2.03) *
[ibm-jdk-1.4.1] "IBM JDK 1.4.1" (/etc/env.d/java/20ibm-jdk-1.4.1)
[blackdown-jdk-1.4.1] "Blackdown JDK 1.4.1" (/etc/env.d/java/20blackdown-jdk-1.4.1)

emerge --info output:

Portage 2.0.50_pre19 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040117-r0, 2.4.24-ck1)
=================================================================
System uname: 2.4.24-ck1 i686 Intel(R) Pentium(R) 4 CPU 2.60GHz
Gentoo Base System version 1.4.3.12
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.7.8
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
CXXFLAGS="-march=pentium4 -O3 -pipe -s -fomit-frame-pointer -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -ffast-math"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox userpriv usersandbox"
GENTOO_MIRRORS="ftp://ftp.ussg.iu.edu/pub/linux/gentoo http://gentoo.noved.org/ http://mirrors.tds.net/gentoo ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage.local"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X aalib alsa apache2 apm arts avi berkdb bonobo cdr crypt cups encode esd foomaticdb gdbm gif gpm gtk gtk2 gtkhtml guile imlib java jikes jpeg junit ldap libg++ libwww mad mbox mikmod motif mozilla mpeg mysql ncurses nls offensive oggvorbis opengl oss pam pdflib perl png postgres python qt quicktime readline sdl slang spell ssl svga tcltk tcpd tetex tiff truetype x86 xml2 xmms xv zlib"
Comment 2 Adrian Almenar 2004-01-23 11:24:27 UTC
Please read my comment (Number 6) on this bug report:

http://bugs.gentoo.org/show_bug.cgi?id=35921#c6
Comment 3 Haroon Rafique 2004-01-23 14:03:24 UTC
Silly me, I apologize. Things are a lot better after:

emerge -C ant
emerge -pv dev-java/ant ant-optional
emerge ant ant-optional

Perhaps something in the ebuild to alert users about the new ant-optional (its new isn't, it?) ebuild would be good.

Cheers.
Comment 4 Adrian Almenar 2004-01-23 15:33:22 UTC
There's no need cause if you activated optional-tasks USE flag on ant, ant-optional will be automatically installed after ant is installed.