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

Bug 287306

Summary: media-video/vlc-1.0.2 fails to handle block of <=media-video/vlc-0.9.99999
Product: Gentoo Linux Reporter: craven <roderick.andara>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED DUPLICATE    
Severity: normal CC: jlec
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description craven 2009-10-02 05:45:00 UTC
Steps to Reproduce:
1. have media-video/vlc-0.9.10 installed
2. emerge -1 =media-video/vlc-1.0.2

Actual Results:
emerge -1 =media-video/vlc-1.0.2

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

Calculating dependencies... done!
[ebuild     U ] media-video/vlc-1.0.2 [0.9.10] USE="X a52 aac aalib alsa cdda cddb cdio dbus dts dvd ffmpeg flac gcrypt gnutls hal ieee1394%* libnotify live matroska mmx mp3 mpeg ncurses nsplugin ogg opengl png qt4 rtsp schroedinger sdl speex sse stream svg svga taglib theora truetype v4l v4l2 vorbis win32codecs x264 xml xosd xv (-altivec) -atmo -avahi -bidi -cddax -dc1394 -debug -dirac -directfb -dvb -fbcon -fluidsynth -fontconfig -ggi -gnome -httpd -id3tag -jack -kate -libass -libcaca -libproxy% -libsysfs -libtiger% -libv4l2 -lirc -lua -modplug -mtp% -musepack -optimisememory -oss (-pda) -pulseaudio -pvr -remoteosd -run-as-root -samba -sdl-image -seamonkey -shine% -shout -skins -twolame -upnp -vcdinfo -vcdx -vlm -wma-fixed% -xcb% -xinerama -zvbi (-arts%) (-esd%)" 0 kB

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

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

>>> Verifying ebuild manifests

>>> Emerging (1 of 1) media-video/vlc-1.0.2
 * vlc-m4-1.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                    [ ok ]
 * vlc-1.0.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                                   [ ok ]
 * vlc-patches-76.tar.bz2 RMD160 SHA1 SHA256 size ;-) ...                                                                                                                                                                              [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                                                                                                   [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                                                                                                  [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                                                                                                 [ ok ]
 * Please unmerge vlc-0.9.x first before installing vlc-1.0.2
 * If you don't do that, some plugins will get linked against
 * the old vlc version and will not work.
 * 
 * ERROR: media-video/vlc-1.0.2 failed.
 * Call stack:
 *               ebuild.sh, line   49:  Called pkg_setup
 *        vlc-1.0.2.ebuild, line  198:  Called die
 * The specific snippet of code:
 *              die "Unmerge vlc 0.9.x first"
 *  The die message:
 *   Unmerge vlc 0.9.x first
 * 
 * If you need support, post the topmost build error, and the call stack if relevant.
 * A complete build log is located at '/var/tmp/portage/media-video/vlc-1.0.2/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/media-video/vlc-1.0.2/temp/die.env'.
 * 



Expected Results:
portage should unmerge media-video/vlc-0.9.10 automatically before emerging media-video/vlc-1.0.2 or at least issue a warning about the block when the dependency calculation has finished and before starting to emerge media-video/vlc-1.0.2

Additional Information:
as the ebuild uses EAPI="2" and !!<=media-video/vlc-0.9.99999 I'm not sure if this is an ebuild or a portage bug, therefore here my portage and python versions:
sys-apps/portage-2.1.6.13
dev-lang/python-2.6.2-r1
Comment 1 Justin Lecher (RETIRED) gentoo-dev 2009-10-02 07:10:03 UTC
emerge cannot unemerge things before it emerges new ones. That's why it dies and clearly tells you what todo:

 * Please unmerge vlc-0.9.x first before installing vlc-1.0.2
 * If you don't do that, some plugins will get linked against
 * the old vlc version and will not work.

Comment 2 craven 2009-10-02 11:13:27 UTC
so what are "!!"-blocks good for, if portage just ignores them?
portage should complain about the block/conflict before starting to merge new packages and not just die in the middle of its work.
you might want to relabel the bug, but I think this is a very valid portage bug.
Comment 3 Justin Lecher (RETIRED) gentoo-dev 2009-10-02 12:25:48 UTC
It spoke to the maintainer and he corrected me, There is allready a !! blocker in the ebuild, which is probably not handled correctly. Therefor the eerror msg was introduce to handle this situation.

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