Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 508050 - `emerge gpac mplayer vlc xine-ui' cannot be resolved
Summary: `emerge gpac mplayer vlc xine-ui' cannot be resolved
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-04-18 21:25 UTC by torindel
Modified: 2014-06-22 17:44 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 torindel 2014-04-18 21:25:17 UTC
Wrong dependency resolution while selecting 3 or more packages having similar "|| ( a b )" depend, resulting in block, instead of picking one of packages from set. On 4 or more often package will want both ebuild's from "|| ( a b )" block.

Note: seen same things on on other ~arch, in some cases of perl-5.18 update, found cleaner example pasted below.

Reproducible: Always

Steps to Reproduce:
1. Get 3 or more packages requiring same || ( a b ) set of ebuilds
  eg. emerge -pv gpac mplayer vlc xine-ui
  (all those require either ffmpeg or libav)

Actual Results:  
Package conflict where with some packages requiring package a, some b, some BOTH a and b o_O, like mplayer from above example:

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-video/ffmpeg-1.2.6:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=media-video/ffmpeg-1.2:0= required by (media-video/vlc-2.1.4:0/5-7::gentoo, ebuild scheduled for merge)
    >=media-video/ffmpeg-1.2.1:0= required by (media-video/mplayer-1.2_pre20130729:0/0::gentoo, ebuild scheduled for merge)
    media-video/ffmpeg:0 required by (media-libs/xine-lib-1.2.9999:1/1::gentoo, ebuild scheduled for merge)

  (media-video/libav-9.12:0/9::gentoo, ebuild scheduled for merge) pulled in by
    >=media-video/libav-9.8:= required by (media-video/mplayer-1.2_pre20130729:0/0::gentoo, ebuild scheduled for merge)
    >=media-video/libav-9[X?,encode?,gsm?,jpeg2k?,mp3?,opus?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?] (>=media-video/libav-9[X,encode,mp3,theora,truetype]) required by (virtual/ffmpeg-9:0/0::gentoo, ebuild scheduled for merge)


Expected Results:  
Normal emerge using single package from required set, passing all checks, like from above example: media-video/ffmpeg-1.2.6

localhost / # emerge -pv gpac mplayer vlc xine-ui

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

