Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 549248 - media-video/vlc-2.2.1 build failed without qt
Summary: media-video/vlc-2.2.1 build failed without qt
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Nick Andrade
URL:
Whiteboard:
Keywords: PATCH
Depends on:
Blocks:
 
Reported: 2015-05-12 07:52 UTC by Drunkard Zhang
Modified: 2015-05-18 05:20 UTC (History)
0 users

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


Attachments
build log (build.log,25.97 KB, text/x-log)
2015-05-12 07:53 UTC, Drunkard Zhang
Details
Patch works for me. (vlc-no-qt.patch,353 bytes, patch)
2015-05-12 08:02 UTC, Drunkard Zhang
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Drunkard Zhang 2015-05-12 07:52:15 UTC
media-video/vlc-2.2.1 failed to build while there's no qt installed, failed at configure stage.

Reproducible: Always

Steps to Reproduce:
1. qlist -I qt  # Ensure no qt* installed
2. emerge -1avq =media-video/vlc-2.2.1
Actual Results:  
configure: error: Package requirements (Qt5Core >= 5.1.0 Qt5Widgets Qt5Gui) were not met:

Package Qt5Core was not found in the pkg-config search path.
Perhaps you should add the directory containing `Qt5Core.pc'
to the PKG_CONFIG_PATH environment variable
Package 'Qt5Core', required by 'world', not found
Package 'Qt5Widgets', required by 'world', not found
Package 'Qt5Gui', required by 'world', not found

Expected Results:  
=media-video/vlc-2.2.1 could be built without qt.

emerge --info =media-video/vlc-2.2.1
Portage 2.3.6-r9 (funtoo/1.0/linux-gnu/arch/x86-64bit, gcc-4.9.2, glibc-2.20, 4.1.0-rc3+ x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.1.0-rc3+-x86_64-AMD_A8-3500M_APU_with_Radeon-tm-_HD_Graphics-with-gentoo-2.2.0
KiB Mem:     7617000 total,   3559256 free
KiB Swap:     524284 total,    524284 free
Timestamp of tree: Unknown
ld GNU ld (Gentoo 2.24 p1.4) 2.24
app-shells/bash:          4.3_p30-r1
dev-java/java-config:     2.2.0-r1000
dev-lang/perl:            5.20.2-r1
dev-lang/python:          2.7.9-r1000, 3.3.6-r1000, 3.4.3-r1000
dev-util/cmake:           3.2.1
sys-apps/baselayout:      2.2.0-r6
sys-apps/openrc:          0.12.4-r4
sys-apps/sandbox:         2.6-r2
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.11.6-r1, 1.13.4, 1.14.1, 1.15
sys-devel/binutils:       2.24-r3, 2.25-r1
sys-devel/gcc:            4.9.2
sys-devel/gcc-config:     1.8
sys-devel/libtool:        2.4.3-r2
sys-devel/make:           3.82-r4
sys-kernel/linux-headers: 4.0 (virtual/os-headers)
sys-libs/glibc:           2.20
Repositories: gentoo betagarden gnome gentoo-zh drunkard
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CPPFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
CXXFLAGS="-O2 -march=amdfam10 -mcx16 -mpopcnt -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks downgrade-backup ebuild-locks fixlafiles merge-sync news nodoc noinfo parallel-fetch preserve-libs protect-owned sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS="-march=amdfam10 -O2 -pipe"
GENTOO_MIRRORS="http://mirrors.sohu.com/gentoo/ http://gentoo.gwbnsh.net.cn/ "
LANG="en_US.utf8"
LC_ALL="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed,-L/usr/lib64"
LINGUAS="zh_CN zh_TW zh en ru de bo ug"
MAKEOPTS="-j4"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/betagarden /var/lib/layman/gnome /var/lib/layman/gentoo-zh /var/lib/layman/drunkard"
SYNC="git://github.com/funtoo/ports-2012.git"
SYNC_USER="root"
USE="X a52 aac acl acpi aio alsa amd64 ap apng bash-completion berkdb bluray branding bzip2 cairo cdda cddb cdio cjk colord crypt cups cxx dbus djvu dri dts dvd dvdr dvdread eds egl encode evo exif faac faad ffmpeg flac gallium gconf gdbm geoip gif gimp glamor gles gnome gnome-keyring gnome-online-accounts gpm gstreamer gtk gtk3 gtkstyle ico iconv icu idn ieee1394 introspection ipod ipv6 jpeg jpeg2k kms lame libass libguess libmpeg2 libnotify libsamplerate lzma lzo mad matroska mjpeg mmap mmx modules mp3 mpeg mtp mudflap multilib nautilus ncurses nls nptl nsplugin ogg opencc opengl openmp opus pam pcre pdf png policykit postgres postproc postscript pppd pulseaudio python quicktime readline realtime resolvconf smp sndfile sse sse2 ssl svg systemd taglib theora threads tiff tracker truetype twolame udev unicode upower usbredir v4l v4l2 vim-syntax vorbis vpx wav wavpack wayland webp wifi win32codecs wmf x264 x265 xattr xft xinerama xkb xml xmp xvid xvmc zlib" ABI_X86="64" 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 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 authn_core authz_core socache_shmcb unixd" 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="3dnow 3dnowext mmx mmxext popcnt sse sse2 sse3 sse4a" CURL_SSL="gnutls" 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 pc" INPUT_DEVICES="keyboard mouse synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="pdfimport presenter-minimizer" LINGUAS="zh_CN zh_TW zh en ru de bo ug" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-5" PYTHON_ABIS="2.7 3.3 3.4" PYTHON_SINGLE_TARGET="python2_7" PYTHON_TARGETS="python2_7 python3_3" QEMU_SOFTMMU_TARGETS="arm i386 x86_64" QEMU_USER_TARGETS="arm armeb i386 x86_64" RUBY_TARGETS="ruby19 ruby20 ruby21 ruby22" USERLAND="GNU" VIDEO_CARDS="radeon" 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:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, SYNC_UMASK

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

media-video/vlc-2.2.1 was built with the following:
USE="X a52 aalib alsa atmo avcodec avformat bidi bluray cdda cddb dbus dts dvbpsi dvd encode faad fdk ffmpeg flac fontconfig gcrypt gme ieee1394 jpeg libass libnotify libsamplerate matroska mp3 mpeg ncurses ogg opengl opus png postproc projectm pulseaudio svg swscale taglib theora truetype twolame v4l vorbis vpx x264 x265 xcb xml (-altivec) (-audioqueue) -avahi -chromaprint -dc1394 -debug -directfb (-directx) -dvb (-dxva2) -fluidsynth -gnome -gnutls -growl -httpd -jack -kate -kde -libcaca -libtar -libtiger -linsys -lirc -live -lua (-macosx-dialog-provider) (-macosx-eyetv) (-macosx-qtkit) (-macosx-quartztext) (-media-library) -modplug -mtp -musepack (-neon) -omxil -opencv -optimisememory -oss -qt4 -qt5 (-rdp) -rtsp -run-as-root -samba -schroedinger -sdl -sdl-image -sftp -shout -sid -skins -speex -test -tremor -udev -upnp -vaapi -vcdx -vdpau -vlm -vnc -wma-fixed -xv -zvbi" CPU_FLAGS_X86="mmx sse"
LDFLAGS="-Wl,-O1 -Wl,--sort-common -Wl,--as-needed,-L/usr/lib64 -L/usr/lib64/sidplay/builders/"
Comment 1 Drunkard Zhang 2015-05-12 07:53:40 UTC
Created attachment 403116 [details]
build log

build log
Comment 2 Drunkard Zhang 2015-05-12 08:02:01 UTC
Created attachment 403118 [details, diff]
Patch works for me.
Comment 3 Nick Andrade 2015-05-18 04:44:57 UTC
Looks like the previous patch was update was still to narrow and didn't catch the no qt installed and no qt USE flag case.  So yes, let's just use the else statement in this patch.
Comment 4 Ian Delaney (RETIRED) gentoo-dev 2015-05-18 05:20:24 UTC
  18 May 2015; Ian Delaney <idella4@gentoo.org> vlc-2.2.0.ebuild,
  vlc-2.2.1.ebuild:
  re-edit to config of qt options, patch by Drunkard Zhang in bug #549248 and
  closes bug