Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 361115 - media-video/smplayer: Request to add support for media-video/mplayer2
Summary: media-video/smplayer: Request to add support for media-video/mplayer2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal enhancement (vote)
Assignee: Gentoo Media-video project
URL:
Whiteboard:
Keywords:
: 361471 379709 382775 (view as bug list)
Depends on:
Blocks:
 
Reported: 2011-03-29 13:25 UTC by mack1
Modified: 2011-09-17 05:45 UTC (History)
6 users (show)

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


Attachments
add mplayer2 as alternative dependency for smplayer (smplayer_mplayer2.patch,552 bytes, patch)
2011-04-01 12:49 UTC, Kamil Domański
Details | Diff
add mplayer2 as alternative dependency for gnome-mplayer (gnome-mplayer_mplayer2.patch,613 bytes, patch)
2011-04-01 12:52 UTC, Kamil Domański
Details | Diff
add mplayer2 as alternative dependency for smplayer (smplayer_mplayer2.patch,544 bytes, patch)
2011-04-03 21:14 UTC, Kamil Domański
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description mack1 2011-03-29 13:25:44 UTC
The dependencies of gnome-mplayer should be updated with the addition of the portage tree mplayer2, because if you install gnome-mplayer, having already installed mplayer2, portage tries to install mplayer.

Reproducible: Always

Steps to Reproduce:
1.Install mplayer2
2.Try to install gnome-mplayer
3.Portage tries to install mplayer



root@Snow:~>emerge -pv mplayer2 gnome-mplayer

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

Calculating dependencies           ... done!

[ebuild   R   ] media-video/mplayer2-2.0  USE="3dnow 3dnowext X a52 aalib alsa ass bzip2 cdio custom-cflags dga dts dv dvd dvdnav enca faad gif hardcoded-tables iconv ipv6 jpeg live mad mmx mng mp3 network osdmenu png quicktime rar rtc samba schroedinger shm speex sse sse2 symlink system-ffmpeg theora threads truetype unicode vdpau vorbis xv (-altivec) -amr (-aqua) -bidi -bindist -bl -bluray -bs2b -cddb -cdparanoia -cpudetection -custom-cpuopts -debug -dirac -directfb -doc -dvb -dxr3 -esd -fbcon -ftp -ggi -gsm -jack -joystick -jpeg2k -ladspa -libcaca -lirc -md5sum -mmxext -mpg123 -nas -nut -opengl -oss -pnm -pulseaudio -pvr -radio (-real) -rtmp -sdl -ssse3 -tga -v4l -v4l2 -vpx (-win32codecs) -xanim -xinerama -xscreensaver -xvmc" VIDEO_CARDS="vesa -mga -s3virge -tdfx" 0 kB

[ebuild  N    ] media-video/mplayer-1.0_rc4_p20101114  USE="3dnow 3dnowext X a52 aalib alsa ass cddb cdio dga dirac dts dv dvd dvdnav enca encode faac faad gif iconv ipv6 jpeg live mad mmx mng mp3 network osdmenu png quicktime rar real rtc samba schroedinger shm speex sse sse2 theora toolame tremor truetype twolame unicode vdpau vorbis x264 xv xvid (-altivec) -amr (-aqua) -bidi -bindist -bl (-bluray) -bs2b -cdparanoia -cpudetection -custom-cpuopts -debug -directfb -doc -dvb -dxr3 -esd -fbcon -ftp -ggi -gsm -jack -joystick -jpeg2k -ladspa -libcaca -libmpeg2 -lirc -lzo -md5sum -mmxext -mpg123 -nas -nut -openal -opengl -oss -pnm -pulseaudio -pvr -radio -rtmp -sdl -ssse3 -tga -v4l -v4l2 (-vidix) -vpx (-win32codecs) -xanim -xinerama -xscreensaver -xvmc -zoran" VIDEO_CARDS="vesa -mga -s3virge -tdfx" 8,316 kB
[ebuild   R   ] media-video/gnome-mplayer-1.0.2  USE="alsa dbus gnome -ipod -libnotify -musicbrainz -pulseaudio" 0 kB
[blocks B     ] media-video/mplayer ("media-video/mplayer" is blocking media-video/mplayer2-2.0)

Total: 3 packages (1 new, 2 reinstalls), Size of downloads: 8,316 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/mplayer2-2.0, ebuild scheduled for merge) pulled in by
    mplayer2

  (media-video/mplayer-1.0_rc4_p20101114, ebuild scheduled for merge) pulled in by
    >=media-video/mplayer-1.0_rc4_p20091026[ass] required by (media-video/gnome-mplayer-1.0.2, ebuild scheduled for merge)