Calculating dependencies  .... . .. ...... done!
[ebuild  N     ] media-libs/libdvbpsi-1.2.0  USE="-doc -static-libs" 451 kB
[ebuild  N     ] app-i18n/enca-1.14-r1  USE="recode -doc" 548 kB
[ebuild  N     ] media-libs/opus-1.1  USE="-custom-modes -doc -static-libs" 831 kB
[ebuild  N     ] media-libs/vo-aacenc-0.1.3  USE="neon -examples -static-libs" 599 kB
[ebuild  N     ] media-libs/libdvdcss-1.2.13-r1:1.2  USE="-doc -static-libs" 331 kB
[ebuild   R    ] sys-libs/zlib-1.2.8-r1  USE="minizip* static-libs" 0 kB
[ebuild  N     ] media-libs/a52dec-0.7.4-r7  USE="-djbfft -oss -static-libs" 236 kB
[ebuild  N     ] media-libs/faad2-2.7-r3  USE="-digitalradio -static-libs" 1,111 kB
[ebuild  N     ] media-libs/libdvdread-4.9.9  USE="css" 316 kB
[ebuild  N     ] dev-libs/libxdg-basedir-1.2.0-r1  USE="-doc -static-libs" 30 kB
[ebuild  N     ] app-admin/eselect-qtgraphicssystem-1.1.1  2 kB
[ebuild  N     ] media-libs/libvorbis-1.3.4  USE="-static-libs" 0 kB
[ebuild  N     ] dev-libs/fribidi-0.19.5-r2  USE="-static-libs" 611 kB
[ebuild  N     ] media-sound/lame-3.99.5-r1  USE="-debug (-mmx) -mp3rtp -sndfile -static-libs" 1,412 kB
[ebuild  N     ] x11-libs/libXScrnSaver-1.2.2-r1  USE="-static-libs" 284 kB
[ebuild  N     ] media-libs/libdvdnav-4.2.1  108 kB
[ebuild  N     ] media-libs/libtheora-1.1.1-r1  USE="encode -doc -examples -static-libs" 1,859 kB
[ebuild  N     ] media-libs/libass-0.10.2:0/5  USE="enca fontconfig -harfbuzz -static-libs" 272 kB
[ebuild  N     ] media-video/ffmpeg-1.2.6  USE="X aac alsa bzip2 encode hardcoded-tables iconv mp3 neon network opus theora truetype vorbis zlib (-3dnow) (-3dnowext) (-aacplus) (-altivec) (-amr) (-avx) -bindist (-bluray) -cdio (-celt) -cpudetection -debug -doc -examples -faac -fdk -flite -fontconfig (-frei0r) -gnutls -gsm -iec61883 (-ieee1394) -jack -jpeg2k -libass -libcaca -libsoxr -libv4l (-mmx) (-mmxext) -modplug -openal -openssl -oss -pic -pulseaudio (-rtmp) (-schroedinger) -sdl -speex (-ssse3) -static-libs {-test} -threads -twolame -v4l (-vaapi) (-vdpau) (-vis) (-vpx) (-x264) -xvid" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher" 5,831 kB
[ebuild  N     ] dev-qt/qtcore-4.8.5-r1:4  USE="exceptions glib iconv ssl (-aqua) -debug -icu -pch -qt3support" 235,832 kB
[ebuild  N     ] dev-qt/qtscript-4.8.5:4  USE="exceptions iconv jit (-aqua) -debug -pch" 0 kB
[ebuild  N     ] dev-qt/qtgui-4.8.5-r1:4  USE="accessibility egl exceptions glib xv (-aqua) -cups -debug -gtkstyle -mng -nas -nis -pch -qt3support -tiff -trace -xinerama" 0 kB
[ebuild  N     ] media-libs/glu-9.0.0-r1  USE="-static-libs" 0 kB
[ebuild  N     ] virtual/glu-9.0-r1  0 kB
[ebuild  N     ] media-libs/freeglut-2.8.1-r1  USE="-debug -static-libs" 982 kB
[ebuild  N     ] media-libs/flac-1.3.0  USE="cxx (-3dnow) (-altivec) -debug -ogg (-sse) -static-libs" 0 kB
[ebuild  N     ] net-dns/libidn-1.28  USE="nls -doc -emacs (-java) (-mono) -static-libs" 0 kB
[ebuild  N     ] net-libs/gnutls-3.2.13::local  USE="crywrap cxx nls zlib (-dane) -doc -examples -guile -pkcs11 -static-libs {-test}" LINGUAS="en pl -cs -de -fi -fr -it -ms -nl -sv -uk -vi -zh_CN" 0 kB
[ebuild  N     ] media-video/libav-9.12:0/9  USE="X aac alsa bzip2 encode gpl hardcoded-tables mp3 neon network opus ssl theora truetype vorbis zlib (-3dnow) (-3dnowext) (-altivec) (-amr) (-avx) -bindist -cdio -cpudetection -custom-cflags -debug -doc -faac -fdk (-frei0r) -gsm (-ieee1394) -jack -jpeg2k (-mmx) (-mmxext) -openssl -oss -pic -pulseaudio (-rtmp) (-schroedinger) -sdl -speex (-ssse3) -static-libs {-test} -threads -tools -v4l (-vaapi) (-vdpau) (-vis) (-vpx) (-x264) -xvid" 3,980 kB
[ebuild  N     ] virtual/ffmpeg-9  USE="X encode mp3 theora truetype -gsm -jpeg2k -opus -sdl -speex -threads (-vaapi) (-vdpau) (-x264)" 0 kB
[ebuild  N     ] media-video/mplayer-1.2_pre20130729  USE="X a52 alsa bidi dvd enca encode iconv ipv6 libass network osdmenu png shm truetype unicode xv (-3dnow) (-3dnowext) -aalib (-altivec) (-aqua) (-bindist) -bl (-bluray) (-bs2b) -cddb -cdio -cdparanoia (-cpudetection) -debug -dga -directfb -doc -dts -dv (-dvb) -dvdnav (-dxr3) -faac -faad -fbcon -ftp (-ggi) -gif -gsm -jack -joystick -jpeg -jpeg2k (-ladspa) -libcaca -libmpeg2 (-lirc) -live -lzo -mad -md5sum (-mmx) (-mmxext) -mng -mp3 -nas (-nut) -openal -opengl -oss -pnm -pulseaudio -pvr -radio -rar -rtc (-rtmp) -samba -sdl -speex (-sse) (-sse2) (-ssse3) -tga -theora (-toolame) -tremor -twolame -v4l (-vdpau) (-vidix) -vorbis (-x264) (-xanim) -xinerama -xscreensaver -xvid -xvmc -zoran" VIDEO_CARDS="(-mga) (-s3virge) (-tdfx)" 5,233 kB
[ebuild  N    *] media-libs/xine-lib-1.2.9999:1  USE="X a52 aac alsa flac ipv6 mmap theora truetype vorbis xcb xv -aalib (-altivec) (-bluray) -css -directfb -dts (-dvb) (-dxr3) -fbcon (-fusion) -gtk -imagemagick -jack -jpeg -libcaca -mad -mng -modplug (-musepack) -opengl -oss -pulseaudio -samba -sdl -speex -v4l (-vaapi) -vcd (-vdpau) -vdr (-vidix) (-vis) -wavpack -xinerama -xvmc" 0 kB
[ebuild  N    *] media-video/gpac-0.5.0-r1  USE="a52 aac alsa ffmpeg ipv6 opengl ssl theora truetype vorbis xml -debug (-dvb) -jack -jpeg -jpeg2k -mad -oss -png -pulseaudio -sdl -static-libs -xvid" 7,677 kB
[ebuild  N     ] media-video/vlc-2.1.4:0/5-7  USE="X a52 alsa avcodec avformat dbus dvbpsi egl encode ffmpeg flac fontconfig ncurses neon ogg opengl postproc qt4 skins swscale theora truetype udev vorbis xcb xml xv -aalib (-altivec) -atmo (-audioqueue) -avahi -bidi (-bluray) -cdda -cddb (-chromaprint) -dc1394 -debug -dirac -directfb (-directx) -dts (-dvb) -dvd (-dxva2) -faad -fdk (-fluidsynth) -gcrypt -gme -gnome -gnutls -growl -httpd (-ieee1394) (-ios-vout) -jack -kate -kde -libass -libcaca -libnotify -libsamplerate (-libtar) -libtiger -linsys (-lirc) -live -lua (-macosx) (-macosx-audio) (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-macosx-vout) -matroska (-media-library) (-mmx) -modplug -mp3 -mpeg (-mtp) (-musepack) -omxil (-opencv) -optimisememory -opus -png (-projectm) -pulseaudio (-qt5) -rdp -rtsp -run-as-root -samba (-schroedinger) -sdl -sdl-image -sftp -shout (-sid) -speex (-sse) -svg -taglib {-test} -tremor -twolame (-upnp) -v4l (-vaapi) -vcdx (-vdpau) -vlm -vnc -wma-fixed (-x264) (-zvbi)" 19,103 kB
[ebuild  N    *] media-video/xine-ui-0.99.7  USE="X nls readline -aalib -curl -debug -libcaca (-lirc) -vdr -xinerama" 1,712 kB
[blocks B      ] media-video/ffmpeg:0 ("media-video/ffmpeg:0" is blocking media-video/libav-9.12)

