Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 184078 - circular dependency for dev-java/ant
Summary: circular dependency for dev-java/ant
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-07-03 10:27 UTC by Sascha Wuestemann
Modified: 2007-07-03 12:36 UTC (History)
0 users

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


Attachments
emerge -uDpvt world (emerge.world,17.00 KB, text/plain)
2007-07-03 10:56 UTC, Sascha Wuestemann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sascha Wuestemann 2007-07-03 10:27:55 UTC
My update world likes to install dev-java/xml-commons-external-1.3.04 which fails because "ant: command not found" which is true, because it is not installed.

So I want to install dev-java/ant, but this also fails, because the first dependency also needs ant to execute. See these snippets:

--snip-on--
# emerge -pv dev-java/ant

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] dev-java/jakarta-oro-2.0.8-r2  USE="-doc -examples -source" 0 kB 
[ebuild  N    ] dev-java/ant-nodeps-1.7.0  0 kB 
[ebuild  N    ] dev-java/xml-commons-external-1.3.04  USE="-doc -source" 0 kB 
[ebuild  N    ] dev-java/xml-commons-resolver-1.2  USE="-doc -source" 257 kB 
[ebuild  N    ] dev-java/bcel-5.2  USE="-doc -source" 256 kB 
[ebuild  N    ] dev-java/commons-logging-1.1-r2  USE="-avalon-framework -avalon-logkit -doc -log4j -servletapi -source" 170 kB 
[ebuild  N    ] dev-java/ant-swing-1.7.0  0 kB 
[ebuild  N    ] dev-java/ant-jmf-1.7.0  0 kB 
[ebuild  N    ] dev-java/jzlib-1.0.7-r1  USE="-doc -source" 50 kB 
[ebuild  N    ] dev-java/junit-3.8.2-r1  USE="-doc -source" 451 kB 
[ebuild  N    ] dev-java/ant-antlr-1.7.0  0 kB 
[ebuild     U ] dev-java/log4j-1.2.14-r1 [1.2.8] USE="-doc -javamail% -jms% -jmx% -source%" 2,707 kB 
[ebuild  N    ] dev-java/jakarta-regexp-1.4-r1  USE="-doc -source" 135 kB 
[ebuild  N    ] dev-java/libreadline-java-0.8.0-r2  USE="-doc -source" 76 kB 
[ebuild  N    ] dev-java/jakarta-regexp-1.3-r4  USE="-doc -source" 125 kB 
[ebuild  N    ] dev-java/xjavac-20041208-r5  2 kB 
[ebuild  N    ] dev-java/javacup-0.11a_beta20060608  USE="-doc -source" 280 kB 
[ebuild  N    ] dev-java/jdepend-2.9-r4  USE="-doc -source" 296 kB 
[ebuild  N    ] dev-java/ant-junit-1.7.0  0 kB 
[ebuild  N    ] dev-java/xalan-serializer-2.7.0  USE="-doc -source" 6,118 kB 
[ebuild  N    ] dev-java/commons-net-1.4.1-r1  USE="-doc -examples -source" 224 kB 
[ebuild  N    ] dev-java/ant-apache-resolver-1.7.0  0 kB 
[ebuild  N    ] dev-java/jsch-0.1.33  USE="-doc -examples -source" 260 kB 
[ebuild  N    ] dev-java/ant-apache-bcel-1.7.0  0 kB 
[ebuild  N    ] dev-java/ant-apache-oro-1.7.0  0 kB 
[ebuild  N    ] dev-java/ant-apache-log4j-1.7.0  0 kB 
[ebuild  N    ] dev-java/ant-apache-regexp-1.7.0  0 kB 
[ebuild  N    ] dev-java/jython-2.1-r11  USE="readline -doc -source" 1,272 kB 
[ebuild  N    ] dev-java/ant-commons-logging-1.7.0  0 kB 
[ebuild  N    ] dev-java/ant-jdepend-1.7.0  0 kB 
[ebuild  N    ] dev-java/ant-commons-net-1.7.0  0 kB 
[ebuild  N    ] dev-java/ant-jsch-1.7.0-r1  0 kB 
[ebuild  NS   ] dev-java/xerces-2.9.0  USE="-doc -examples -source" 1,661 kB 
[ebuild  N    ] dev-java/xalan-2.7.0-r4  USE="-doc -source" 0 kB 
[ebuild  N    ] dev-java/bsf-2.4.0-r1  USE="python -doc -examples -javascript -source -tcl" 293 kB 
[ebuild  N    ] dev-java/ant-trax-1.7.0  0 kB 
[ebuild  N    ] dev-java/ant-apache-bsf-1.7.0-r1  0 kB 
[ebuild  N    ] dev-java/ant-tasks-1.7.0-r2  USE="-jai -javamail -noantlr -nobcel -nobsf -nocommonslogging -nocommonsnet -nojdepend -nojmf -nojsch -nolog4j -nooro -noregexp -noresolver -noswing -noxalan" 0 kB 
[ebuild  N    ] dev-java/ant-1.7.0  0 kB 
--snip-off--

--snip-on---
 * Using: sun-jdk-1.6
>>> Unpacking source...
>>> Unpacking jakarta-oro-2.0.8.tar.gz to /mnt/hdc3/tmp2/portage/dev-java/jakarta-oro-2.0.8-r2/work
tar: A lone zero block at 4643
>>> Source unpacked.
Rewriting source attributes
Using Sax to rewrite the build.xml files
Rewriting ./build.xml
Rewriting target attributes
Using Sax to rewrite the build.xml files
Rewriting ./build.xml
Rewriting nowarn attributes
Using Sax to rewrite the build.xml files
Rewriting ./build.xml
>>> Compiling source in /mnt/hdc3/tmp2/portage/dev-java/jakarta-oro-2.0.8-r2/work/jakarta-oro-2.0.8 ...
 * Using all available ANT_TASKS