Comment 1 mack1 2011-03-29 13:26:22 UTC
Portage 2.1.9.42 (default/linux/amd64/10.0/desktop/gnome, gcc-4.5.2, glibc-2.11.3-r0, 2.6.36-gentoo-r8 x86_64)
=================================================================
System uname: Linux-2.6.36-gentoo-r8-x86_64-AMD_Phenom-tm-_II_X4_920_Processor-with-gentoo-2.0.2
Timestamp of tree: Tue, 29 Mar 2011 12:15:01 +0000
app-shells/bash:     4.1_p9
dev-lang/python:     2.7.1-r1, 3.1.3-r1
dev-util/cmake:      2.8.1-r2
sys-apps/baselayout: 2.0.2
sys-apps/openrc:     0.8.0
sys-apps/sandbox:    2.4
sys-devel/autoconf:  2.13, 2.65-r1
sys-devel/automake:  1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:  2.20.1-r1
sys-devel/gcc:       4.5.2
sys-devel/gcc-config: 1.4.1
sys-devel/libtool:   2.2.10
sys-devel/make:      3.81-r2
virtual/os-headers:  2.6.36.1 (sys-kernel/linux-headers)
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -D_FORTIFY_SOURCE=2 -fno-ident -pipe -mcx16 -msahf -mpopcnt -mabm   --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512"
CHOST="x86_64-pc-linux-gnu"
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/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -march=amdfam10 -D_FORTIFY_SOURCE=2 -fno-ident -pipe -mcx16 -msahf -mpopcnt -mabm   --param l1-cache-size=64 --param l1-cache-line-size=64 --param l2-cache-size=512"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--jobs=12 --load-average=12"
FEATURES="assume-digests binpkg-logs candy distlocks fixlafiles fixpackages news parallel-fetch protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://mirror.switch.ch/ftp/mirror/gentoo/ http://mirror.cambrium.nl/pub/os/linux/gentoo/"
LANG="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,now -Wl,-z,relro -Wl,--hash-style=gnu -s"
LINGUAS="it"
MAKEOPTS="-j5"
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"
SYNC="rsync://rsync.samerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac aalib acpi alsa amd64 aspell branding bzip2 cairo cdr cleartype cli consolekit corefonts cracklib crypt cups custom-cflags custom-optimization dbus dga djvu dri dts dvd dvdr emboss encode evo exif ffmpeg firefox flac fortran fuse gdbm gdu gif gimp gmp gnome gpm gtk iconv icu ipv6 ithreads jpeg lame lcms mad mikmod mmx mng modules mp3 mp4 mpeg mplayer multilib nautilus ncurses networkmanager nls nptl nptlonly nsplugin nvidia ogg openexr openmp pam pango pdf png policykit ppds pppd qt3support readline samba scanner schroedinger session slang smp spell sse sse2 sse3 sse4a ssl svg symlink sysfs theora threads tiff truetype type1 udev unicode usb vdpau vorbis wifi wma wmf x264 xft xml xorg xv xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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" 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" LINGUAS="it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="nvidia vesa" 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_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 2 mack1 2011-03-29 13:30:06 UTC
Gnome-mplayer works fine with mplayer2....

Cheers
Comment 3 tman 2011-03-30 15:03:22 UTC
i can confirm this blocking too, cu i use mplayer2 and gnome-player and it alltime tries to emerge mplayer at emerge -uDN world
Comment 4 Pavel Volkov 2011-03-31 07:16:09 UTC
These packages have the same problem with mplayer/mplayer2:

app-misc/anki
kde-base/mplayerthumbs
Comment 5 Tomáš Chvátal (RETIRED) gentoo-dev 2011-03-31 07:18:51 UTC
Yes you can use it as mplayer but for now there is no virtual or planned one.

If you really want to use mplayer2 as complete mplayer replacement just write
into /etc/portage/profile/package.provided something like
media-video/mplayer-1.0

or if you want to use mplayer2 in console but want all the gui apps to rely on mplayer1 just use -symlink on mplayer2 where both mplayer1 and mplayer2 can be installed together.
Comment 6 mack1 2011-03-31 08:47:00 UTC
Thanks Tomáš!
The workaround, that you suggested, works fine!