Total: 35 packages (34 new, 1 reinstall), Size of downloads: 289,341 kB
Conflict: 1 block (1 unsatisfied)

 * Error: The above package list contains packages which cannot be
 * installed at the same time on the same system.

  (media-video/ffmpeg-1.2.6:0/0::gentoo, ebuild scheduled for merge) pulled in by
    >=media-video/ffmpeg-1.2:0= required by (media-video/vlc-2.1.4:0/5-7::gentoo, ebuild scheduled for merge)
    >=media-video/ffmpeg-1.2.1:0= required by (media-video/mplayer-1.2_pre20130729:0/0::gentoo, ebuild scheduled for merge)
    media-video/ffmpeg:0 required by (media-libs/xine-lib-1.2.9999:1/1::gentoo, ebuild scheduled for merge)

  (media-video/libav-9.12:0/9::gentoo, ebuild scheduled for merge) pulled in by
    >=media-video/libav-9.8:= required by (media-video/mplayer-1.2_pre20130729:0/0::gentoo, ebuild scheduled for merge)
    >=media-video/libav-9[X?,encode?,gsm?,jpeg2k?,mp3?,opus?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?] (>=media-video/libav-9[X,encode,mp3,theora,truetype]) required by (virtual/ffmpeg-9:0/0::gentoo, ebuild scheduled for merge)