/usr/portage/eclass/java-utils-2.eclass: line 1894: ant: command not found
 * 
 * ERROR: dev-java/jakarta-oro-2.0.8-r2 failed.
--snip-off--

Now I am stuck and can't update those packages that depend on ant or depend on other packages that depend on ant, because I can't install ant.

Reproducible: Always

Steps to Reproduce:




Portage 2.1.3_rc6 (default-linux/x86/2006.1, gcc-4.1.2, glibc-2.5-r3, 2.6.15-vs2.0.1-gentoo-r5-killerghost i686)
=================================================================
System uname: 2.6.15-vs2.0.1-gentoo-r5-killerghost i686 AMD Duron(tm)
Gentoo Base System release 1.12.10
Timestamp of tree: Mon, 02 Jul 2007 00:20:01 +0000
ccache version 2.4 [enabled]
dev-java/java-config: 1.3.7, 2.0.33-r1
dev-lang/python:     2.2.3-r1, 2.3.6-r2, 2.4.4-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     2.4-r7
sys-apps/sandbox:    1.2.18.1
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.17
sys-devel/gcc-config: 1.3.16
sys-devel/libtool:   1.5.24
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=i586 -O3 -pipe -fomit-frame-pointer"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.1/share/config /usr/kde/3.3/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/mozilla/defaults/pref /usr/share/X11/xkb /usr/share/config /var/bind"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-march=i586 -O3 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userpriv"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="de_DE"
LC_ALL="C"
LINGUAS="de en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/usr/tmp2"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow X X509 Xaw3d aalib acpi alsa apache2 audiofile avi berkdb bindist bitmap-fonts chroot cli cracklib crypt cscope cups curl curlwrappers dedicated dri dvd dvdr encode esd ethereal fastcgi fbcon flac flash foomaticdb fortran freetds gcj gd gdbm ggi gif gmp gphoto2 gpm gstreamer gtk gtk2 hardened icc iconv imagemagick imap imlib innodb ipv6 isdnlog java jikes jpeg kde lcms ldap lesstif libg++ mad maildir mbox mcal memlimit midi mikmod mmx motif mozilla mpeg mpi mudflap mysql nas ncurses nhc98 nls nocd nptl nptlonly odbc offensive oggvorbis openmp oss pam pcre pda pdf perl png postgres ppds pppd prelude python qt quicktime readline reflection samba sasl sdl serial session skey slang slp snmp socks5 speex spell spl ssl svg tcltk tcpd theora threads tiff truetype truetype-fonts type1-fonts unicode usb videos wmf wxwindows x86 xml xml2 xorg xosd xv zlib" ALSA_CARDS="intel8x0 sb8 sb16 sbawe ens1370 ens1371" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="de en" USERLAND="GNU" VIDEO_CARDS="vesa fbdev nv nvida radeon"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2007-07-03 10:42:33 UTC
If there was a circular dependency, Portage should tell you that. Please post or attach the output of:
emerge -pv ant-core
emerge -uDpvt world
Comment 2 Sascha Wuestemann 2007-07-03 10:56:53 UTC
Created attachment 123758 [details]
emerge -uDpvt world
Comment 3 Sascha Wuestemann 2007-07-03 10:57:56 UTC
# emerge -pv ant-core

These are the packages that would be merged, in order:

Calculating dependencies  ..... ..... ..... ....... done!
[ebuild   R   ] dev-java/ant-core-1.7.0  USE="-doc -source" 0 kB 

Total: 1 package (1 reinstall), Size of downloads: 0 kB
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2007-07-03 11:56:09 UTC
(In reply to comment #3)
> 
> Calculating dependencies  ..... ..... ..... ....... done!
> [ebuild   R   ] dev-java/ant-core-1.7.0  USE="-doc -source" 0 kB 
> 

How can you not have the ant command then?
betelgeuse@pena /usr/portage/dev-java/jakarta-oro $ qfile /usr/bin/ant
dev-java/ant-core (/usr/bin/ant)

please run the same command and check that your /usr/bin/ant is executable (you might have accidentally changed permissions etc)
Comment 5 Sascha Wuestemann 2007-07-03 12:36:50 UTC
killerghost ~ # qfile /usr/bin/ant
dev-java/ant-core (/usr/bin/ant)
killerghost ~ # ls -l /usr/bin/ant
ls: cannot access /usr/bin/ant: No such file or directory
killerghost ~ # which ant
which: no ant in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/bin:/usr/i586-pc-linux-gnu/gcc-bin/4.1.2:/opt/Acrobat5:/opt/blackdown-jdk-1.4.2.03/bin:/opt/blackdown-jdk-1.4.2.03/jre/bin:/usr/kde/3.5/sbin:/usr/kde/3.5/bin:/usr/qt/3/bin:/usr/kde/3.3/sbin:/usr/kde/3.3/bin:/usr/kde/3.1/sbin:/usr/kde/3.1/bin:/usr/qt/2/bin)

Rebuilding this package was successful.

killerghost ~ # which ant
/usr/bin/ant

I might have accidentely deleted this file, assuming it belonged to something different, but I am not shure. Nevertheless, everything is fine, now.

Thanks for your immediate help.
Greetings from Braunscheig, Germany.