Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 133055 - "SLOT detection code in collision detect is broken"
Summary: "SLOT detection code in collision detect is broken"
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL: http://dev.gentoo.org/~allanonjl/temp...
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-05-11 12:12 UTC by John N. Laliberte (RETIRED)
Modified: 2006-05-13 15:25 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 John N. Laliberte (RETIRED) gentoo-dev 2006-05-11 12:12:53 UTC
was troubleshooting a problem with antarus about a binary package emerge.

logfile is in URL.

"
antarus AllanonJL|W: basically say that the SLOT detection code in collision detect is broken.
antarus AllanonJL|W: it's pruning packages from the owner search that shouldn't be pruned due to settings["SLOT"] being wrong
"

Let me know if you need more information.

emerge info:

Portage 2.1_pre10-r5 (default-linux/x86/2005.0, gcc-3.4.6, glibc-2.3.5-r3, 2.6.16-gentoo-r7 i686)
=================================================================
System uname: 2.6.16-gentoo-r7 i686 Intel(R) Pentium(R) 4 CPU 3.00GHz
Gentoo Base System version 1.6.14
dev-lang/python:     2.3.5-r2, 2.4.3-r1
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=pentium4 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig collision-protect distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://mirror.datapipe.net/gentoo http://adelie.polymtl.ca/ ftp://ftp.gtlib.cc.gatech.edu/pub/gentoo"
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,--as-needed"
LINGUAS="en"
MAKEOPTS="-j3"
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'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apm arts avi berkdb bitmap-fonts browserplugin cairo cdr cli crypt cups dbus dri dvd eds emboss encode foomaticdb fortran gdbm gif gnome gpm gstreamer gtk gtk2 hal imlib ipv6 isdnlog jpeg kerberos ldap libg++ libwww mad mikmod mmx motif mp3 mpeg ncurses nls nptl nptlonly ogg oggvorbis opengl oss pam pcre pdflib perl png pppd python quicktime readline reflection sdl session spell spl sse ssl tcpd truetype truetype-fonts type1-fonts unicode userlocales vorbis winbind wxwindows xml2 xmms xorg xv xvid zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_en userland_GNU video_cards_nvidia video_cards_nv video_cards_vmware"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 John N. Laliberte (RETIRED) gentoo-dev 2006-05-11 12:14:39 UTC
basic steps are:

emerge a newer revision of a package you have installed using a binhost.

watch it fail due to collision-protect.
Comment 2 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-05-11 12:48:01 UTC
mysettings["SLOT"] was wrong when binpkg's were being merged.

Fixed in -r3339, thanks a bunch to John for being patient while I debugged and for testing the patch.
Comment 3 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-05-11 12:48:57 UTC
tsk tsk, I apparently can't click worth a damn, sorry for the bugspam...
Comment 4 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-05-11 13:41:07 UTC
(In reply to comment #2)
> mysettings["SLOT"] was wrong when binpkg's were being merged.
> 
> Fixed in -r3339, thanks a bunch to John for being patient while I debugged and
> for testing the patch.
> 

brian pointed out this should be set in doebuild, so I will move it.
Comment 5 Zac Medico gentoo-dev 2006-05-11 18:50:12 UTC
(In reply to comment #4)
> brian pointed out this should be set in doebuild, so I will move it.

It's already done in doebuild_environment().  If that's not working then there's a bug in bindbapi...
Comment 6 Alec Warner (RETIRED) archtester gentoo-dev Security 2006-05-12 08:34:40 UTC
(In reply to comment #5)
> (In reply to comment #4)
> > brian pointed out this should be set in doebuild, so I will move it.
> 
> It's already done in doebuild_environment().  If that's not working then
> there's a bug in bindbapi...
> 

Yes so I noticed after taking another look, however it appears emerge is just being daft..

11:28 <@antarus> ferringb: liar :P
11:29 < ferringb> eh?
11:29 -!- Irssi: Pasting 10 lines to #gentoo-portage. Press Ctrl-K if you wish to do this or Ctrl-C to cancel.
11:29 <@antarus> (Pdb) where /usr/bin/emerge(3416)?()
11:29 <@antarus> -> mydepgraph.merge(pkglist) /usr/bin/emerge(2050)merge()
11:29 <@antarus> -> retval=portage.pkgmerge(mytbz2,x[1],self.pkgsettings)
                 /usr/lib/portage/pym/portage.py(6627)pkgmerge()
11:29 <@antarus> -> mylink.merge(pkgloc, infloc, myroot, myebuild, cleanup=1, prev_mtimes=prev_mtimes)
                 /usr/lib/portage/pym/portage.py(6496)merge()
11:29 <@antarus> -> cleanup=cleanup, mydbapi=mydbapi, prev_mtimes=prev_mtimes)
11:29 <@antarus> > /usr/lib/portage/pym/portage.py(5972)treewalk()
11:29 <@antarus> -> if not os.path.exists(self.dbcatdir):
11:29 <@antarus> it's not called from doebuild, is why nothing is being set properly ;P

not being called from doebuild = nothing being set, which is scary in and of itself...Not sure how I managed to miss that the first dozen times i was looking at the where output.
Comment 7 Zac Medico gentoo-dev 2006-05-12 11:38:38 UTC
This was already fixed in svn r3301 (not yet released in pre10-r5).  I wasn't trying to fix this bug, but did so by luck.  So, r3339 isn't needed and I'll revert it.
Comment 8 Zac Medico gentoo-dev 2006-05-13 15:25:53 UTC
This has been released in 2.1_rc1.