Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 252324 - dev-java/ant-nodeps-1.7.1 and /usr/share/ant/lib/ant-nodeps.jar collision
Summary: dev-java/ant-nodeps-1.7.1 and /usr/share/ant/lib/ant-nodeps.jar collision
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Java (show other bugs)
Hardware: AMD64 Linux
: High blocker (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-23 23:10 UTC by Maciej Józiewicz
Modified: 2008-12-25 18:23 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 Maciej Józiewicz 2008-12-23 23:10:12 UTC
The 1.7.0 version has this file in /usr/share/ant-nodeps/lib/ant-nodeps.jar and the new version puts it in the place of a file owned by dev-java/ant-tasks-1.7.0-r4 so my usuall 'emerge -DuNva world' is halted at this point. (on my system ant-nodeps is pulled in by netbeans-5.5.1-r1 and also a few others which are not in world)

Reproducible: Always

Steps to Reproduce:
1.Install dev-java/ant-nodeps-1.7.1 while having dev-java/ant-tasks-1.7.0-r4 (and possibly other versions...)
Actual Results:  
I got this message:
 * Messages for package dev-java/ant-nodeps-1.7.1:

 * Using: sun-jdk-1.6
 * Disabling all optional ANT_TASKS
 * This package will overwrite one or more files that may belong to other
 * packages (see list below). You can use a command such as `portageq
 * owners / <filename>` to identify the installed package that owns a
 * file. If portageq reports that only one package owns a file then do
 * NOT file a bug report. A bug report is only useful if it identifies at
 * least two or more packages that are known to install the same file(s).
 * If a collision occurs and you can not explain where the file came from
 * then you should simply ignore the collision since there is not enough
 * information to determine if a real problem exists. Please do NOT file
 * a bug report at http://bugs.gentoo.org unless you report exactly which
 * two packages install the same file(s). Once again, please do NOT file
 * a bug report unless you have completely understood the above message.
 * 
 * Detected file collision(s):
 * 
 * 	/usr/share/ant/lib/ant-nodeps.jar
 * 
 * Searching all installed packages for file collisions...
 * 
 * Press Ctrl-C to Stop
 * 
 * dev-java/ant-tasks-1.7.0-r4
 * 	/usr/share/ant/lib/ant-nodeps.jar
 * 
 * Package 'dev-java/ant-nodeps-1.7.1' NOT merged due to file collisions.
 * If necessary, refer to your elog messages for the whole content of the
 * above message.



Expected Results:  
It should probably install it like the older version...I guess...

nomad Desktop # emerge --info
Portage 2.1.6.2 (default/linux/amd64/2008.0/desktop, gcc-4.1.2, glibc-2.6.1-r0, 2.6.28-rc9 x86_64)
=================================================================
System uname: Linux-2.6.28-rc9-x86_64-Intel-R-_Pentium-R-_Dual_CPU_T2370_@_1.73GHz-with-glibc2.2.5
Timestamp of tree: Tue, 23 Dec 2008 20:15:04 +0000
app-shells/bash:     3.2_p33
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
dev-util/cmake:      2.4.7-r1
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.61-r2
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.1-r1
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.23-r3
ACCEPT_KEYWORDS="amd64"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/config /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps=y"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="http://ftp.vectranet.pl/gentoo/ ftp://ftp.vectranet.pl/gentoo/ http://gentoo.prz.rzeszow.pl http://gentoo.zie.pg.gda.pl http://gentoo.po.opole.pl ftp://gentoo.po.opole.pl ftp://mirror.icis.pcz.pl/gentoo/ http://gentoo.mirror.pw.edu.pl/ "
LANG="pl_PL.utf8"
LC_ALL="pl_PL.utf8"
LDFLAGS="-Wl,-O1"
LINGUAS="pl en"
MAKEOPTS="-j3"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/wschlich-testing /usr/portage/local/layman/x11 /usr/portage/local/layman/synce /usr/portage/local/layman/sunrise /usr/portage/local/layman/rbu /usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac aalib acl acpi alsa amd64 apm avahi bash-completion berkdb bluetooth branding bzip2 cairo caps cddb cdr cli cracklib crypt css cups curl cxx dbus dedicated dga djvu doc dri dts dvd dvdr dvdread eds emboss encode esd evo exif fbcon ffmpeg flac fltk fortran ftp gd gdbm gif gimp glut gnome gnome-keyring gnutls gphoto2 gpm gstreamer gtk gtkhtml guile hal hddtemp iconv idn ieee1394 imagemagick imlib ipv6 java javascript jbig joystick jpeg jpeg2k kerberos lame latex lcms ldap libcaca libgda libnotify lm_sensors lzo mad matroska midi mikmod mime mmx mng mono mp3 mpeg mplayer mudflap multilib musepack ncurses networkmanager nls nptl nptlonly nsplugin offensive ogg openal openexr opengl openmp pam pcmcia pcre pda pdf perl png portaudio ppds python qt3 qt3support qt4 quicktime rdesktop readline reflection samba scanner sdl session slang speex spell sse sse2 ssl startup-notification svg sysfs tcpd theora threads tiff timidity tk truetype unicode usb vcd videos vim-syntax vorbis wavpack wifi wma wmf x264 xattr xcb xine xinerama xml xorg xosd xpm xulrunner xv xvid zlib" ALSA_CARDS="hda-intel" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="evdev synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="pl en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Vlastimil Babka (Caster) (RETIRED) gentoo-dev 2008-12-25 00:42:05 UTC
Discussed this with zmedico and to make blockers work in new portage, they need to be direct, it's not enough that ant-nodeps-1.7.1 needs ant-core-1.7.1 which blocks ant-tasks. The blocks must be also in each task, so I added it to ant-tasks.eclass via the patch below. This will make portage >=2.1.6 resolve the block automatically and uninstall ant-tasks (unless it's in world). Fixed, thanks.

Index: ant-tasks.eclass
===================================================================
RCS file: /var/cvsroot/gentoo-x86/eclass/ant-tasks.eclass,v
retrieving revision 1.6
diff -u -B -r1.6 ant-tasks.eclass
--- ant-tasks.eclass    14 Jul 2008 21:38:14 -0000      1.6
+++ ant-tasks.eclass    25 Dec 2008 00:37:08 -0000
@@ -104,6 +104,12 @@
 DEPEND=">=virtual/jdk-${ANT_TASK_JDKVER}
        ${RDEPEND}"

+# we need direct blockers with old ant-tasks for file collisions - bug #252324
+if version_is_at_least 1.7.1 ; then
+       DEPEND="${DEPEND}
+               !dev-java/ant-tasks"
+fi
+
 # Would run the full ant test suite for every ant task
 RESTRICT="test"

Comment 2 Maciej Józiewicz 2008-12-25 18:23:32 UTC
You're great to do this stuff even on Xmas. Thanks a lot guys (and/or gals).

Have a happy new year ;]