For more information about Blocked Packages, please refer to the following
section of the Gentoo Linux x86 Handbook (architecture is irrelevant):

http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?full=1#blocked


Dependency grep for convienience:
/usr/portage/media-video/mplayer/mplayer-1.2_pre20130729.ebuild:	|| ( >=media-video/ffmpeg-1.2.1:0= >=media-video/libav-9.8:= )
/usr/portage/media-video/vlc/vlc-2.1.4.ebuild:		!<media-video/ffmpeg-1.2:0
/usr/portage/media-video/vlc/vlc-2.1.4.ebuild:		avcodec? ( virtual/ffmpeg:0 )
/usr/portage/media-video/vlc/vlc-2.1.4.ebuild:		avformat? ( virtual/ffmpeg:0 )
/usr/portage/media-video/vlc/vlc-2.1.4.ebuild:		postproc? ( || ( >=media-video/ffmpeg-1.2:0= media-libs/libpostproc:0 ) )
/usr/portage/media-video/vlc/vlc-2.1.4.ebuild:		swscale? ( virtual/ffmpeg:0 )
/usr/portage/media-video/vlc/vlc-2.1.4.ebuild:		vaapi? ( x11-libs/libva:0 virtual/ffmpeg[vaapi] )
/usr/portage/media-video/vlc/vlc-2.1.4.ebuild:		vdpau? ( >=x11-libs/libvdpau-0.6:0 !<media-video/libav-10_beta1 )
/usr/portage/media-video/gpac/gpac-0.5.0-r1.ebuild:	ffmpeg? ( virtual/ffmpeg )
/usr/portage/media-libs/xine-lib/xine-lib-1.2.9999.ebuild:	|| ( media-video/ffmpeg:0 media-libs/libpostproc <media-video/libav-0.8.2-r1 )
/usr/portage/media-libs/xine-lib/xine-lib-1.2.9999.ebuild:	virtual/ffmpeg
/usr/portage/virtual/ffmpeg/ffmpeg-0.10.3.ebuild:	|| (
/usr/portage/virtual/ffmpeg/ffmpeg-0.10.3.ebuild:		>=media-video/ffmpeg-0.10.3:0[X?,encode?,gsm?,jpeg2k?,mp3?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?]
/usr/portage/virtual/ffmpeg/ffmpeg-0.10.3.ebuild:		>=media-video/libav-0.8.4[X?,encode?,gsm?,jpeg2k?,mp3?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?]
/usr/portage/virtual/ffmpeg/ffmpeg-0.10.3.ebuild:	)
/usr/portage/virtual/ffmpeg/ffmpeg-9.ebuild:	|| (
/usr/portage/virtual/ffmpeg/ffmpeg-9.ebuild:		>=media-video/libav-9[X?,encode?,gsm?,jpeg2k?,mp3?,opus?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?]
/usr/portage/virtual/ffmpeg/ffmpeg-9.ebuild:		>=media-video/ffmpeg-1.0:0[X?,encode?,gsm?,jpeg2k?,mp3?,opus?,sdl?,speex?,theora?,threads?,truetype?,vaapi?,vdpau?,x264?]
/usr/portage/virtual/ffmpeg/ffmpeg-9.ebuild:	)

