Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 26674

Summary: Binary packages escape package moves
Product: Portage Development Reporter: Narada Sage <narada.sage>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: VERIFIED NEEDINFO    
Severity: normal CC: axxackall, eradicator, pYrania, seemant, thomasgeiger
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Narada Sage 2003-08-15 08:18:28 UTC
$ emerge -Duvp world

emerge -Duvp world

These are the packages that I would merge, in order:

Calculating world dependencies ...done!
[ebuild     U ] dev-java/java-config-0.2.8-r1 [0.2.8] 
[ebuild     U ] dev-libs/memcached-api-php-1.0.10 [1.0.9] 
[ebuild  N    ] app-admin/gentoolkit-0.1.30  

This can't be right as I already have this package installed.

$ emerge -s gentoolkit

*  app-admin/gentoolkit
      Latest version available: 0.1.30
      Latest version installed: [ Not Installed ]
      Size of downloaded files: 0 kB
      Homepage:    http://www.gentoo.org/
      Description: Collection of unofficial administration scripts for Gentoo

*  app-portage/gentoolkit
      Latest version available: 0.1.30
      Latest version installed: 0.1.30
      Size of downloaded files: 0 kB
      Homepage:    http://www.gentoo.org/
      Description: Collection of unofficial administration scripts for Gentoo

And this is why it is happening.

$ emerge info
Portage 2.0.48-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r1)
=================================================================
System uname: 2.6.0-test3-bk1 i686 Intel(R) Pentium(R) III Mobile CPU      1200MHz
GENTOO_MIRRORS="http://www.mirror.ac.uk/sites/www.ibiblio.org/gentoo/
http://ftp.gentoo.skynet.be/pub/gentoo/
http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://gentoo.linux.no/"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config
/usr/kde/2/share/config /usr/kde/3/share/config /usr/X11R6/lib/X11/xkb"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss 3dnow avi crypt encode foomaticdb gif jpeg mad mmx mpeg ncurses
pdflib png quicktime truetype xml2 xmms xv zlib directfb alsa berkdb slang
readline aalib bonobo svga java mysql X sdl gpm tcpd pam libwww ssl perl python
imlib oggvorbis gtk motif opengl cdr acpi acpi4linux apache2 dvd faad fax fbcon
imap kerberos maildir md5sum nptl pcmcia php pnp sse tiff usb xml -apm -arts
-cups -kde -libg++ -mikmod -nls -qt -spell -gtkhtml -gdbm -tcltk -guile -esd
-gnome -mozilla"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium3 -O3 -pipe"
CXXFLAGS="-march=pentium3 -O3 -pipe"
ACCEPT_KEYWORDS="x86 ~x86"
MAKEOPTS="-j3"
AUTOCLEAN="yes"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache buildpkg"
Comment 1 Narada Sage 2003-08-15 12:32:17 UTC
I also got this bunch of errors on 'emerge sync'.

----
Performing Global Updates: /usr/portage/profiles/updates/3Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
......................................................@!!! Cannot update binary: Destination exists.
!!! app-admin/gentoolkit-0.1.30 -> app-portage/gentoolkit-0.1.30
..@!!! Cannot update binary: Destination exists.
!!! app-admin/mirrorselect-0.7-r1 -> app-portage/mirrorselect-0.7-r1
!!! Cannot update binary: Destination exists.
!!! app-admin/mirrorselect-0.6 -> app-portage/mirrorselect-0.6
!!! Cannot update binary: Destination exists.
!!! app-admin/mirrorselect-0.7 -> app-portage/mirrorselect-0.7
!!! Cannot update binary: Destination exists.
!!! app-admin/mirrorselect-0.8 -> app-portage/mirrorselect-0.8
!!! Cannot update binary: Destination exists.
!!! app-admin/mirrorselect-0.81 -> app-portage/mirrorselect-0.81
..@!!! Cannot update binary: Destination exists.
!!! sys-apps/epm-0.8.4 -> app-portage/epm-0.8.4
..@!!! Cannot update binary: Destination exists.
!!! app-admin/splat-0.06 -> app-portage/splat-0.06
.@!!! Cannot update binary: Destination exists.
!!! app-admin/ufed-0.32 -> app-portage/ufed-0.32
!!! Cannot update binary: Destination exists.
!!! app-admin/ufed-0.33 -> app-portage/ufed-0.33
!!! Cannot update binary: Destination exists.
!!! app-admin/ufed-0.34 -> app-portage/ufed-0.34
...



 ** Skipping packages. Run 'fixpackages' or set it in FEATURES to fix the
    tbz2's in the packages directory. Note: This can take a very long time.
