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

Bug 538716

Summary: sys-apps/portage outputs incorrect "slot conflict" data for a world file conflict
Product: Portage Development Reporter: Brian Dolbec <dolsen>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: CONFIRMED ---    
Severity: normal CC: abandonedaccountubdprczb8hs, aoaaxy+gentoobugzilla, esigra, zazdxscf+bugs.gentoo.org
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 300071    

Description Brian Dolbec gentoo-dev 2015-02-03 23:01:15 UTC
emerge outputs wrong "slot conflict" output for a world file conflict

Reproducible: Always

Steps to Reproduce:
1.emerge foo::somerepo
2.time passes, emerge --sync
3.emerge -u foo
4: the world entry contains foo::somerepo
and the new foo ebuild is from a different repo
Actual Results:  
big_daddy portage # emerge -vp elogviewer

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

Calculating dependencies

... done!
[ebuild     U  ] app-portage/elogviewer-2.3::gentoo-x86 [2.1-r1::gentoo-guis] PYTHON_TARGETS="python2_7 python3_3 python3_4" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

!!! Multiple package instances within a single package slot have been pulled
!!! into the dependency graph, resulting in a slot conflict:

app-portage/elogviewer:0

  (app-portage/elogviewer-2.3:0/0::gentoo-x86, ebuild scheduled for merge) pulled in by
    app-portage/elogviewer (Argument)

  (app-portage/elogviewer-2.1-r1:0/0::gentoo-guis, installed) pulled in by
    (no parents that aren't satisfied by other packages in this slot)


!!! Enabling --newuse and --update might solve this conflict.
!!! If not, it might help emerge to give a more specific suggestion.


 * IMPORTANT: 5 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.

big_daddy portage # 

the world file entry was: app-portage/elogviewer::gentoo-guis

Expected Results:  
at least output stating it is a world file conflict
Comment 1 Brian Dolbec gentoo-dev 2015-02-03 23:04:51 UTC
big_daddy portage # emerge --info
/home/brian/Dev/git/portage/pym/portage/repository/config.py:535: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
  parser = SafeConfigParser()
/home/brian/Dev/git/portage/pym/portage/_sets/__init__.py:55: DeprecationWarning: The SafeConfigParser class has been renamed to ConfigParser in Python 3.2. This alias will be removed in future versions. Use ConfigParser directly instead.
  "ROOT" : settings["ROOT"],
Portage 2.2.15_p179 (python 2.7.9-final-0, default/linux/amd64/13.0/desktop, gcc-4.9.2, glibc-2.20-r1, 3.16.1-gentoo x86_64)
=================================================================
System uname: Linux-3.16.1-gentoo-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q8400_@_2.66GHz-with-gentoo-2.2
KiB Mem:     8179652 total,    385772 free
KiB Swap:   16777212 total,  16504436 free
Timestamp of repository gentoo: Tue, 03 Feb 2015 20:30:01 +0000
sh bash 4.3_p33-r1
ld GNU ld (Gentoo 2.24 p1.4) 2.24
ccache version 3.1.10 [enabled]
app-shells/bash:          4.3_p33-r1::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.1-r4::gentoo
dev-lang/python:          2.5.4-r6::gentoo, 2.6.9::gentoo, 2.7.9-r1::gentoo, 3.1.5-r1::gentoo, 3.2.5-r6::gentoo, 3.3.5-r1::gentoo, 3.4.2::gentoo
dev-util/ccache:          3.1.10::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r2::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.8::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.7.9-r2::gentoo, 1.8.5-r4::gentoo, 1.9.6-r3::gentoo, 1.10.3::gentoo, 1.11.6::gentoo, 1.12.6::gentoo, 1.13.4::gentoo, 1.14.1::gentoo, 1.15::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.6.4::gentoo, 4.7.4::gentoo, 4.8.4::gentoo, 4.9.2::gentoo
sys-devel/gcc-config:     1.8::gentoo
sys-devel/libtool:        2.4.5::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.18::gentoo (virtual/os-headers)
sys-libs/glibc:           2.20-r1::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: websync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000

The-Pit
    location: /usr/local/portage
    masters: gentoo
    priority: 0

dwfreed
    location: /var/cache/repos/dwfreed
    sync-type: git
    sync-uri: https://bitbucket.org/dwfreed/dwfreed.gentoo
    masters: gentoo

gentoo-keys
    location: /home/brian/Dev/git/gkeys-overlay
    sync-type: git
    sync-uri: git@github.com:gentoo/gentoo-keys.git
    masters: gentoo

gentoo-x86
    location: /home/brian/Dev/cvs/gentoo-x86
    sync-cvs-repo: gentoo-x86
    sync-type: cvs
    sync-uri: dolsen@cvs.gentoo.org:/var/cvsroot

gentoo-guis
    location: /home/brian/Dev/git/gentoo-guis
    masters: gentoo
    priority: 1

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA dlj-1.1 AdobeFlash-11.x MakeMKV-EULA Google-TOS google-chrome"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -msse4.1"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2 -pipe -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -msse4.1"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--autounmask=n --keep-going --complete-graph=y --jobs=3"
FCFLAGS="-O2 -pipe -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -msse4.1"
FEATURES="assume-digests binpkg-logs buildpkg ccache clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=core2 -mtune=core2 -mmmx -msse -msse2 -msse3 -msse4.1"
GENTOO_MIRRORS="rsync://gentoo.gossamerhost.com/gentoo-distfiles/ http://gentoo.gossamerhost.com ftp://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ http://mirror.csclub.uwaterloo.ca/gentoo-distfiles/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j8"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
USE="X a52 aac aalib acl acpi adns alsa amd64 avahi berkdb bidi bluetooth bonobo branding bzip2 cairo cdda cddb cdr cleartype cli consolekit cracklib crypt css cups curl cxx dbus dlloader dri dts dv dvd dvdr dvdread emboss encode exif fam fame fbcon ffmpeg flac fortran ftp gconf gdbm gecko gif gimpprint glamor gpm gs gtk gtkhtml h323 howl iconv imagemagic imap imlib2 innodb ipv6 java javascript jikes joystick jpeg lcms ldap libav libnotify lm_sensors mad md5sum messages mime mmx mng modules moxnomail mozdevelop mp3 mp4 mpeg mpi mplayer multilib mysql ncurses nfs nls no-old-linux nptl nptonly numeric nvidia ogg opengl openmp pam pango pcre pda pdf plugin png policykit posix ppds python qt3support readline rtc samba sdl session shm sndfile sox speex spell sqlite sqlite3 sse sse2 sse3 ssl startup-notification svg swat syslog tcpd threadsonly thumbnail thunar-vfs tiff tk transcode truetype udev udisks unicode upower usb utf8 v4l v4l2 vcd vorbis wxwidgets x264 xcb xml xosd xpm xulrunner xv xvid zlib zvbi" ABI_X86="64" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump author" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx sse sse2" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3 python3_4" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="nouveau" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
USE_PYTHON="2.7 3.3"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

big_daddy portage #
Comment 2 Zac Medico gentoo-dev 2015-02-03 23:06:08 UTC
(In reply to Brian Dolbec from comment #0)
>   (app-portage/elogviewer-2.1-r1:0/0::gentoo-guis, installed) pulled in by
>     (no parents that aren't satisfied by other packages in this slot)

The slot_conflict_handler class in pym/_emerge/resolver/slot_collision.py does not even look at the ::repo part of the atom, so that explains why it's lying here.