Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 71655 - Qt Embedded causes trouble, superseding Qt's QMAKESPEC
Summary: Qt Embedded causes trouble, superseding Qt's QMAKESPEC
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 61972 73026 76965 78801 79489 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-11-18 03:55 UTC by Daniel Milne
Modified: 2005-02-23 03:21 UTC (History)
5 users (show)

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 Daniel Milne 2004-11-18 03:55:37 UTC
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"
Comment 1 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-29 08:09:24 UTC
This is a worksforeme. The usual place for qmake.conf is /usr/qt/3/mkspecs/linux-x86-g++/ Are you using Qt Embedded?
Comment 2 Daniel Milne 2004-11-29 12:24:56 UTC
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
Comment 3 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-29 12:45:52 UTC
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".
Comment 4 Daniel Milne 2004-11-29 12:51:46 UTC
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?
Comment 5 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-29 13:16:09 UTC
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.
Comment 6 Daniel Milne 2004-11-29 13:18:41 UTC
Nearly. 

# echo $QMAKESPEC
qws/linux-x86-g++

Comment 7 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-29 13:59:19 UTC
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.
Comment 8 Daniel Milne 2004-11-29 16:27:42 UTC
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.
Comment 9 Daniel Milne 2004-11-30 00:04:02 UTC
So, who should close this?
Comment 10 Carsten Lohrke (RETIRED) gentoo-dev 2004-11-30 11:53:51 UTC
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? ;)
Comment 11 Carsten Lohrke (RETIRED) gentoo-dev 2004-12-01 06:44:53 UTC
*** Bug 73026 has been marked as a duplicate of this bug. ***
Comment 12 Charlie Gehlin 2005-01-07 06:13:32 UTC
*** Bug 76965 has been marked as a duplicate of this bug. ***
Comment 13 Carsten Lohrke (RETIRED) gentoo-dev 2005-01-20 05:36:50 UTC
*** Bug 78801 has been marked as a duplicate of this bug. ***
Comment 14 Gregorio Guidi (RETIRED) gentoo-dev 2005-01-26 02:22:19 UTC
*** Bug 79489 has been marked as a duplicate of this bug. ***
Comment 15 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-18 15:01:15 UTC
*** Bug 61972 has been marked as a duplicate of this bug. ***
Comment 16 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-18 16:09:15 UTC
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.
Comment 17 Gregorio Guidi (RETIRED) gentoo-dev 2005-02-23 03:21:28 UTC
qt-embedded-3.3.4 committed with the fix above.