Sample matching atom:
media-video/ffmpeg-1.2.6

Portage 2.2.10 (default/linux/arm/13.0/armv7a, gcc-4.8.2, glibc-2.19, 3.4.67+ armv7l)
=================================================================
System uname: Linux-3.4.67+-armv7l-ARMv7_Processor_rev_4_-v7l-with-gentoo-2.2
KiB Mem:      830948 total,    737900 free
KiB Swap:    8388604 total,   8381464 free
Timestamp of tree: Thu, 17 Apr 2014 12:30:01 +0000
ld GNU ld (GNU Binutils) 2.24
distcc 3.1 armv7a-hardfloat-linux-gnueabi [enabled]
ccache version 3.1.9 [disabled]
app-shells/bash:          4.2_p47
dev-lang/python:          2.7.6, 3.3.5
dev-util/ccache:          3.1.9-r3
dev-util/cmake:           2.8.12.2
dev-util/pkgconfig:       0.28-r1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.12.4
sys-apps/sandbox:         2.6-r1
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6, 1.14.1
sys-devel/binutils:       2.24-r2
sys-devel/gcc:            4.8.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.2
sys-devel/make:           4.0-r1
sys-kernel/linux-headers: 3.14 (virtual/os-headers)
sys-libs/glibc:           2.19
Repositories: gentoo local
ACCEPT_KEYWORDS="arm ~arm"
ACCEPT_LICENSE="*"
CBUILD="armv7a-hardfloat-linux-gnueabi"
CFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=vfpv3 -mfloat-abi=hard"
CHOST="armv7a-hardfloat-linux-gnueabi"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.5/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-Os -pipe -march=armv7-a -mtune=cortex-a7 -mfpu=vfpv3 -mfloat-abi=hard"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe -march=armv7-a"
FEATURES="assume-digests binpkg-logs buildpkg collision-protect compress-build-logs config-protect-if-modified distcc distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe -march=armv7-a"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-z,combreloc -Wl,-O1 -Wl,--hash-style=both -Wl,--as-needed"
MAKEOPTS="-j10 -l3"
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"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
USE="acl alsa arm bzip2 cli cracklib crypt cxx dri egl iconv ipv6 modules ncurses neon nls nptl offensive openmp pam python3 readline session ssl tcpd unicode wifi xattr xv zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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="kexi words flow plan sheets stage tables krita karbon braindump author" 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 ublox ubx" INPUT_DEVICES="evdev keyboard mouse joystick tslib synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en en_US en_GB pl" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_SINGLE_TARGET="python3_3" PYTHON_TARGETS="python3_3" RUBY_TARGETS="ruby21" USERLAND="GNU" VIDEO_CARDS="dummy fbdev v4l modesetting" 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, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, SYNC, USE_PYTHON
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-18 22:17:24 UTC
This has nothing to do with sys-apps/portage.
Comment 2 Jeroen Roovers (RETIRED) gentoo-dev 2014-04-18 22:21:59 UTC
You might find solace in bug #489922.
Comment 3 torindel 2014-04-18 22:27:24 UTC
my point is that if you emerge any two packages out of that four (eg emerge gpac mplayer) it will emerge them fine without block, emerging more that two at a time makes blocks
Comment 4 torindel 2014-04-18 22:33:48 UTC
you can get exactly same kind of block for eg on perl-5.16 -> 5.18 upgrade, where some packages will still want 5.16, some 5.18, some both, while all affected packages would feel fine with 5.18 (no hard deps on 5.16), when it could just emerge newer version and get over with it
Comment 5 Samuli Suominen (RETIRED) gentoo-dev 2014-06-22 17:44:35 UTC
The output looks O.K. to me, media-libs/xine-lib is preventing anything but media-video/ffmpeg because media-video/libav doesn't work for it.

You should first install eg. `emerge --ask --verbose --tree xine-ui`, then another, then another, ... one-by-one to get better outputs.

Nothing for media-video@g.o to do here, the problem is with unclear Portage output at most. It's known fact Portage could have nicer output, so I'm not going to reassign this to dev-portage@g.o, it would serve no purpose.