Cheers
Comment 7 Pavel Volkov 2011-03-31 14:45:36 UTC
(In reply to comment #6)
> The workaround, that you suggested, works fine!

Which one? package.provided doesn't resolve the block for me.
Comment 8 mack1 2011-03-31 17:32:15 UTC
(In reply to comment #7)
> (In reply to comment #6)
> > The workaround, that you suggested, works fine!
> 
> Which one? package.provided doesn't resolve the block for me.

Tomáš Chvátal wrote:

>If you really want to use mplayer2 as complete mplayer replacement just write
>into /etc/portage/profile/package.provided something like
>media-video/mplayer-1.0

my package.provided contains:
media-video/mplayer-1.0

Now gnome-mplayer doesn't require any packages as dependencies, so the block is solved here.
Comment 9 Pavel Volkov 2011-03-31 18:21:58 UTC
Oh, well, I've put it into /etc/portage/ like the rest (package.use, package.mask, package.keywords).
It works alright in /etc/portage/profile/.
Comment 10 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-01 08:30:57 UTC
*** Bug 361471 has been marked as a duplicate of this bug. ***
Comment 11 Kamil Domański 2011-04-01 12:49:49 UTC
Created attachment 268123 [details, diff]
add mplayer2 as alternative dependency for smplayer

This patch changes the dependency of media-video/smplayer-0.6.9 to allow for mplayer2 as an alternative for mplayer.

Please merge this patch into tree.
Comment 12 Kamil Domański 2011-04-01 12:52:03 UTC
Created attachment 268125 [details, diff]
add mplayer2 as alternative dependency for gnome-mplayer

This patch changes the dependency of media-video/gnome-mplayer-1.0.2 to allow for mplayer2 as an alternative for mplayer.

Please merge this patch into tree.
Comment 13 tman 2011-04-02 13:59:30 UTC
the problem ist everytime if we make revdep portage unmerge mplayer2 automatically and emerge mplayer.
Comment 14 Samuli Suominen (RETIRED) gentoo-dev 2011-04-02 14:24:35 UTC
I don't know at which point mplayer got forked into mplayer2, but gnome-mplayer needs at least mplayer revision 29565 for panscan to work
And I'm not intrested in mplayer2 at all myself, so feel free to change the depend to allow mplayer2 as secondary choice only if it's beyond r29565, if not, then it's a no-go.
Comment 15 Kamil Domański 2011-04-02 21:04:18 UTC
smplayer works fine with mplayer2, and a bug related only to smplayer was closed as a duplicate of this bug. Therefore I humbly request any dev to at least merge the smplayer patch.
Comment 16 tman 2011-04-03 06:48:59 UTC
@Samuli Suominen 

i guess u are one of the dev :) her is a comparison, maybe its able to convince u to "interest" in it :)

http://www.mplayer2.org/comparison.html
Comment 17 Tomáš Chvátal (RETIRED) gentoo-dev 2011-04-03 10:49:52 UTC
They are not all that compatible so there should be no guarantee that the gui packages will work for both.

Currently they do what they should do, block each other.
Comment 18 Kamil Domański 2011-04-03 12:35:48 UTC
@Tomáš Chvátal

I'm not talking about making them substitutes for every package. The bug's title might expand your attention to the "larger context", but I'm talking about smplayer only. That particular GUI package works correct with mplayer2 and I'm using it without any problems.

Therefore, it is IMO reasonable, to add a dependency-patched ebuild as keyworded media-video/smplayer-0.6.9-r1.

If you think this bug should not be looking into any single GUI, but focus on overall compatibility, then perhaps I should open another bug? One bug focused on smplayer is already marked as a duplicate.
Comment 19 Samuli Suominen (RETIRED) gentoo-dev 2011-04-03 13:01:26 UTC
Either this needs to be parallel installable with mplayer, or it needs to be complete substition for all the reverse dependencies. Otherwise it will never get out of package.mask, and more likely get removed from tree.
Comment 20 Kamil Domański 2011-04-03 15:03:36 UTC
It's parallel installable with USE="-symlink". Meanwhile, users of smplayer who want to use mplayer2, cannot remove mplayer without leaving the dependency unsatisfied.
Comment 21 Samuli Suominen (RETIRED) gentoo-dev 2011-04-03 20:36:39 UTC
Comment on attachment 268123 [details, diff]
add mplayer2 as alternative dependency for smplayer

No longer valid patch, USE=symlink is gone
Comment 22 Samuli Suominen (RETIRED) gentoo-dev 2011-04-03 20:36:59 UTC
Comment on attachment 268125 [details, diff]
add mplayer2 as alternative dependency for gnome-mplayer

No longer valid patch, USE=symlink is gone
Comment 23 Samuli Suominen (RETIRED) gentoo-dev 2011-04-03 20:38:47 UTC
No longer valid bug, USE=symlink is gone.   Feel free to fix smplayer's code to accept either mplayer or mplayer2 binaries as they are.
Comment 24 Kamil Domański 2011-04-03 21:14:10 UTC
Created attachment 268419 [details, diff]
add mplayer2 as alternative dependency for smplayer

New patch accepts either mplayer or mplayer2 without symlink.

Please merge into portage tree.

Be advised, smplayer's default config needs to be set to use mplayer2, even if mplayer not present.
Comment 25 Jeroen Roovers (RETIRED) gentoo-dev 2011-09-14 16:26:47 UTC
*** Bug 382775 has been marked as a duplicate of this bug. ***
Comment 26 Steve Dibb (RETIRED) gentoo-dev 2011-09-17 00:10:38 UTC
In CVS
Comment 27 Nikoli 2011-09-17 05:45:18 UTC
*** Bug 379709 has been marked as a duplicate of this bug. ***