Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 375573 - sys-apps/portage doesn't remove backtrack masks if the reason for the mask got masked itself
Summary: sys-apps/portage doesn't remove backtrack masks if the reason for the mask go...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 375039 (view as bug list)
Depends on:
Blocks: 300071 381649
  Show dependency tree
 
Reported: 2011-07-18 15:28 UTC by Cyprien Nicolas (fulax)
Modified: 2013-07-10 01:05 UTC (History)
1 user (show)

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


Attachments
emerge -DuNp @world --debug (debug.log.bz2,249.00 KB, text/bzip2)
2011-07-18 19:03 UTC, Cyprien Nicolas (fulax)
Details
emerge -DuNp --autounmask=n @world --debug (debug-2.log.bz2,112.16 KB, text/bzip2)
2011-07-19 05:32 UTC, Cyprien Nicolas (fulax)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Cyprien Nicolas (fulax) 2011-07-18 15:28:51 UTC
I didn't notice anything similar with alpha43 (I cannot tell for alpha44).
Adding --noreplace make things go worse, see bug 375571.

sita ~ # emerge -DuNa @world

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

Calculating dependencies... done!
[ebuild   R    ] x11-libs/libdrm-2.4.22  USE="libkms -static-libs" VIDEO_CARDS="nouveau -intel -radeon -vmware" 0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

WARNING: One or more updates have been skipped due to a dependency conflict:

x11-libs/libdrm:0

  (x11-libs/libdrm-2.4.26::gentoo, ebuild scheduled for merge) conflicts with
    <x11-libs/libdrm-2.4.23 required by (media-libs/mesa-7.9::fulax, installed)