----
Comment 2 SpanKY gentoo-dev 2003-08-15 14:42:51 UTC
`emerge -C gentoolkit ; emerge sync` and you should be fine 
Comment 3 Nicholas Jones (RETIRED) gentoo-dev 2003-08-15 16:19:10 UTC
The binary collisions are there because you made packages
without fixing your existing ones... How you did that is
a good question though.

Delete all the files in /usr/portage/packages that match
the first filename given. They should all be symlinks.
Comment 4 Narada Sage 2003-08-17 01:11:25 UTC
Hello.  I've done as vapier and carpaski suggested and things seem to be fine.  So please feel free to close this bug.  I do not set fixpackages in FEATURES as that makes emerge sync take a very long time and since I don't use the packages very often I only run fixpackages manually once every week or so.
Comment 5 SpanKY gentoo-dev 2003-08-17 11:33:14 UTC
nick: this really is not a symptom of what you suggested ... i had it happen on a 
box of mine where i had made a gentoolkit binary package ... 
when the update script ran i got those errors ... removing the binary script made 
things work 
Comment 6 SpanKY gentoo-dev 2003-08-27 17:18:24 UTC
*** Bug 27419 has been marked as a duplicate of this bug. ***
Comment 7 SpanKY gentoo-dev 2003-10-04 12:50:49 UTC
*** Bug 30340 has been marked as a duplicate of this bug. ***
Comment 8 Narada Sage 2003-11-14 19:57:19 UTC
Just had this once again today:
----
Performing Global Updates: /usr/portage/profiles/updates/4Q-2003
(Could take a couple minutes if you have a lot of binary packages.)
  .='update pass'  *='binary update'  @='/var/db move'
..............@!!! Cannot update binary: Destination exists.
!!! sys-apps/tar-1.13.25-r3 -> app-arch/tar-1.13.25-r3
..@!!! Cannot update binary: Destination exists.
!!! sys-apps/bzip2-1.0.2-r2 -> app-arch/bzip2-1.0.2-r2
.@!!! Cannot update binary: Destination exists.
!!! sys-apps/gzip-1.3.3-r2 -> app-arch/gzip-1.3.3-r2
..@!!! Cannot update binary: Destination exists.
!!! sys-apps/sharutils-4.2.1-r6 -> app-arch/sharutils-4.2.1-r6
.
----
I don't have fixpackages in features and am using -r15 of portage.
Comment 9 Narada Sage 2003-11-15 07:26:22 UTC
Since I was having a lot of problems with fixpackages and binary package collisions I've separated that aspect from here out into bug 33556 for clarity.  Hope that's okay.  If not, please adjust as you wish.
Comment 10 SpanKY gentoo-dev 2003-11-15 15:48:39 UTC
*** Bug 33556 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2003-11-15 15:50:43 UTC
i dont know how you guys want to handle this ...

it's a problem because sometimes when people moved packages they didnt delete the old ones ...
in this case, tar was moved to app-arch but sys-apps still existed and this 'bug' was triggered ...
Comment 12 Narada Sage 2003-11-15 16:09:14 UTC
I can't update world at the moment since portage is still looking for sys-apps/bzip2 which does not exist and has moved to app-arch/bzip2.  Any quick fix for this other than to copy the bzip2 dir to sys-apps?
Comment 13 Seemant Kulleen (RETIRED) gentoo-dev 2003-11-15 16:31:17 UTC
dhruba, it's the portage metadata cache, which you need to regenerate:

rm -rf /var/cache/edb/dep/* && emerge regen

and that should sort out your emerge world problem
Comment 14 SpanKY gentoo-dev 2003-12-15 23:24:15 UTC
*** Bug 35911 has been marked as a duplicate of this bug. ***
Comment 15 Marius Mauch (RETIRED) gentoo-dev 2006-02-16 18:57:46 UTC
This bug seems to be about like four different issues. Closing it until someone can point out the exact issue this report is about.
Comment 16 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 11:00:52 UTC
Closing due to old age