dev-python/sip4.1.1 fails to compile Reproducible: Always Steps to Reproduce: 1. emerge -u sip Actual Results: >>> emerge (1 of 1) dev-python/sip-4.1.1 to / >>> md5 src_uri ;-) sip-4.1.1.tar.gz >>> Unpacking source... >>> Unpacking sip-4.1.1.tar.gz to /var/tmp/portage/sip-4.1.1/work >>> Source unpacked. Error: Unable to open /usr/qt/3/mkspecs/qws/linux-x86-g++/qmake.conf: [Errno 2] No such file or directory: '/usr/qt/3/mkspecs/qws/linux-x86-g++/qmake.conf' make: *** No targets specified and no makefile found. Stop. Expected Results: Cleanly compiles and installs. Portage 2.0.51-r3 (default-linux/x86/2004.0, gcc-3.3.4, glibc-2.3.4.20041102-r0, 2.6.9-mm1 i686) ================================================================= System uname: 2.6.9-mm1 i686 AMD Athlon(tm) processor Gentoo Base System version 1.6.6 Autoconf: sys-devel/autoconf-2.59-r5 Automake: sys-devel/automake-1.8.5-r1 Binutils: sys-devel/binutils-2.15.92.0.2-r1 Headers: sys-kernel/linux26-headers-2.6.8.1-r1 Libtools: sys-devel/libtool-1.5.2-r7 ACCEPT_KEYWORDS="x86 ~x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -Os -pipe" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /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="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="ftp://mirror.pacific.net.au/linux/Gentoo ftp://gentoo.ccccom.com http://gentoo.mirrors.pair.com/ ftp://mirrors.tds.net/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="3dnow X aalib adns alsa apache2 apm arts avi berkdb bitmap-fonts bonobo cdr crypt cups curl dba directfb dvd encode esd f77 fam ffmpeg flac flash foomaticdb fortran gd gdbm gif gnome gphoto2 gpm gstreamer gtk gtk2 gtkhtml guile imagemagick imap imlib innodb jabber java jpeg junit kde ldap libg++ libwww lirc mad maildir mikmod mmx motif mozilla mpeg mpeg4 mysql nas ncurses nls nptl nvidia offensive oggvorbis openal opengl openssh pam pdflib perl png postgres python qt quicktime readline samba sdl session slang sml2 speex spell sqlite ssl svga tcltk tcpd tiff truetype usb v4l wmf x86 xine xinerama xml xml2 xmms xv xvid yahoo zlib zvbi"
This is a worksforeme. The usual place for qmake.conf is /usr/qt/3/mkspecs/linux-x86-g++/ Are you using Qt Embedded?
Apparently so. I don't remember installing it. What is it a dependency of? Should I unmerge it? * x11-libs/qt-embedded Latest version available: 3.3.2-r1 Latest version installed: 3.3.2-r1
Despite it is a bit broken, you could try `qpkg -q qt-embedded`, but I don't think, that there is something in the tree depending on it. I may be wrong though. Please paste the content of "/etc/env.d/45qt3".
As requested (/etc/env.d/45qt3) PATH=/usr/qt/3/bin ROOTPATH=/usr/qt/3/bin LDPATH=/usr/qt/3/lib QMAKESPEC=linux-g++ MANPATH=/usr/qt/3/doc/man This loos odd:$ qpkg -nc -q qt-embedded x11-libs/qt-embedded-3.3.2-r1 * DEPENDED ON BY: x11-libs/qt-embedded-3.3.2 DEPENDED ON BY: x11-libs/qt-embedded-3.0.5 DEPENDED ON BY: x11-libs/qt-embedded-3.1.2 DEPENDED ON BY: x11-libs/qt-embedded-3.3.2-r1 DEPENDED ON BY: Should I umerge it?
Hm, your Qt Environment data seems to be correct. Does `echo $QMAKESPEC` print linux-g++, too? If yes, then unmerging qt-embedded and emerging sip afterwards should work fine.
Nearly. # echo $QMAKESPEC qws/linux-x86-g++
O.k. Unmerge qt-embedded, do `grep -HR qws /etc/env.d/`. Delete the file that will show up, do `export QMAKESPEC=linux-g++` and then emerge sip.
I unmerged qt-embedded. grep -HR qws /etc/env.d/ returned no files to be deleted. Emerging sip worked after your instructions. Thanks for that.
So, who should close this?
Please don't, Daniel. herd, what shall we do? Should Qt's QMAKESPEC supersede QtE's, should Qt and QtE block each other, do we set QMAKESPEC in the kde-functions.eclass or do we ignore the issue just like the other Qt Embedded bugs? ;)
*** Bug 73026 has been marked as a duplicate of this bug. ***
*** Bug 76965 has been marked as a duplicate of this bug. ***
*** Bug 78801 has been marked as a duplicate of this bug. ***
*** Bug 79489 has been marked as a duplicate of this bug. ***
*** Bug 61972 has been marked as a duplicate of this bug. ***
copying from bug 80761: I think the best solution is to not add neither QTDIR nor QMAKESPEC to the environment, to be absolutely sure that we don't conflict with standard Qt. Consider that nothing in the portage tree depends on qt-embedded, the only exceptions being media-tv/{mythtv,mythbrowser}, but in newer versions qt-embedded was also removed from there. If someone uses qt-embedded for his own project, he just have to set QTDIR and QMAKESPEC to the values he desires. This is explained in an einfo at the end of the ebuild.
qt-embedded-3.3.4 committed with the fix above.