Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 292032 - sys-apps/portage-2.1.7.4: unable to update mplayer (backtracking issue)
Summary: sys-apps/portage-2.1.7.4: unable to update mplayer (backtracking issue)
Status: RESOLVED DUPLICATE of bug 291142
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Dependencies (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-11-06 00:18 UTC by Seblu
Modified: 2009-11-07 23:43 UTC (History)
0 users

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


Attachments
fix backtracking display (from bug #291142) (backtrack_display.patch,1.27 KB, patch)
2009-11-06 04:02 UTC, Zac Medico
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Seblu 2009-11-06 00:18:53 UTC
When i run an emerge --update on world, portage is unable to update mplayer. 

$ emerge --ask --verbose --deep --with-bdeps=y --newuse --jobs 3 --update  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(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

media-video/mplayer:0

But if i run it just with mplayer, it will update it. 

# emerge -ua --deep --newuse --with-bdeps=y  mplayer

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

Calculating dependencies... done!
[ebuild     U ] media-libs/x264-0.0.20091021 [0.0.20090908] USE="pic%*" 
[ebuild     U ] media-video/mplayer-1.0_rc4_p20091026-r1 [1.0_rc2_p20090731] USE="toolame%* twolame%* -bs2b% -nut% -opencore-amr%" 

When i rerun an world update he want to downgrade.

emerge --ask --verbose --deep --with-bdeps=y --newuse --jobs 3 --update  world...

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

Calculating dependencies... done!
[ebuild     UD] media-libs/x264-0.0.20090908 [0.0.20091021] USE="threads -debug (-pic%*)" 0 kB
[ebuild     UD] media-video/mplayer-1.0_rc2_p20090731 [1.0_rc4_p20091026-r1] USE="X a52 aac alsa ass cddb cdio cdparanoia dga dirac dts dv dvd dvdnav enca encode faac faad ftp gif iconv jpeg libcaca live lzo mad mmx mmxext mng mp2%* mp3 network opengl osdmenu png quicktime rar real rtc samba schroedinger sdl shm speex sse sse2 ssse3 svga teletext theora tremor truetype unicode vdpau vidix vorbis win32codecs x264 xscreensaver xv xvid xvmc zoran -3dnow -3dnowext -aalib (-altivec) -bidi -bindist -bl -cpudetection -custom-cflags% -custom-cpuopts -debug -directfb -doc -dvb -dxr3 -esd -fbcon -ggi -gmplayer -ipv6 -jack -joystick -ladspa -lirc -md5sum -nas -openal -oss -pnm -pulseaudio -pvr -radio -tga -v4l -v4l2 -xanim -xinerama (-bs2b%) (-nut%) (-opencore-amr%) (-toolame%*) (-twolame%*)" VIDEO_CARDS="nvidia -mga -s3virge -tdfx -vesa%" 0 kB

Total: 2 packages (2 downgrades), Size of downloads: 0 kB

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

media-video/mplayer:0

I think it should be coherant, update or not.

Reproducible: Always

Steps to Reproduce:
1. emerge --ask --verbose --deep --with-bdeps=y --newuse --jobs 3 --update  world...
2. emerge -ua --deep --newuse --with-bdeps=y mplayer
3. emerge --ask --verbose --deep --with-bdeps=y --newuse --jobs 3 --update  world...




Portage 2.1.7.3 (default/linux/x86/10.0, gcc-4.4.2, glibc-2.10.1-r0, 2.6.31-gentoo-r4 i686)
=================================================================
System uname: Linux-2.6.31-gentoo-r4-i686-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.0.1
Timestamp of tree: Thu, 05 Nov 2009 22:45:03 +0000
app-shells/bash:     4.0_p35
dev-java/java-config: 2.1.9-r1
dev-lang/python:     2.6.4, 3.1.1-r1
dev-util/cmake:      2.6.4-r3
sys-apps/baselayout: 2.0.1
sys-apps/openrc:     0.5.2-r1
sys-apps/sandbox:    2.2
sys-devel/autoconf:  2.13, 2.63-r1
sys-devel/automake:  1.8.5-r3, 1.9.6-r2, 1.10.2, 1.11
sys-devel/binutils:  2.20
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.6a
virtual/os-headers:  2.6.30-r1
ACCEPT_KEYWORDS="x86 ~x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe -funroll-loops -mfpmath=sse"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb /usr/share/config"
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/splash /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c /etc/udev/rules.d"
CXXFLAGS="-march=nocona -O2 -fomit-frame-pointer -pipe -funroll-loops -mfpmath=sse"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--load-average=6 --keep-going"
FEATURES="assume-digests collision-protect distlocks fixpackages metadata-transfer news parallel-fetch protect-owned sandbox sfperms strict unmerge-logs unmerge-orphans userfetch userpriv usersandbox"
GENTOO_MIRRORS="http://mirror.ovh.net/gentoo-distfiles/ http://mirrors.linuxant.fr/distfiles.gentoo.org/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1"
MAKEOPTS="-j8 -l4"
PKGDIR="/usr/portage/packages"
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="   "
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acpi alsa bash-completion berkdb branding bzip2 cairo caps cddb cdparanoia cdr cli consolekit cracklib crypt cups dbus dga dts dv dvd dvdr dvdread emacs encode exif ffmpeg firefox flac fortran ftp gdbm gif gimp gpm graphviz gsm gstreamer hal hddtemp iconv ieee1394 imagemagick imap ipod java javascript jpeg jpeg2k kde kdm lame libcaca lm_sensors lzo mad mime mmap mmx mng modules motif mozilla mp2 mp3 mpeg mplayer mudflap musepack ncurses nls nptl nptlonly nsplugin nvidia offensive ogg openexr opengl openmp pam pcre pdf perl pic png policykit posix pppd python qt3 qt3support qt4 quicktime raw rdesktop readline reflection samba sdl session speex spell spl sqlite sqlite3 sse sse2 ssl subversion svg svga sysfs tcpd theora threads tiff truetype unicode usb vcd vdpau vim-syntax vorbis win32codecs wmf x264 x86 xattr xcomposite xine xml xorg xpm xv xvid xvmc zlib zsh-completion" 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="mouse keyboard" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" USERLAND="GNU" VIDEO_CARDS="nvidia" 
Unset:  CPPFLAGS, CTARGET, FFLAGS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2009-11-06 04:02:44 UTC
Created attachment 209389 [details, diff]
fix backtracking display (from bug #291142)

If this patch is saved as /tmp/backtrack_display.patch, then it can be applied as follows:

  patch /usr/lib/portage/pym/_emerge/depgraph.py

Please apply this patch, try the same update command again, and post the output. If the output is no different, then please post --debug output.
Comment 2 Zac Medico gentoo-dev 2009-11-06 04:03:38 UTC
(In reply to comment #1)
>   patch /usr/lib/portage/pym/_emerge/depgraph.py

I mean:

  patch /usr/lib/portage/pym/_emerge/depgraph.py /tmp/backtrack_display.patch
Comment 3 Zac Medico gentoo-dev 2009-11-07 09:07:00 UTC
This should be fixed in 2.1.7.4 and 2.2_rc49 (if it's the same as bug 291142). Please reopen if not.
Comment 4 Seblu 2009-11-07 11:59:33 UTC
problem is the same with 2.1.7.4

# emerge -ua mplayer

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

Calculating dependencies... done!
[ebuild     U ] media-libs/x264-0.0.20091021 [0.0.20090908] USE="pic%*"
[ebuild     U ] media-video/mplayer-1.0_rc4_p20091026-r1 [1.0_rc2_p20090731] USE="toolame%* twolame%* -bs2b% -nut% -opencore-amr%"

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



# emerge --ask --verbose --deep --with-bdeps=y --newuse --jobs 3 --update  world...

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

Calculating dependencies... done!
[ebuild   R   ] media-libs/libsdl-1.2.14  USE="X alsa audio dga libcaca opengl svga video xv -aalib -custom-cflags -directfb -fbcon -ggi -joystick -nas -oss -ps3% -pulseaudio -xinerama" 0 kB
[ebuild     U ] sys-libs/glibc-2.11 [2.10.1] USE="nls -debug -gd -glibc-omitfp (-hardened) (-multilib) -profile (-selinux) -vanilla" 81 kB

Total: 2 packages (1 upgrade, 1 reinstall), Size of downloads: 81 kB

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

media-libs/x264:0

  ('ebuild', '/', 'media-libs/x264-0.0.20091021', 'merge') conflicts with
    <media-libs/x264-0.0.20090923 required by ('installed', '/', 'media-video/ffmpeg-0.5_p19928', 'nomerge')


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

media-video/mplayer:0

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

Comment 5 Seblu 2009-11-07 12:13:56 UTC
do you want i try your patch with 2.1.7.4 ?
Comment 6 Zac Medico gentoo-dev 2009-11-07 20:16:48 UTC
(In reply to comment #4)
> !!! One or more updates have been skipped due to a dependency conflict:
> 
> media-libs/x264:0
> 
>   ('ebuild', '/', 'media-libs/x264-0.0.20091021', 'merge') conflicts with
>     <media-libs/x264-0.0.20090923 required by ('installed', '/',
> 'media-video/ffmpeg-0.5_p19928', 'nomerge')

The above output is the "fix". It's supposed to be a hint that you need to unmask a newer version of ffmpeg in order for the x264 and mplayer updates to proceed.

It's normal to only see this message when you use --deep or --complete-graph, since otherwise, not all dependencies are accounted for.
Comment 7 Seblu 2009-11-07 23:29:18 UTC
Thanks for explanation!

After an update of mplayer and libx256, with --deep i have the same answer. (No deletion)

# emerge --ask --verbose --deep --with-bdeps=y --newuse --update  mplayer

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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

Nothing to merge; would you like to auto-clean packages? [Yes/No] ^C

and when the world, it wants i delete these two packets.

emerge --ask --verbose --deep --with-bdeps=y --newuse --jobs 3 --update  world...

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

Calculating dependencies... done!
[ebuild     UD] media-libs/x264-0.0.20090908 [0.0.20091021] USE="threads -debug (-pic%*)" 0 kB
[ebuild     UD] media-video/mplayer-1.0_rc2_p20090731 [1.0_rc4_p20091026-r1] USE="X a52 aac alsa ass cddb cdio cdparanoia dga dirac dts dv dvd dvdnav enca encode faac faad ftp gif iconv jpeg libcaca live lzo mad mmx mmxext mng mp2%* mp3 network opengl osdmenu png quicktime rar real rtc samba schroedinger sdl shm speex sse sse2 ssse3 svga teletext theora tremor truetype unicode vdpau vidix vorbis win32codecs x264 xscreensaver xv xvid xvmc zoran -3dnow -3dnowext -aalib (-altivec) -bidi -bindist -bl -cpudetection -custom-cflags% -custom-cpuopts -debug -directfb -doc -dvb -dxr3 -esd -fbcon -ggi -gmplayer -ipv6 -jack -joystick -ladspa -lirc -md5sum -nas -openal -oss -pnm -pulseaudio -pvr -radio -tga -v4l -v4l2 -xanim -xinerama (-bs2b%) (-nut%) (-opencore-amr%) (-toolame%*) (-twolame%*)" VIDEO_CARDS="nvidia -mga -s3virge -tdfx -vesa%" 0 kB                                                            

Total: 2 packages (2 downgrades), Size of downloads: 0 kB

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

media-libs/x264:0

  ('ebuild', '/', 'media-libs/x264-0.0.20091021', 'merge') conflicts with
    <media-libs/x264-0.0.20090923 required by ('installed', '/', 'media-video/ffmpeg-0.5_p19928', 'nomerge')


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

media-video/mplayer:0

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

i understanrd your explanation but why with --deep, emerge don't check that update of x264 broke a dependencency?
Comment 8 Zac Medico gentoo-dev 2009-11-07 23:37:14 UTC
(In reply to comment #7)
> i understanrd your explanation but why with --deep, emerge don't check that
> update of x264 broke a dependencency?

It's a performance optimization. It would be a waste of time to have it enabled for every little dependency calculation, so if you want to account for all dependencies, you have to use --deep or --complete-graph. The --deep option alone is often close enough, but not always. When --deep is used together with world, it is equivalent to --complete-graph.
Comment 9 Seblu 2009-11-07 23:43:19 UTC
ok it's perfectly clear for me.

Thanks you!

*** This bug has been marked as a duplicate of bug 291142 ***