Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 41158 - dev-java/ant-1.6.0-r3 doesn't install /usr/bin/ant
Summary: dev-java/ant-1.6.0-r3 doesn't install /usr/bin/ant
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-02-10 13:57 UTC by Howard B. Golden
Modified: 2004-02-11 17:39 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 Howard B. Golden 2004-02-10 13:57:16 UTC
While emerging dev-java/junit-3.8.1, I receive the following error:

/usr/sbin/ebuild.sh: line 27: ant: command not found

!!! ERROR: dev-java/junit-3.8.1 failed.
!!! Function src_compile, Line 27, Exitcode 127
!!! (no error message)

Note: I have dev-java/ant-1.6.0-r3 installed, but not dev-ant/ant-optional. I don't know if dev-ant/optional is required for junit.


Reproducible: Always
Steps to Reproduce:
1. #using ~x86
2. emerge -uv junit

Actual Results:  
See error message above.


Expected Results:  
Should have emerged junit-3.8.1.

Portage 2.0.50-r1 (default-x86-1.4, gcc-3.3.2, glibc-2.3.3_pre20040207-r0,
2.6.1-gentoo-r1)
=================================================================
System uname: 2.6.1-gentoo-r1 i686 AMD Athlon(tm) XP 2200+
Gentoo Base System version 1.4.3.13
Autoconf: sys-devel/autoconf-2.59
Automake: sys-devel/automake-1.8.2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CFLAGS="-mcpu=athlon-xp -O2 -pipe"
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.2/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="-mcpu=athlon-xp -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox usersandbox"
GENTOO_MIRRORS="ftp://mirror.iawnet.sandia.gov/pub/gentoo/
http://gentoo.seren.com/gentoo ftp://csociety-ftp.ecn.purdue.edu/pub/gentoo/"
MAKEOPTS="-j1"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow X Xaw3d acl acpi acpi4linux alsa amd antlr apache2 apm arts
artswrappersuid avi berkdb bonobo cdr crypt cups directfb dnd doc dv dvd dvdr
encode esd ethereal evo fbcon fbdev foomaticdb foreign-package foreign-sysvinit
freetds gb gd gd-external gdbm gif ginac gnome gnomedb gpm gstreamer gtk gtk2
gtkhtml guile imap imlib innodb ipv6 java jikes jpeg junit kde kerberos ldap
libg++ libgda libwww mad maildir mbox mdb mikmod mmx motif mozilla moznoirc
moznomail mpeg mysql ncurses nls nptl oci8 odbc ofx oggvorbis opengl oss pam pda
pdflib perl pg-hier pic plotutils png postgres ppds python qt quicktime radeon
readline ruby ruby18 samba sasl sdk sdl slang slp snmp spell sse ssl svga tcltk
tcpd tetex tiff truetype type1 usb wmf wxwindows x86 xml xml2 xmms xv zeo zlib"
Comment 1 Howard B. Golden 2004-02-10 14:17:38 UTC
I tried re-emerging dev-java/ant. I got the following messages at the install step:

>>> Install ant-1.6.0-r3 into /var/tmp/portage/ant-1.6.0-r3/image/ category dev-java
cp: cannot stat `/usr/portage/dev-java/ant/files/1.6.0-r3/ant': No such file or directory
install: cannot stat `src/ant': No such file or directory
>>> dobin: making /var/tmp/portage/ant-1.6.0-r3/work/apache-ant-1.6.0/src/script/antRun executable...
>>> dobin: making /var/tmp/portage/ant-1.6.0-r3/work/apache-ant-1.6.0/src/script/runant.pl executable...
>>> dobin: making /var/tmp/portage/ant-1.6.0-r3/work/apache-ant-1.6.0/src/script/runant.py executable...
>>> dobin: making /var/tmp/portage/ant-1.6.0-r3/work/apache-ant-1.6.0/src/script/complete-ant-cmd.pl executable...
d

So perhaps this ebuild didn't create /usr/bin/ant? I don't understand this part of the ebuild, but it isn't working properly, IMO.
Comment 2 Howard B. Golden 2004-02-10 14:20:20 UTC
I see this problem was reported in comment 7 to bug #40274.
Comment 3 Howard B. Golden 2004-02-10 15:04:50 UTC
I've revised the summary, since the problem is in the dev-java/ant-1.6.0-r3 ebuild, not dev-java/junit-3.8.1.

When I copy the ant executable to /usr/bin/ant, everything works with dev-java/junit-3.8.1. I'm still not sure how to fix the dev-java/ant-1.6.0-r3 ebuild, since I don't completely understand ebuild conventions.
Comment 4 Andreas Turriff 2004-02-11 09:41:28 UTC
Installing Ant with FEATURES="-sandbox" fixed it for me. That can't be the solution, though, only a workaround.
Comment 5 Adrian Almenar 2004-02-11 17:39:49 UTC
Ok, the thing is that i forgetted to commit the ant script so it got broken, with an emerge sync; emerge -v dev-java/ant should fix it. It was solved yesterday.