Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 1119

Summary: qt-3.0.2 won't compile when older versions of qt are installed
Product: Gentoo Linux Reporter: Sloan Poe <sloan>
Component: New packagesAssignee: Dan Armak (RETIRED) <danarmak>
Severity: normal    
Priority: High    
Version: 1.0 RC6 r14   
Hardware: x86   
OS: Linux   
Package list:
Runtime testing required: ---

Description Sloan Poe 2002-03-13 10:38:38 UTC
I think I know the solution as well.  It seems at some point either
/etc/profile.env or /etc/env.d/ is being read sometime after QTDIR is being set
to the working qt-3 dir.  So that QTDIR is pointing to /usr/qt/2 which caused
qt-3 not to compile at all.  My solution was to comment all instances of QTDIR
out of environment files.. but I think it should be done int he ebuild.
Comment 1 Dan Armak (RETIRED) gentoo-dev 2002-03-15 05:48:04 UTC
I can't reproduce it.  I export QTDIR=${S} (S being the working directory) in the ebuild. I don't see where it could have been overridden, but let's try to locate it.   I've now added an export QTDIR=${S} line before every major action in the ebuild. (It may be upto 30 minutes before it's on rsync). Please restore your env.d settings (I hope you've kept them!) and try this new ebuild. If it works, we'll remove these lines one by one, until it stops working. That is, if you don't mind compiling qt so many times :-) 
Comment 2 Sloan Poe 2002-03-18 10:00:13 UTC
Ok.. So I got qt installed by useing the method I described (namely commenting out 
QTDIR= lines in the conf.d/ file..  

Qt 3 is installed now, I just tried to merge the ebuild that you changed, and it
still fails. So that seems odd even with all the export QTDIR lines qtfails to
Comment 3 Dan Armak (RETIRED) gentoo-dev 2002-03-24 14:17:19 UTC
Please try it with the recently unmasked new portage-1.8.9_pre32 and tell me if it works. This portage has so many new updates, it might have fixed this. 
Comment 4 Sloan Poe 2002-03-27 06:39:40 UTC
Well I tried it with the latest pre of portage, and that didn't fix my problem.
 Now it seems to be worse though.  I've gone back to the stable release of
portage, and the new release 3.0.3 of qt won't compile (same problem looking in
/usr/qt/2) even when I comment out the lines from the /etc/env.d/50qt2 file.

Comment 5 Sloan Poe 2002-03-27 06:50:01 UTC
Ah.. But if I comment out the QTDIR entry in the profile.env file, then it seems
to work..
Comment 6 Dan Armak (RETIRED) gentoo-dev 2002-03-27 17:51:19 UTC
That last is because profile.env is auto-generated from the files in env.d after every run of emerge. 
You can generate it manually using env-update. 
This is really wierd, especially since noone else reported anything like it. I'll have to think about 
Comment 7 Dan Armak (RETIRED) gentoo-dev 2002-03-30 05:08:54 UTC
Sorry. But I can't reproduce it or think of anything that might be causing it, and no one else 
reported anything of the sort.