Summary: | dev-qt/qtgui-4.8.6-r2: ebuild does not respect opengl USE flag | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Martin Mokrejš <mmokrejs> |
Component: | Current packages | Assignee: | Qt Bug Alias <qt> |
Status: | RESOLVED INVALID | ||
Severity: | normal | ||
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Martin Mokrejš
2015-05-05 19:53:05 UTC
And hacking the ebuild gave me the yet missing libQtOpenGL.so.4 library: --- /usr/portage/dev-qt/qtgui/qtgui-4.8.6-r2.ebuild 2015-04-15 06:01:10.000000000 +0200 +++ /tmp/qtgui-4.8.6-r2.ebuild 2015-05-05 23:06:36.510294133 +0200 @@ -15,7 +15,7 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-fbsd ~x86-fbsd ~x86-freebsd ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~x64-solaris ~x86-solaris" fi -IUSE="+accessibility cups egl +glib gtkstyle mng nas nis qt3support tiff trace xinerama +xv" +IUSE="+accessibility cups egl +glib gtkstyle mng nas nis opengl qt3support tiff trace xinerama +xv" REQUIRED_USE=" gtkstyle? ( glib ) @@ -104,6 +104,7 @@ $(usev nas) $(usev nis) $(use tiff && echo system-tiff) + $(usev opengl) $(usev xinerama) $(use xv && echo xvideo)" QCONFIG_REMOVE="no-freetype no-gif no-jpeg no-png no-gui" @@ -139,6 +140,7 @@ $(qt_use nas nas-sound system) $(qt_use nis) $(qt_use tiff libtiff system) + $(qt_use opengl) $(qt_use egl) $(qt_use qt3support) $(qt_use gtkstyle) @@ -147,7 +149,7 @@ -system-libpng -system-libjpeg -system-zlib -no-sql-mysql -no-sql-psql -no-sql-ibase -no-sql-sqlite -no-sql-sqlite2 -no-sql-odbc -sm -xshape -xsync -xcursor -xfixes -xrandr -xrender -mitshm -xinput -xkb - -fontconfig -no-svg -no-webkit -no-phonon -no-opengl + -fontconfig -no-svg -no-webkit -no-phonon $([[ ${CHOST} == *86*-apple-darwin* ]] && echo -no-ssse3) # bug 367045 ) qt4_multilib_src_configure What does it mean that your "libQtOpenGL.so.4 is missing"? Have you emerged dev-qt/qtopengl:4 ? (In reply to Davide Pesavento from comment #2) > What does it mean that your "libQtOpenGL.so.4 is missing"? Thefile was not installed although dev-qt/qtgui-4.8.6-r2:4::gentoo was installed on my system. Seemed like wrong USE flags in action. > Have you emerged dev-qt/qtopengl:4 ? Yes, the very same version. As I showed, I hacked the ebuild for the version which I had previously installed ... to show the ebuild calls configure with wrong arguments. No idea why there was hardcoded "-no-opengl". Not sure the difference between use, usev and qt_use calls in my modified ebuild. But it worked for me. libQtOpenGL is provided by qtopengl, not qtgui. But why nothing pulled in qtopengl for me automatically? Then maybe virtual/qt could that? As of now I have: # emerge -pv qtopengl These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild R ] dev-libs/libpcre-8.37:3::gentoo USE="bzip2 cxx jit pcre16* readline recursion-limit (unicode) zlib -libedit -pcre32 -static-libs" ABI_X86="32 (64) (-x32)" 0 KiB [ebuild NS ] dev-qt/qtcore-5.4.1:5::gentoo [4.8.6-r1:4::gentoo] USE="-debug -icu -systemd {-test}" 45051 KiB [ebuild R ] x11-libs/libxcb-1.11-r1:0/1.11::gentoo USE="xkb* -doc (-selinux) -static-libs {-test}" ABI_X86="32 (64) (-x32)" 0 KiB [ebuild N ] x11-libs/libxkbcommon-0.5.0::gentoo USE="X -doc -static-libs {-test}" ABI_X86="32 (64) (-x32)" 602 KiB [ebuild NS ] dev-qt/qtgui-5.4.1-r1:5::gentoo [4.8.6-r2:4::gentoo] USE="gif harfbuzz jpeg opengl png udev xcb -accessibility -debug -egl -eglfs -evdev -gles2 -gtkstyle -ibus -kms {-test}" 0 KiB [ebuild N ] dev-qt/qtwidgets-5.4.1:5::gentoo USE="opengl png xcb -debug -gles2 -gtkstyle {-test}" 0 KiB [ebuild N ] dev-qt/qtopengl-5.4.1:5::gentoo USE="-debug -gles2 {-test}" 0 KiB Total: 7 packages (3 new, 2 in new slots, 2 reinstalls), Size of downloads: 45653 KiB The following USE changes are necessary to proceed: (see "package.use" in the portage(5) man page for more details) # required by dev-qt/qtcore-5.4.1::gentoo # required by dev-qt/qtopengl-5.4.1::gentoo # required by qtopengl (argument) >=dev-libs/libpcre-8.37 pcre16 # required by dev-qt/qtgui-5.4.1-r1::gentoo[xcb] # required by dev-qt/qtopengl-5.4.1::gentoo # required by qtopengl (argument) >=x11-libs/libxcb-1.11-r1 xkb So as you can see, I do not have dev-qt/qtopengl-4:* installed. That explains why hacking the qtgui helped me in this regard. # grep opengl /etc/portage/make.conf USE="abi_x86_32 -acl acpi alsa amr amd64 apache apache2 apulse avx -avx2 berkdb bindist bluetooth boost bzip2 cairo cgi cli -console -consolekit cracklib crypt cryptlib cups -doc device-mapper dhcp drm dbus directfb dvd emboss encode -espeak fax fbcon ffmpeg -firmware-loader flac fontconfig fortran gbm gd gdbm geoip gimp -gnome gnutls gpm gtk gudev -gvfs hal hpijs hwdb iconv id3tag imaging innodb -ipv6 -isdnlog java jce jpeg jpg -kde -kde2 -kde3 keymap ladspa lapack laptop lcms -libav -libkms libnotify lm_sensors mad matroska -midi mmx mpi mpich2 -mudflap mysql ncurses nfs nls nptl nptlonly nsplugin ntfsprogs ocr ogg opengl openmp -openssl pam parport pcre pdf perl php png -polkit -policykit pppd ppds -pulseaudio python readline -reflection rendering resolvconf scanner server session slideshow sndfile -spl sqlite sse sse2 sse3 ssse3 sse4_1 sse4_2 ssl suexec svg syslog tcl tcpd threads tiff tk truetype udev -udisks unicode usb vim-syntax wavpack wifi xml xorg xvmc x11 zlib X -kerberos" # (In reply to Martin Mokrejš from comment #5) > But why nothing pulled in qtopengl for me automatically? Then maybe > virtual/qt could that? Why would qtopengl be pulled automatically? Ebuilds only pull in the packages they require. If you're using some third party software outside of portage, it's up to you to install the dependencies yourself. (In reply to Martin Mokrejš from comment #5) > > # emerge -pv qtopengl > You need to specify the SLOT, i.e. # emerge -pv qtopengl:4 Also note that we have a metapackage, dev-qt/qt-meta:4, which pulls in almost everything (including qtopengl) (In reply to Davide Pesavento from comment #7) > (In reply to Martin Mokrejš from comment #5) > > > > # emerge -pv qtopengl > > > > You need to specify the SLOT, i.e. > > # emerge -pv qtopengl:4 > > Also note that we have a metapackage, dev-qt/qt-meta:4, which pulls in > almost everything (including qtopengl) Thank you, this is what I missed. I think such metapackages could have better desription so that I would realize they give me "reasonable" defaults. Currently it says: Cross-platform application development framework (metapackage) Hmm. :( |