Qt samples from USE="doc" emerge qt have wrong paths in Makefiles and therefore all need to be edited to be compiled. Reproducible: Always Steps to Reproduce: 1.USE="doc" emerge qt 2./usr/qt/3/examples/helpdemo 3.less Makefil Actual Results: # /var/tmp/portage/qt-3.3.0-r1/work/qt-x11-free-3.3.0/./examples/helpdemo/Makefile: generated by configure # # WARNING: This makefile will be replaced with a real makefile. # All changes made to this file will be lost. all clean install qmake Makefile: FORCE /var/tmp/portage/qt-3.3.0-r1/work/qt-x11-free-3.3.0/bin/qmake -spec /var/tmp/portage/qt-3.3.0-r1/work/qt-x1 1-free-3.3.0/mkspecs/linux-g++ -o /var/tmp/portage/qt-3.3.0-r1/work/qt-x11-free-3.3.0/./examples/helpdemo /var/tmp/p ortage/qt-3.3.0-r1/work/qt-x11-free-3.3.0/examples/helpdemo/helpdemo.pro cd /var/tmp/portage/qt-3.3.0-r1/work/qt-x11-free-3.3.0/./examples/helpdemo $(MAKE) $@ FORCE: Expected Results: Makefiles, like the above, should not have temporary portage build dirs in them, but the final system dirs after installation Portage 2.0.50-r5 (default-x86-2004.0, gcc-3.3.2, glibc-2.3.2-r9, 2.6.5-gentoo) ================================================================= System uname: 2.6.5-gentoo i686 Intel(R) Pentium(R) 4 CPU 2.66GHz Gentoo Base System version 1.4.3.13 distcc 2.13 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled] ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.58-r1 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=i686 -O0" CHOST="i686-pc-linux-gnu" COMPILER="gcc3" CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.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="-O2 -mcpu=i686 -pipe" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache sandbox" GENTOO_MIRRORS="http://ftp.snt.utwente.nl/pub/os/linux/gentoo http://212.219.247.11/sites/www.ibiblio.org/gentoo/ http://212.219.247.14/sites/www.ibiblio.org/gentoo/ http://212.219.247.19/sites/www.ibiblio.org/gentoo/ http://ftp.easynet.nl/mirror/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ http://212.219.247.20/sites/www.ibiblio.org/gentoo/ http://212.219.247.12/sites/www.ibiblio.org/gentoo/ http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="X Xaw3d acpi alsa apache2 apm arts avi berkdb bonobo cdr crypt cups dvd encode esd foomaticdb gdbm gif gnome gphoto2 gpm gtk gtk2 gtkhtml guile imlib java jpeg kde lcms ldap libg++ libwww linguas_de linguas_en_GB linguas_fr mad mikmod mmx motif mozilla moznocompose moznoirc moznomail mpeg mysql ncurses nls odbc oggvorbis opengl oss pam pcmcia pdflib perl png ppds python qt quicktime radeon readline samba sdl slang slp spell sse ssl svga tcltk tcpd tiff truetype usb x86 xml xml2 xmms xv zlib"
This was fixed by caleb four days after this bug was filed, in qt-3.3.1-r1. I believe he just forgot to close this.
In which case this would not exist in one of my 3.3.4 make files... simple-qfont-demo/$(MAKEFILE): @$(CHK_DIR_EXISTS) "simple-qfont-demo" || $(MKDIR) "simple-qfont-demo" cd simple-qfont-demo && $(QMAKE) simple-qfont-demo.pro -spec /var/tmp/portage/qt-3.3.4-r2/work/qt-x11-free-3.3.4/mkspecs/linux-g++ -o $(MAKEFILE)
Actually, there was a little bug in the fix. I changed 's:${S}:${QTBASE}:g' into "s:${S}:${QTBASE}:g" and now everything should be ok.