While trying to install dbus 0.22-r1 with qt in the USE flags, during the configure step of the ebuild it fails complaining that qt development libraries arn't installed. dbus compiles if qt is removed from the USE flags. Reproducible: Always Steps to Reproduce: 1.USE="qt" emerge dbus 2. 3. Actual Results: checking for moc... /usr/qt/3/bin/moc checking for qglobal.h... found configure: WARNING: Qt development libraries not found configure: error: Qt integration explicitly required, and Qt libraries not found !!! ERROR: sys-apps/dbus-0.22-r1 failed. !!! Function econf, Line 441, Exitcode 1 !!! econf failed !!! If you need support, post the topmost build error, NOT this status message. Expected Results: dbus installs with qt bindings Portage 2.0.51_rc1 (default-x86-2004.2, gcc-3.4.2, glibc-2.3.4.20040808-r0, 2.6.8-gentoo-r4 i686)================================================================= System uname: 2.6.8-gentoo-r4 i686 Celeron (Coppermine) Gentoo Base System version 1.5.3 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59-r4 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.90.0.1.1-r3 Headers: sys-kernel/linux26-headers-2.6.8.1 Libtools: sys-devel/libtool-1.5.2-r5 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=pentium3 -O3 -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -mfpmath=sse,387 -pipe -fomit-frame-pointer -funroll-loops -fstack-protector" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-march=pentium3 -O3 -fforce-addr -falign-functions=4 -fprefetch-loop-arrays -mfpmath=sse,387 -pipe -fomit-frame-pointer -funroll-loops -fstack-protector" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="ftp://ftp.join.uni-muenster.de/pub/linux/distributions/gentoo ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/ http://ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp:///ftp-stud.fht-esslingen.de/pub/Mirrors/gentoo/ ftp://ftp.gentoo.mesh-solutions.com/gentoo/ http://www.mirror.ac.uk/mirror/www.ibiblio.org/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="3dfx X Xaw3d aalib aim alsa amd apm audiofile avi bdf berkdb bidi bitmap-fonts bonobo bootsplash cdparanoia cdr cdrom chroot cjk codecs crypt cups curl curlwrappers directfb divx4linux djbfft doc dts dv dvd dvdr dvdread edl eds encode erandom esd ethereal evo exif f77 faac faad fam fbcon ffmpeg fftw flac flash foomaticdb freetype fs ftp gcj gdbm geoip ggi gif gimp gimpprint gnome gnutls gphoto2 gpm graphviz gs gstreamer gtk gtk2 gtkhtml guile hal iconv icq icu idea imagemagick imap imlib imlib2 intl ipv6 irda irmc j2ee jabber java javacomm javadoc javamail javascript jbig jce jikes jp2 jpeg junit kerberos lcms libcaca libg++ libwww live lzo lzw lzw-tiff m17n-lib mad matroska mdb mikmod mime ming mmx mng monkey mono motif mozilla moznoirc moznomail mozp3p mozsvg mp3 mpeg mpeg4 mplayer msn ncurses net network nls nntp nptl ntlm objc offensive oggvorbis opengl oscar oss pam pcmcia pdf pdflib perl png pnp python qt quicktime quotes readline rtc samba sdl server silc slang sndfile snmp soap sockets speedo speex spell sse ssl svg svga tcltk tcpd theora tidy tiff timidity transcode truetype trusted unicode usb uudeview v4l v4l2 vim vim-with-x wifi wmf wxwindows x86 xchatdccserver xml xml2 xmms xpm xprint xrandr xsl xv xvid xvmc yahoo yv12 zlib"
dunno, you do have qt installed ? post the config.log of the failing configure...
Kdelibs needs to be set as a dependency for the qt use flag. After emerging kdelibs, it worked for me.
Created attachment 40912 [details, diff] adds kdelibs to a list of QT use flag requirements
added a patch, my first attempt at bug fixing in gentoo. When the QT use flag is enabled, KDElibs is required. I have tested this patch with kdelibs enabled, disabled, and toggling the qt use flag. It fixes the problem
could someone of the KDE team check & confirm ? It seems odd to me it would need kdelibs.
Created attachment 40917 [details] The config.log of the failed building This is my config.log for when before I installed kdelibs it failed which may help diagnose what exactly in kdelibs it seems to need
from configure.in: ... if test -n "$QTDIR" -a -f "$QTDIR/include/qglobal.h"; then have_qt=yes DBUS_QT_CXXFLAGS="-I$QTDIR/include" else ... if test x"$have_qt" = x"yes"; then AC_MSG_RESULT([found]) else AC_MSG_RESULT([not found]) fi dnl linking to kdecore will give us a bit of help from libtool if (! kde-config >& /dev/null); then have_qt=no else kdelibs=`kde-config --install lib --expandvars 2>/dev/null` if test -z $kdelibs -o ! -f $kdelibs/libkdecore.la; then have_qt=no else DBUS_QT_LIBS="$kdelibs/libkdecore.la" fi fi if test x$have_qt = xno ; then AC_MSG_WARN([Qt development libraries not found]) fi ... kdelibs is not used in any way, it should be asked to the freedesktop guys why they don't just do something like DBUS_QT_LIBS="$QTDIR/lib/libqt-mt.la" after DBUS_QT_CXXFLAGS="-I$QTDIR/include"
I can confirm this bug is there, and merging kdelibs fixes it...
failed for me with kdelibs(3.3.0) installed, investigating
hmm, worked after remering kdelibs
i think comment #7 is on the right track, but i have no qt atm so I can't really check myself. The direction imho to go is not adding a kdelibs dep when it is only needed for the configure script, but to fix the configure script itself. If someone could do the works there, it would be appreciated.
Someone with a freedesktop bugzilla account can also add a comment here: http://freedesktop.org/bugzilla/show_bug.cgi?id=1485
disabling the qt bindings for now, waiting for an acceptable patch.
took the easy way out here, but apperantly theres not much animo to get it fixed.
I think that the unique use of the libkdecore.la is the fact that is difficult to know where libqt-mt is installed, (if QTDIR is defined like in gentoo it's easy...). So the author speeded up things linking to libkdecore (that is linked to libqt-mt) because kde-config report easily its location. A good patch can be a better qt check like the one (very big) that is done inside the kdepackages.
Created attachment 45903 [details, diff] dbus-0.22-qt.patch I attached a patch to enable the qt bindings with a fixed configure.in and some updates from cvs, i think this patch is important because kde-3.4_alpha1 can make use of dbus when the qt bindings are installed
I attached a patch to enable the qt bindings with a fixed configure.in and some updates from cvs, i think this patch is important because kde-3.4_alpha1 can make use of dbus when the qt bindings are installed
commited the patch