Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 434670 - dev-libs/libattica-0.4.1 with dev-util/cmake-2.8.9 USE=-qt - Could NOT find Qt4 (missing: QT_QTGUI_INCLUDE_DIR QT_QTGUI_LIBRARY)
Summary: dev-libs/libattica-0.4.1 with dev-util/cmake-2.8.9 USE=-qt - Could NOT find Q...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-09-11 02:25 UTC by renesanso
Modified: 2012-10-04 13:07 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description renesanso 2012-09-11 02:25:54 UTC
I use ~amd64 (testing brunch).

dev-libs/libattica-0.4.1 not build, if dev-util/cmake-2.8.9 was compiled without USE=qt .

Needed to add dev-util/cmake with (!) USE=qt as dev-libs/libattica dependency.



Reproducible: Always

Steps to Reproduce:
1. USE="-qt" emerge dev-util/cmake
2. emerge dev-libs/libattica
3. see error

use ~amd64.

On step 2 portage must say, that it will rebuild dev-util/cmake with qt, but it doesn't.



emerge --info
FEATURES variable contains unknown value(s): preserved-rebuild
Portage 2.2.0_alpha124 (hardened/linux/amd64, gcc-4.5.4, glibc-2.15-r2, 3.2.1-gentoo-r2 x86_64)
=================================================================
System uname: Linux-3.2.1-gentoo-r2-x86_64-Intel-R-_Core-TM-2_Quad_CPU_Q6600_@_2.40GHz-with-gentoo-2.2
Timestamp of tree: Tue, 11 Sep 2012 01:45:01 +0000
app-shells/bash:          4.2_p37
dev-lang/python:          2.7.3-r2, 3.2.3-r1
dev-util/cmake:           2.8.9
dev-util/pkgconfig:       0.27.1
sys-apps/baselayout:      2.2
sys-apps/openrc:          0.10.5
sys-apps/sandbox:         2.6
sys-devel/autoconf:       2.13, 2.69
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.6, 1.12.3
sys-devel/binutils:       2.22.90
sys-devel/gcc:            4.5.4, 4.6.3
sys-devel/gcc-config:     1.7.3
sys-devel/libtool:        2.4.2
sys-devel/make:           3.82-r3
sys-kernel/linux-headers: 3.5 (virtual/os-headers)
sys-libs/glibc:           2.15-r2
Repositories: mate-overlay gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=x86-64 -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="${EPREFIX}/etc/gconf /etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/mateconf /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=x86-64 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FCFLAGS="-O2 -pipe"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles metadata-transfer news parallel-fetch preserve-libs preserved-rebuild sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch webrsync-gpg xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="ru en"
MAKEOPTS="-j5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --timeout=30"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/mate /usr/portage"
SYNC="rsync://rsync.us.gentoo.org/gentoo-portage"
USE="# X a52 aac aalib acl acpi adplug alsa amd64 amr bash-completion berkdb bl bluetooth bluray bs2b btrfs bzip2 cairo caps cd cdb cdda cddb cdparanoia cdr cli cpudetection cracklib crypt css cue cups curl custom-optimization cxx dc1394 dga dhcp dia dirac djvu dmraid drawing dri dts dv dvb dvd dvdr en encode equalizer examples faac faad fam fat fbcon ffmpeg flac fluidsynth fontconfig foomaticdb ftp fuse gallium gconf gd gdbm ggi gif gimp glib glut gme gmp gnome gnutls gphoto2 gpm gsm gstreamer gtk gtkstyle gzip hardened hfs iconv id3tag ieee1394 imagemagick imlib irda jfs jit joystick jpeg jpeg2k justify kate kde ladspa lame latex libass libcaca libmpeg2 libproxy libsamplerate libv4l libv4l2 lm_sensors lzma lzo mad maildir mailwrapper mate matroska mbox md5sum mdadm midi mjpeg mms mmx mmxext mng modplug modules mp3 mpeg mpg123 mplayer mtp mudflap multilib musepack musicbrainz nautilus ncurses nls nptl nsplugin ntfs nut offensive ogg openal opengl openmp optimisememory optimization oss pam pax_kernel pcmcia pcre pdf pic plasma plotutils png pnm policykit postproc pppd pulseaudio pvr qt qt3 qt3support qt4 quicktime radio rar raw rdesktop readline realtime reiser4 reiserfs remoteosd rss rtmp rtsp ru sasl scanner schroedinger scrobbler sdl sdl-image semantic-desktop session shine shout sid skins slp smp sndfile sound source sox speex sqlite sse sse2 sse3 ssl ssse3 stest stream svg symlink szip taglib tcpd telext test-programs tga threads tiff tk tools tray truetype twolame udev unicode unrar urandom usb utf8 v4l v4l2 vaapi vcd vcdx videos vlm vnc vorbis vpx w32codecs wavpack wifi wma wma-fixed x264 xanim xattr xcb xcomposite xfs xml xosd xpm xscreensaver xv xvid zlib zoran zsh-completion zvbi" ALSA_CARDS="hda-intel usb-audio" 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 proxy rewrite setenvif speling status unique_id userdir usertrack vhost_alias auth_digest proxy_connect proxy_ftp proxy_http" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="*" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CURL_SSL="openssl" DRACUT_MODULES="bootchart crypt crypt-gpg crypt-loop lvm ssh-client 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="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LINGUAS="ru en" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="vesa fbdev sisusb dummy radeon nouveau" 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, LANG, LC_ALL, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON




cat /var/tmp/portage/dev-libs/libattica-0.4.1/temp/build.log
 * Package:    dev-libs/libattica-0.4.1
 * Repository: gentoo
 * Maintainer: kde@gentoo.org
 * USE:        amd64 elibc_glibc kernel_linux multilib userland_GNU
 * FEATURES:   preserve-libs sandbox
>>> Working in BUILD_DIR: "/var/tmp/portage/dev-libs/libattica-0.4.1/work/libattica-0.4.1_build"
cmake --no-warn-unused-cli -C /var/tmp/portage/dev-libs/libattica-0.4.1/work/libattica-0.4.1_build/gentoo_common_config.cmake -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Gentoo -DCMAKE_INSTALL_DO_STRIP=OFF -DCMAKE_USER_MAKE_RULES_OVERRIDE=/var/tmp/portage/dev-libs/libattica-0.4.1/work/libattica-0.4.1_build/gentoo_rules.cmake  /var/tmp/portage/dev-libs/libattica-0.4.1/work/attica-0.4.1
Not searching for unused variables given on the command line.
loading initial cache file /var/tmp/portage/dev-libs/libattica-0.4.1/work/libattica-0.4.1_build/gentoo_common_config.cmake
-- The C compiler identification is GNU 4.5.4
-- The CXX compiler identification is GNU 4.5.4
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc
-- Check for working C compiler: /usr/bin/x86_64-pc-linux-gnu-gcc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++
-- Check for working CXX compiler: /usr/bin/x86_64-pc-linux-gnu-g++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Looking for Q_WS_X11
-- Looking for Q_WS_X11 - found
-- Looking for Q_WS_WIN
-- Looking for Q_WS_WIN - not found.
-- Looking for Q_WS_QWS
-- Looking for Q_WS_QWS - not found.
-- Looking for Q_WS_MAC
-- Looking for Q_WS_MAC - not found.
-- Found Qt4: /usr/bin/qmake (found suitable version "4.8.2", required is "4.7.0") 
CMake Error at /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:97 (MESSAGE):
  Could NOT find Qt4 (missing: QT_QTGUI_INCLUDE_DIR QT_QTGUI_LIBRARY) (found
  suitable version "4.8.2", required is "4.7.0")
Call Stack (most recent call first):
  /usr/share/cmake/Modules/FindPackageHandleStandardArgs.cmake:288 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake/Modules/FindQt4.cmake:1200 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  lib/cmake/FindQt5Transitional.cmake:60 (find_package)
  lib/tests/projecttest/CMakeLists.txt:5 (find_package)


-- Configuring incomplete, errors occurred!
 * ERROR: dev-libs/libattica-0.4.1 failed (configure phase):
 *   cmake failed
 * 
 * Call stack:
 *     ebuild.sh, line   85:  Called src_configure
 *   environment, line 2649:  Called cmake-utils_src_configure
 *   environment, line  661:  Called _execute_optionaly 'src_configure'
 *   environment, line  183:  Called enable_cmake-utils_src_configure
 *   environment, line  962:  Called die
 * The specific snippet of code:
 *       "${CMAKE_BINARY}" "${cmakeargs[@]}" "${CMAKE_USE_DIR}" || die "cmake failed";
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/libattica-0.4.1'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/libattica-0.4.1'`.
 * The complete build log is located at '/var/tmp/portage/dev-libs/libattica-0.4.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-libs/libattica-0.4.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-libs/libattica-0.4.1/work/libattica-0.4.1_build'
 * S: '/var/tmp/portage/dev-libs/libattica-0.4.1/work/attica-0.4.1'
Comment 1 Michael Palimaka (kensington) gentoo-dev 2012-09-20 18:30:31 UTC
Do you have qt-gui installed at the time of the error?

The error message seems to indicate that the library is missing (dev-util/cmake[qt4] just happens to depend on it), so this looks like a missing build-time dependency.
Comment 2 Johannes Huber (RETIRED) gentoo-dev 2012-09-21 07:49:57 UTC
(In reply to comment #1)
> Do you have qt-gui installed at the time of the error?
> 
> The error message seems to indicate that the library is missing
> (dev-util/cmake[qt4] just happens to depend on it), so this looks like a
> missing build-time dependency.

I am sure that you are right, upstream introduced qt5 support into the build system and propably added qt-gui as build requirement (mistake?, copy & paste from another repo?).
Comment 3 Michael Palimaka (kensington) gentoo-dev 2012-10-02 14:27:15 UTC
It appears that qt-gui is required only by tests. This is also true for qt-test, but this dependency is checked unconditionally (which appears to have been missed in bug #432264).

I will prepare a patch for upstream ensuring that these dependencies are conditional on tests being built (which we can then reliably control in the ebuild).
Comment 4 Michael Palimaka (kensington) gentoo-dev 2012-10-04 13:07:18 UTC
Thanks, fixed in CVS with the dependency issue fixed upstream.

+  04 Oct 2012; Michael Palimaka <kensington@gentoo.org>
+  +files/libattica-0.4.1-automagic.patch, libattica-0.4.1.ebuild:
+  Build tests conditionally, backporting a patch from upstream to correct a
+  dependency issue. Fixes bug #434670.