!!! The following update(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

x11-drivers/xf86-video-nouveau:0

Would you like to merge these packages? [Yes/No] no

Quitting.


sita ~ # emerge --info --ignore-default-opts sys-apps/portage
Portage 2.2.0_alpha45 (default/linux/x86/10.0/desktop, gcc-4.5.2, glibc-2.13-r4, 2.6.39-gentoo-r2 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-2.6.39-gentoo-r2-x86_64-Intel-R-_Xeon-R-_CPU_5120_@_1.86GHz-with-gentoo-2.0.3
Timestamp of tree: Mon, 18 Jul 2011 08:30:01 +0000
app-shells/bash:          4.2_p10
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2, 3.1.3-r1, 3.2
dev-util/cmake:           2.8.5
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.10.3, 1.11.1-r1
sys-devel/binutils:       2.21.1
sys-devel/gcc:            4.5.2
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.38 (virtual/os-headers)
sys-libs/glibc:           2.13-r4
Repositories: gentoo lisp emacs mozilla sita fulax
Installed sets: 
ACCEPT_KEYWORDS="x86 ~x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /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 -march=i686 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--verbose"
FEATURES="assume-digests binpkg-logs distlocks ebuild-locks fixlafiles fixpackages news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_IE.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu"
LINGUAS="en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_COMPRESS="xz"
PORTAGE_COMPRESS_FLAGS="-9"
PORTAGE_CONFIGROOT="/"
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="/var/lib/layman/lisp /var/lib/layman/emacs /var/lib/layman/mozilla /usr/local/portage /home/cnicolas/gentoo/dev/fulax-gentoo-overlay"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa bash-completion berkdb branding bzip2 cairo cdda cdr cli consolekit cracklib crypt cups cxx dbus dri dts dvd dvdr emboss encode exif fam firefox flac fortran gdbm gdu gif gpm gtk iconv idn ipv6 jpeg lcms ldap libnotify mad mng modules mp3 mp4 mpeg mudflap ncurses network-cron nls nptl nptlonly ogg opengl openmp pam pango pcre pdf perl png policykit ppds pppd python qt3support qt4 readline sdl session spell ssl startup-notification svg sysfs tcpd threads tiff truetype udev unicode usb vorbis x264 x86 xcb xft xinerama xml xorg 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 cgi cgid 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" CALLIGRA_FEATURES="braindump flow karbon kexi kpresenter krita tables words" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" 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 ubx" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" PHP_TARGETS="php5-3" QEMU_SOFTMMU_TARGETS="i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby18" 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" 
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-apps/portage-2.2.0_alpha45 was built with the following:
USE="(ipc) less python3 -build -doc -epydoc -python2 (-selinux)" LINGUAS="-pl"
Comment 1 Zac Medico gentoo-dev 2011-07-18 18:36:14 UTC
(In reply to comment #0)
> I didn't notice anything similar with alpha43 (I cannot tell for alpha44).
> Adding --noreplace make things go worse, see bug 375571.
> 
> sita ~ # emerge -DuNa @world
> 
> These are the packages that would be merged, in order:
> 
> Calculating dependencies... done!
> [ebuild   R    ] x11-libs/libdrm-2.4.22  USE="libkms -static-libs"
> VIDEO_CARDS="nouveau -intel -radeon -vmware" 0 kB

This is similar to the way that kde-base/pykde4-4.6.5-r1 got pulled in as shown in bug 375039, comment #0. Please attach debug output:

  emerge -DuNa @world --debug &> debug.log
Comment 2 Cyprien Nicolas (fulax) 2011-07-18 19:03:14 UTC
Created attachment 280323 [details]
emerge -DuNp @world --debug

Here it is.
(BTW, the bug has been mark as CONFIRMED as I have EditBugs privileges, and I didn't find the input form to change it during initial bug submission)
Comment 3 Zac Medico gentoo-dev 2011-07-19 00:10:57 UTC
Here's the most interesting part of the log:

backtracking due to slot conflict:
   first package:  (x11-libs/libdrm-2.4.22::gentoo, installed)
   second package: (x11-libs/libdrm-2.4.26::gentoo, ebuild scheduled for merge)
  package to mask: (x11-libs/libdrm-2.4.22::gentoo, installed)
      slot: x11-libs/libdrm:0
   parents: ((media-libs/mesa-7.9::fulax, installed), '<x11-libs/libdrm-2.4.23'), ((x11-drivers/xf86-video-nouveau-0.0.16_pre20110711::gentoo, ebuild scheduled for merge), '>=x11-libs/libdrm-2.4.24[video_cards_nouveau]')

You can see that backtracking creates a temporary mask for the installed libdrm-2.4.22 instance, in order to try and solve the conflict. Maybe we can handle this by making it mask all other instances of libdrm-2.4.22 at the same time, given that none of them will satisfy the >=x11-libs/libdrm-2.4.24[video_cards_nouveau] atom that triggered the conflict.
Comment 4 Cyprien Nicolas (fulax) 2011-07-19 05:32:40 UTC
Created attachment 280339 [details]
emerge -DuNp --autounmask=n @world --debug

(In reply to comment #3)
> You can see that backtracking creates a temporary mask for the installed
> libdrm-2.4.22 instance, in order to try and solve the conflict. Maybe we can
> handle this by making it mask all other instances of libdrm-2.4.22 at the same
> time, given that none of them will satisfy the
> >=x11-libs/libdrm-2.4.24[video_cards_nouveau] atom that triggered the conflict.

Maybe this comes with the --autounmask feature. Since a few weeks, --autounmask suggests me to override my package.mask by adding entries in portage.unmask.

If I disable this feature, I get:


$ emerge -DuNp --autounmask=n @world

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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

!!! The following update has been skipped due to unsatisfied dependencies:

x11-drivers/xf86-video-nouveau:0

!!! All ebuilds that could satisfy ">=x11-libs/libdrm-2.4.24[video_cards_nouveau]" have been masked.
!!! One of the following masked packages is required to complete your request:
- x11-libs/libdrm-2.4.26::gentoo (masked by: package.mask)
- x11-libs/libdrm-2.4.25::gentoo (masked by: package.mask)
- x11-libs/libdrm-2.4.24::gentoo (masked by: package.mask)

(dependency required by "x11-drivers/xf86-video-nouveau-0.0.16_pre20110711" [ebuild])
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
Comment 5 Sebastian Luther (few) 2011-09-19 12:17:25 UTC
(In reply to comment #3)
> [...]
> You can see that backtracking creates a temporary mask for the installed
> libdrm-2.4.22 instance, in order to try and solve the conflict. Maybe we can
> handle this by making it mask all other instances of libdrm-2.4.22 at the same
> time, given that none of them will satisfy the
> >=x11-libs/libdrm-2.4.24[video_cards_nouveau] atom that triggered the conflict.

This would result in an unsatisfied dependency, instead of a skipped update.
The problem is that the mask for the installed libdrm is created for the update of nouveau. Some backtracks later it figures out that the update of nouveau leads to an unsolvable conflict and masks the update. At this point the masks created for libdrm because of the update for nouveau should be removed.
Comment 6 Sebastian Luther (few) 2011-09-19 12:18:57 UTC
*** Bug 375039 has been marked as a duplicate of this bug. ***
Comment 8 Zac Medico gentoo-dev 2011-09-29 18:47:30 UTC
This is fixed in 2.1.10.20 and 2.2.0_alpha60.