Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 541678 - media-video/vlc-2.2.0: minor issues with the ebuild
Summary: media-video/vlc-2.2.0: minor issues with the ebuild
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor (vote)
Assignee: Nick Andrade
URL:
Whiteboard:
Keywords:
: 542262 543358 (view as bug list)
Depends on:
Blocks:
 
Reported: 2015-02-28 17:54 UTC by Rafał Mużyło
Modified: 2015-05-19 14:06 UTC (History)
7 users (show)

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


Attachments
config.log (config.log,303.16 KB, text/x-log)
2015-03-01 15:34 UTC, jms
Details
build log showing qt4/qt5 confusion (vlc-2.2.0-build.log.bz2,97.11 KB, application/x-bzip2)
2015-03-02 15:40 UTC, Alexandre Rostovtsev (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Rafał Mużyło 2015-02-28 17:54:49 UTC
Emerges good with renamed 2.2.9999 ebuild.

Things to note:
- subslot should be (probably) '5-8', though is libvlccore actually used by anything outside vlc itself ?
- '--enable-glx' switch got removed
- requires ffmpeg 2.5 (or at least fails to build with 2.2)
- dep on media-libs/libdvdnav should probably be equal to media-libs/libdvdread (well, it requires 4.9, but I mean it as a more long term thought)

That's about all that I remember.
Comment 1 Rafał Mużyło 2015-02-28 20:07:39 UTC
...yay, I've filed this at about the same time ebuild was added to the tree, therefore adjusting summary
Comment 2 Manuel Rüger (RETIRED) gentoo-dev 2015-02-28 23:00:07 UTC
(In reply to Rafał Mużyło from comment #0)
> Emerges good with renamed 2.2.9999 ebuild.
> 
> Things to note:
> - subslot should be (probably) '5-8', though is libvlccore actually used by
> anything outside vlc itself ?
> - '--enable-glx' switch got removed
> - requires ffmpeg 2.5 (or at least fails to build with 2.2)
> - dep on media-libs/libdvdnav should probably be equal to
> media-libs/libdvdread (well, it requires 4.9, but I mean it as a more long
> term thought)

Yep. 
checking for DVDNAV... no
configure: error: Library dvdnav > 4.9.0 needed for dvdnav was not found

> 
> That's about all that I remember.
Comment 3 Karol Herbst 2015-03-01 11:52:16 UTC
also qt4/qt5 selection is broken inside vlc. These patches help here: https://gist.github.com/karolherbst/fb9e3d8f6ba05f1f5d54
Comment 4 jms 2015-03-01 15:29:28 UTC
I do also have a configure error


checking for XCB_SHM... yes
checking for XCB_COMPOSITE... yes
checking for XPROTO... yes
checking for XCB_XV... yes
checking for XCB_RANDR... yes
checking for XCB_KEYSYMS... yes
checking for VDPAU... yes
configure: error: libavutil >= 52.4.0 and libavcodec >= 55.26.0 are required for VDPAU decoding.

!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-video/vlc-2.2.0/work/vlc-2.2.0/config.log
 * ERROR: media-video/vlc-2.2.0::gentoo failed (configure phase):
 *   econf failed
Comment 5 jms 2015-03-01 15:34:11 UTC
Created attachment 397788 [details]
config.log
Comment 6 jms 2015-03-01 15:38:07 UTC
 emerge --info media-video/vlc
Portage 2.2.17 (python 3.3.5-final-0, default/linux/amd64/13.0/desktop/kde, gcc-4.9.2, glibc-2.19-r1, 3.17.3-gentoo-jms-r16 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-3.17.3-gentoo-jms-r16-x86_64-Intel-R-_Core-TM-_i5-3210M_CPU_@_2.50GHz-with-gentoo-2.2
KiB Mem:     7674108 total,   2407032 free
KiB Swap:    8396796 total,   6148036 free
Timestamp of repository gentoo: Sun, 01 Mar 2015 14:45:01 +0000
sh bash 4.3_p33-r2
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p33-r2::gentoo
dev-java/java-config:     2.2.0::gentoo
dev-lang/perl:            5.20.1-r4::gentoo
dev-lang/python:          2.7.9-r1::gentoo, 3.3.5-r1::gentoo, 3.4.1::gentoo
dev-util/cmake:           3.1.0::gentoo
dev-util/pkgconfig:       0.28-r1::gentoo
sys-apps/baselayout:      2.2::gentoo
sys-apps/openrc:          0.13.11::gentoo
sys-apps/sandbox:         2.6-r1::gentoo
sys-devel/autoconf:       2.13::gentoo, 2.69::gentoo
sys-devel/automake:       1.11.6-r1::gentoo, 1.13.4::gentoo
sys-devel/binutils:       2.24-r3::gentoo
sys-devel/gcc:            4.9.2::gentoo
sys-devel/gcc-config:     1.7.3::gentoo
sys-devel/libtool:        2.4.4::gentoo
sys-devel/make:           4.1-r1::gentoo
sys-kernel/linux-headers: 3.16::gentoo (virtual/os-headers)
sys-libs/glibc:           2.19-r1::gentoo
Repositories:

gentoo
    location: /portage
    sync-type: rsync
    sync-uri: rsync://rsync.namerica.gentoo.org/gentoo-portage
    priority: -1000

pinkbyte
    location: /var/lib/layman/pinkbyte
    masters: gentoo
    priority: 0

gamerlay
    location: /var/lib/layman/gamerlay
    masters: gentoo
    priority: 1

x-portage
    location: /usr/local/portage
    masters: gentoo
    priority: 2

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe "
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /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.3/ext-active/ /etc/php/apache2-php5.4/ext-active/ /etc/php/apache2-php5.5/ext-active/ /etc/php/apache2-php5.6/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cgi-php5.4/ext-active/ /etc/php/cgi-php5.5/ext-active/ /etc/php/cgi-php5.6/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/php/cli-php5.4/ext-active/ /etc/php/cli-php5.5/ext-active/ /etc/php/cli-php5.6/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe "
DISTDIR="/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs clean-logs collision-protect config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://91.121.124.139/gentoo-distfiles/ http://91.121.125.139/gentoo-distfiles/ ftp://ftp.swin.edu.au/gentoo  ftp://gentoo.mirrors.ovh.net/gentoo-distfiles/"
LANG="en_GB.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j4"
PKGDIR="/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"
USE="X a52 aac aalib acl acpi alsa amd64 ao avahi bash-completion berkdb bindist bluetooth branding bzip2 cairo cdaudio cdda cddb cdparanoia cdr cjk cli consolekit cracklib crypt css cups cxx dbus declarative dhcpcd dri dts dv dvb dvd dvdnav dvdr emboss encode evdev exif ffmpeg firefox flac fontconfig fortran gd gdbm gif glamor gpm gtk gzip iconv icu imap inotify ipv6 jpeg jpeg2k kde kipi laptop lcms ldap libkms libnotify lzma lzo mad maildir matroska memlimit mhash mikmod mime mmap mmx mng mod modules motif mp3 mp4 mpeg mtp multilib mysql ncurse ncurses nls nptl ogg openal opengl openmp oss pam pango pcmcia pcre pdf phonon plasma png policykit ppds pulseaudio qt3support qt4 quicktime raw readline resolvconf scanner sdl semantic-desktop sematic-deskyop session smp spell sse sse2 ssl startup-notification svg syslog taglib tcpd theora thumbnail tidy tiff truetype udev udisks unicode upower usb utf8 v4l v4l2 vaapi vcd vdpau video vim-syntax vorbis wifi win32codecs wxwidgets x x264 xcb xcomposit xcomposite xine xinerama xml xosd xpm xscreensaver xulrunner xv xvid xvmc zip zlib" ABI_X86="64 32" 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" 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" CPU_FLAGS_X86="aes avx mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" 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" GRUB_PLATFORMS="efi-64" INPUT_DEVICES="evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="en_GB en es fr en" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" RUBY_TARGETS="ruby19 ruby20" USERLAND="GNU" VIDEO_CARDS="intel nvidia 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, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON

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

media-video/vlc-2.1.5-r1::gentoo was built with the following:
USE="X a52 aalib alsa avahi avcodec avformat cdda cddb dbus dts dvb dvbpsi dvd encode ffmpeg flac fontconfig gcrypt kde libass libnotify matroska mp3 mpeg mtp ncurses ogg opengl png postproc pulseaudio qt4 sdl svg swscale taglib theora truetype udev v4l vaapi vdpau vorbis x264 xcb xml xv (-altivec) -atmo (-audioqueue) -bidi -bluray -chromaprint -dc1394 -debug -dirac -directfb (-directx) (-dxva2) -egl -faad -fdk -fluidsynth -gme -gnome -gnutls -growl -httpd -ieee1394 (-ios-vout) -jack -kate -libav -libcaca -libsamplerate -libtar -libtiger -linsys -lirc -live -lua (-macosx) (-macosx-audio) (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-macosx-vout) (-media-library) -modplug -musepack (-neon) -omxil -opencv -optimisememory -opus -projectm -rdp -rtsp -run-as-root -samba -schroedinger -sdl-image -sftp -shout -sid -skins -speex -test -tremor -twolame -upnp -vcdx -vlm -vnc -wma-fixed -zvbi" ABI_X86="64" CPU_FLAGS_X86="mmx sse"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -L/usr/lib64/sidplay/builders/"


and

emerge -pvuND media-video/vlc

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

Calculating dependencies... done!
[ebuild     U ~] media-video/vlc-2.2.0:0/5-7::gentoo [2.1.5-r1:0/5-7::gentoo] USE="X a52 aalib alsa avahi avcodec avformat cdda cddb dbus dts dvb dvbpsi dvd encode ffmpeg flac fontconfig gcrypt jpeg%* kde libass libnotify matroska mp3 mpeg mtp ncurses ogg opengl png postproc pulseaudio qt4 sdl svg swscale taglib theora truetype udev v4l vaapi vdpau vorbis x264 xcb xml xv (-altivec) -atmo (-audioqueue) -bidi -bluray -chromaprint -dc1394 -debug -directfb (-directx) (-dxva2) -faad -fdk -fluidsynth -gme -gnome -gnutls -growl -httpd -ieee1394 -jack -kate -libav -libcaca -libsamplerate -libtar -libtiger -linsys -lirc -live -lua (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -musepack (-neon) -omxil -opencv -optimisememory -opus -projectm -qt5% -rdp -rtsp -run-as-root -samba -schroedinger -sdl-image -sftp -shout -sid -skins -speex {-test} -tremor -twolame -upnp -vcdx -vlm -vnc -vpx% -wma-fixed -x265% -zvbi (-dirac%) (-egl%) (-ios-vout%) (-macosx%) (-macosx-audio%) (-macosx-vout%)" CPU_FLAGS_X86="mmx sse" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB
Comment 7 jms 2015-03-01 15:49:51 UTC
humm maybe I should have opened another bug for this...
note I always had VDPAU set and I never had libav installed
I use media-video/ffmpeg
I guess I will try to update to latest unstable ffmpeg as I guess this is what cause pb
I have now:

[I] media-video/ffmpeg
     Available versions:  
     (0.10) (~)0.10.15
     (0)    ~1.0.10 1.2.6-r1 ~1.2.11 ~1.2.12 ~2.2.12(0/52.55.55) ~2.2.13(0/52.55.55) ~2.5.3(0/54.56.56) ~2.5.4(0/54.56.56) **9999(0/54.56.56)
       {X aac aacplus alsa altivec amr amrenc armv5te armv6 armv6t2 armvfp bindist bluray bs2b +bzip2 cdio celt cpudetection debug dirac doc +encode examples faac fdk flite fontconfig frei0r fribidi gme gnutls +gpl gsm +hardcoded-tables +iconv iec61883 ieee1394 jack jpeg2k ladspa libass libcaca libsoxr libv4l lzma mips32r2 mipsdspr1 mipsdspr2 mipsfpu modplug mp3 neon +network openal opengl openssl opus oss pic +postproc pulseaudio quvi rtmp samba schroedinger sdl speex ssh static-libs test theora (+)threads truetype twolame v4l vaapi vdpau vis vorbis vpx wavpack webp x264 x265 xcb xvid +zlib zvbi ABI_MIPS="n32 n64 o32" ABI_PPC="32 64" ABI_S390="32 64" ABI_X86="32 64 x32" CPU_FLAGS_X86="3dnow 3dnowext avx avx2 fma3 fma4 mmx mmxext sse sse2 sse3 sse4_1 sse4_2 ssse3 xop" FFTOOLS="+aviocat +cws2fws +ffescape +ffeval +ffhash +fourcc2pixfmt +graph2dot +ismindex +pktdumper +qt-faststart +trasher"}
     Installed versions:  0.10.15(0.10)(19:24:27 30/01/15)(X aac alsa bindist bzip2 encode hardcoded-tables jpeg2k mp3 network openal oss pulseaudio sdl theora threads truetype v4l vaapi vdpau vorbis x264 xvid zlib -aacplus -altivec -amr -cdio -celt -cpudetection -debug -dirac -doc -faac -frei0r -gnutls -gsm -ieee1394 -jack -libass -libv4l -modplug -neon -openssl -pic -rtmp -schroedinger -speex -static-libs -test -vis -vpx ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" CPU_FLAGS_X86="avx mmx mmxext ssse3 -3dnow -3dnowext") 1.2.6-r1(19:19:17 30/01/15)(X aac alsa bindist bzip2 encode fontconfig hardcoded-tables iconv jpeg2k mp3 network openal opus oss pulseaudio sdl theora threads truetype v4l vaapi vdpau vorbis x264 xvid zlib -aacplus -altivec -amr -bluray -cdio -celt -cpudetection -debug -doc -examples -faac -fdk -flite -frei0r -gnutls -gsm -iec61883 -ieee1394 -jack -libass -libcaca -libsoxr -libv4l -modplug -neon -openssl -pic -rtmp -schroedinger -speex -static-libs -test -twolame -vis -vpx ABI_MIPS="-n32 -n64 -o32" ABI_PPC="-32 -64" ABI_S390="-32 -64" ABI_X86="32 64 -x32" CPU_FLAGS_X86="avx mmx mmxext ssse3 -3dnow -3dnowext" FFTOOLS="aviocat cws2fws ffescape ffeval fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart trasher")
     Homepage:            http://ffmpeg.org/
     Description:         Complete solution to record, convert and stream audio and video. Includes libavcodec
Comment 8 jms 2015-03-01 16:57:53 UTC
so yes in my case it was about ffmpeg
vlc won't pass configuration with 
media-video/ffmpeg-1.2.6-r1
cose
libavutil >= 52.4.0 and libavcodec >= 55.26.0 are required for VDPAU decoding.

but will install fine with
media-video/ffmpeg-2.5.4

I havn't tested media-video/ffmpeg version in between

I belive ebuild should deal with this.
Comment 9 Rafał Mużyło 2015-03-01 17:12:05 UTC
@comments 4, 5 and 6: I wonder why did you use so many words to say "me too" ?
Comment 10 jms 2015-03-01 20:04:13 UTC
@comment 9
Due to space time distortions I lamentably failed to see
"- requires ffmpeg 2.5 (or at least fails to build with 2.2)"
Comment 11 Paweł Stankowski 2015-03-01 22:09:02 UTC
(In reply to Karol Herbst from comment #3)
> also qt4/qt5 selection is broken inside vlc. These patches help here:
> https://gist.github.com/karolherbst/fb9e3d8f6ba05f1f5d54

Yeah, upstream version of vlc always preprefers qt5 over qt4. There is a bug without much interest from vlc devs. I have even created a patch for this, and your patch seems to be the same.

Anyway, I resolved qt version selection in other way - it uses qtchooser to select the proper one. It requires qt-4.8.6-r1 and qt-5.3.1-r1 (or maybe some higher revs) which are the first qtchooser-ready packages. I will have to set these versions as minimal ones.

Let me know if you have any problems with qt version selection, but I think that this patch is not needed for vlc ebuilds.
Comment 12 Karol Herbst 2015-03-01 22:51:53 UTC
the QT_SELECT thing doesn't work for me. I think this is because the qt automake files are checking against the pkg-config files directly where I don't see why qtchooser should make any difference.
Comment 13 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-03-02 15:32:55 UTC
(In reply to Paweł Stankowski from comment #11)
> Let me know if you have any problems with qt version selection, but I think
> that this patch is not needed for vlc ebuilds.

I emerged vlc-2.2.0 with USE="qt4 -qt5" and it linked to qt5 - which is unfortunate because the qt5 UI is apparently buggy (e.g. video output always goes in a separate window).

media-video/vlc-2.2.0::gentoo was built with the following:
USE="X a52 alsa avahi avcodec avformat bidi cdda cddb dbus dts dvbpsi dvd encode ffmpeg flac fontconfig gcrypt gnome jpeg kate libass libav libnotify libsamplerate libtiger matroska mp3 mpeg musepack ncurses ogg opengl opus png postproc projectm pulseaudio qt4 rtsp sdl shout speex svg swscale taglib theora truetype twolame udev upnp v4l vaapi vcdx vlm vorbis x264 x265 xcb xml xv zvbi -aalib (-altivec) -atmo (-audioqueue) -bluray -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -faad -fdk -fluidsynth -gme -gnutls -growl -httpd -ieee1394 -jack -kde -libcaca -libtar -linsys -lirc -live -lua (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -mtp (-neon) -omxil -opencv -optimisememory -qt5 -rdp -run-as-root -samba -schroedinger -sdl-image -sftp -sid -skins -test -tremor -vdpau -vnc -vpx -wma-fixed" ABI_X86="64" CPU_FLAGS_X86="mmx sse"

# scanelf -n /usr/lib64/vlc/plugins/gui/libqt4_plugin.so
 TYPE   NEEDED FILE 
ET_DYN libvlccore.so.8,librt.so.1,libidn.so.11,libpthread.so.0,libdl.so.2,libdbus-1.so.3,libQt5Widgets.so.5,libQt5Gui.so.5,libQt5Core.so.5,libX11.so.6,libstdc++.so.6,libm.so.6,libc.so.6,libgcc_s.so.1 /usr/lib64/vlc/plugins/gui/libqt4_plugin.so
Comment 14 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-03-02 15:40:57 UTC
Created attachment 397870 [details]
build log showing qt4/qt5 confusion
Comment 15 Rafał Mużyło 2015-03-02 16:01:50 UTC
> I emerged vlc-2.2.0 with USE="qt4 -qt5" and it linked to qt5 - which is unfortunate because the qt5 UI is apparently buggy (e.g. video output always goes in a separate window).

Would you mind to elaborate on that "separate window" part ? Which qt5 version is installed ?

Regardless, as comment 3 and comment 11 state, while qtchooser will still need to be set up properly, the detection itself will require a patch equivalent to the one mentioned will be necessary.
Comment 16 Alexandre Rostovtsev (RETIRED) gentoo-dev 2015-03-02 16:21:29 UTC
(In reply to Rafał Mużyło from comment #15)
> > I emerged vlc-2.2.0 with USE="qt4 -qt5" and it linked to qt5 - which is unfortunate because the qt5 UI is apparently buggy (e.g. video output always goes in a separate window).
> 
> Would you mind to elaborate on that "separate window" part ? Which qt5
> version is installed ?

The UI behaves as if embedded-video=0 was set in vlcrc. (It's not.) In other words, vlc opens two windows: one with the menu and controls and an empty black space in the middle, and a second window with video output.

This is with qtgui 4.8.6-r1 and 5.4.1 both installed.
Comment 17 Paweł Stankowski 2015-03-02 16:52:45 UTC
I will have a look on that qt selection issue. It was working for me few months ago for Git version of VLC, but something could have been changed since then. If needed, i will include my old patch ignored by upstream.

I had a problem with two separate windows on qt5, when qtx11extras was not installed. It is added to qt5 use flag deps, but you have it disabled. You shouldn't see that effect when using qt5 use flag or when qt4 flag is fixed.
Comment 18 Rafał Mużyło 2015-03-02 17:11:19 UTC
(In reply to Paweł Stankowski from comment #17)
> I had a problem with two separate windows on qt5, when qtx11extras was not
> installed. It is added to qt5 use flag deps, but you have it disabled. You
> shouldn't see that effect when using qt5 use flag or when qt4 flag is fixed.

Well, what I can say is that my tree is not quite up to date, so I'm on 5.4.0, but qtx11extras was pulled by vlc ebuild and I didn't see such problem, so that's probably it.
Comment 19 Greg Turner 2015-03-03 16:10:19 UTC
(In reply to Alexandre Rostovtsev from comment #13)
> (In reply to Paweł Stankowski from comment #11)
> > Let me know if you have any problems with qt version selection, but I think
> > that this patch is not needed for vlc ebuilds.
> 
> I emerged vlc-2.2.0 with USE="qt4 -qt5" and it linked to qt5 - which is
> unfortunate because the qt5 UI is apparently buggy (e.g. video output always
> goes in a separate window).

Same here.  

Karol Herbst's patches (https://gist.github.com/karolherbst/fb9e3d8f6ba05f1f5d54) W4M.
Comment 20 Panagiotis Christopoulos (RETIRED) gentoo-dev 2015-03-03 16:55:32 UTC
Another question is why I get libqt4_plugin.so in my system even when I have -qt4 -qt5 in my use flags.
Comment 21 Rafał Mużyło 2015-03-05 19:30:15 UTC
*** Bug 542262 has been marked as a duplicate of this bug. ***
Comment 22 Karol Herbst 2015-03-05 22:41:38 UTC
(In reply to Panagiotis Christopoulos from comment #20)
> Another question is why I get libqt4_plugin.so in my system even when I have
> -qt4 -qt5 in my use flags.

automagic (if it finds qt4 or qt5 installed it uses it)

on a side note, the name is just bad choosen. The qt4 and the qt5 plugins are both called libqt4_plugin.so

You could test if my patch changes anything, allthough I didn't consider this use case at all, it might work nethertheless.
Comment 23 Karol Herbst 2015-03-10 16:42:30 UTC
also having USE="-qt4 qt5 kde" seems kind of strange. At least vlc doesn't check if kdelibs is there or links against it, so is this dependency really needed?
Comment 24 Rafał Mużyło 2015-03-14 23:45:53 UTC
*** Bug 543358 has been marked as a duplicate of this bug. ***
Comment 25 Evgeny Bobkin 2015-03-31 18:57:42 UTC
(In reply to Greg Turner from comment #19)
> (In reply to Alexandre Rostovtsev from comment #13)
> > (In reply to Paweł Stankowski from comment #11)
> > > Let me know if you have any problems with qt version selection, but I think
> > > that this patch is not needed for vlc ebuilds.
> > 
> > I emerged vlc-2.2.0 with USE="qt4 -qt5" and it linked to qt5 - which is
> > unfortunate because the qt5 UI is apparently buggy (e.g. video output always
> > goes in a separate window).
> 
> Same here.  
> 
> Karol Herbst's patches
> (https://gist.github.com/karolherbst/fb9e3d8f6ba05f1f5d54) W4M.

I am also affected by this!
Comment 26 Ian Delaney (RETIRED) gentoo-dev 2015-04-07 09:02:53 UTC
This package desperately requires a new maintainer. The proxy maintainer his given formal notice of withdrawal.

https://bugs.gentoo.org/buglist.cgi?quicksearch=media-video%2Fvlc&list_id=2732630
Comment 27 Nick Andrade 2015-04-23 05:57:35 UTC
Hi Karol, the patches you provided (Greg linked to them in post 19) still  to work on 2.2.1, and I see Pawel had opened a ticket upstream (https://trac.videolan.org/vlc/ticket/11772) a while back but there hasn't been much movement there.  Mind if I post the patch upstream to see if we can get some traction?  I think your approach makes a lot of sense.
Comment 28 Nick Andrade 2015-04-23 06:33:46 UTC
(In reply to Rafał Mużyło from comment #0)
> Emerges good with renamed 2.2.9999 ebuild.
> 
> Things to note:
> - subslot should be (probably) '5-8', though is libvlccore actually used by
> anything outside vlc itself ?
> - '--enable-glx' switch got removed
> - requires ffmpeg 2.5 (or at least fails to build with 2.2)
> - dep on media-libs/libdvdnav should probably be equal to
> media-libs/libdvdread (well, it requires 4.9, but I mean it as a more long
> term thought)
> 
> That's about all that I remember.

The qt4/qt5 issue still persists, but of the other issues called out in this bug should now be resolved or will be shortly:
subslot is now corrected to '5-8' for 2.2.x
--enable-glx has been removed from the 2.2.x line
libdvdread now requires 4.9 in the ebuild (I believe this was handled by Pawel)
ffmpeg-2.2.14+ now works (confirmed with 2.2.14 & 2.2.15 on VLC 2.2.1) and ebuild will be updated to reflect the newer requirements
Comment 29 Ian Delaney (RETIRED) gentoo-dev 2015-04-24 05:53:11 UTC
  24 Apr 2015; Ian Delaney <idella4@gentoo.org> vlc-2.2.0.ebuild,
  vlc-2.2.1.ebuild, vlc-2.2.9999.ebuild, vlc-9999.ebuild:
  update ffmpeg to version 2.2 to behind pertinent use flags wrt bug #541678,
  confirmed by proxy maintainer
Comment 30 Evgeny Bobkin 2015-04-25 11:52:14 UTC
(In reply to Ian Delaney from comment #29)
>   24 Apr 2015; Ian Delaney <idella4@gentoo.org> vlc-2.2.0.ebuild,
>   vlc-2.2.1.ebuild, vlc-2.2.9999.ebuild, vlc-9999.ebuild:
>   update ffmpeg to version 2.2 to behind pertinent use flags wrt bug #541678,
>   confirmed by proxy maintainer

can you please include the above qt4/qt5 patch to the vlc 2.2.1 ebuild?
Comment 31 Nick Andrade 2015-04-25 16:34:51 UTC
(In reply to Evgeny Bobkin from comment #30)
> (In reply to Ian Delaney from comment #29)
> >   24 Apr 2015; Ian Delaney <idella4@gentoo.org> vlc-2.2.0.ebuild,
> >   vlc-2.2.1.ebuild, vlc-2.2.9999.ebuild, vlc-9999.ebuild:
> >   update ffmpeg to version 2.2 to behind pertinent use flags wrt bug #541678,
> >   confirmed by proxy maintainer
> 
> can you please include the above qt4/qt5 patch to the vlc 2.2.1 ebuild?

That's likely the approach we'll take however I was hoping upstream would respond to Pawel's initial ticket/proposal (which is similar although slightly different than what's implemented in the patch).  Ideally this is something upstream addresses and then we can backport to match for other 2.2.x versions.
Comment 32 Ian Delaney (RETIRED) gentoo-dev 2015-04-30 16:48:26 UTC
  30 Apr 2015; Ian Delaney <idella4@gentoo.org> +files/qt4-select.patch,
  vlc-2.2.0.ebuild, vlc-2.2.1.ebuild:
  add patch to address selection of qt4 vs qt5, patch by Karol Herbst, comment
  19, bug #541678, tested and endorsed by users and proxy maintainer, limited to
  versioned ebuilds for now, finally closes said bug

Note on closing;

  dependency.unknown            2
   media-video/vlc/vlc-2.1.5-r1.ebuild: DEPEND: media-video/ffmpeg:0=[vaapi], media-video/libav:0=[vaapi]
   media-video/vlc/vlc-2.1.5-r1.ebuild: RDEPEND: media-video/ffmpeg:0=[vaapi], media-video/libav:0=[vaapi]

2.1.5-r1 is the only stabled version.  Once a newer version is stabled this can be purged, 2.1.2 is dependent on the status of alpha
Comment 33 Karol Herbst 2015-05-19 14:06:02 UTC
(In reply to Nick Andrade from comment #27)
> Hi Karol, the patches you provided (Greg linked to them in post 19) still 
> to work on 2.2.1, and I see Pawel had opened a ticket upstream
> (https://trac.videolan.org/vlc/ticket/11772) a while back but there hasn't
> been much movement there.  Mind if I post the patch upstream to see if we
> can get some traction?  I think your approach makes a lot of sense.

no, I don't mind.