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

Bug 549212

Summary: media-video/vlc-2.2.1 - configure: error: Package requirements (Qt5Core >= 5.1.0 Qt5Widgets Qt5Gui)
Product: Gentoo Linux Reporter: Bertrand Jacquin <bertrand>
Component: Current packagesAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED TEST-REQUEST    
Severity: normal CC: bertrand
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log
emerge --info
vlc-2.2.1-qt_select_update.patch

Description Bertrand Jacquin 2015-05-11 21:46:12 UTC
With USE="ncurses -qt4 -qt5", media-video/vlc-2.2.1 does not build and configure leads to the following error:

checking for QT... no
configure: error: Package requirements (Qt5Core >= 5.1.0 Qt5Widgets Qt5Gui) were not met:
No package 'Qt5Core' found
No package 'Qt5Widgets' found
No package 'Qt5Gui' found
Consider adjusting the PKG_CONFIG_PATH environment variable if you
installed software in a non-standard prefix.
Alternatively, you may set the environment variables QT_CFLAGS
and QT_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/media-video/vlc-2.2.1/work/vlc-2.2.1/config.log
 * ERROR: media-video/vlc-2.2.1::gentoo failed (configure phase):
 *   econf failed

full log and emerge --info attached

Reproducible: Always
Comment 1 Bertrand Jacquin 2015-05-11 21:46:48 UTC
Created attachment 403070 [details]
build.log
Comment 2 Bertrand Jacquin 2015-05-11 21:47:26 UTC
Created attachment 403072 [details]
emerge --info
Comment 3 faminebadger 2015-05-11 22:29:39 UTC
Confirmed, I see the same behaviour (despite vlc itself being quite capable of being built without a GUI).
Comment 4 Nick Andrade 2015-05-12 04:26:41 UTC
Ah, good find, I believe I just need to add the following two lines to the ebuild:
	elif ! use qt4 && ! use qt5; then
		qt_flag="--disable-qt"

Updated ebuild here: https://bpaste.net/show/3cd55605dda6

Patch to ebuild attached in case anyone wants it.
Comment 5 Nick Andrade 2015-05-12 04:27:33 UTC
Created attachment 403096 [details, diff]
vlc-2.2.1-qt_select_update.patch
Comment 6 Ian Delaney (RETIRED) gentoo-dev 2015-05-12 06:34:21 UTC
  12 May 2015; Ian Delaney <idella4@gentoo.org> vlc-2.2.0.ebuild,
  vlc-2.2.1.ebuild:
  finalise config option for qt in src_configure, fixes bug #549212
Comment 7 Bertrand Jacquin 2015-05-12 19:10:17 UTC
(In reply to Ian Delaney from comment #6)
>   12 May 2015; Ian Delaney <idella4@gentoo.org> vlc-2.2.0.ebuild,
>   vlc-2.2.1.ebuild:
>   finalise config option for qt in src_configure, fixes bug #549212

Works for me. Thanks !