Emerge doesnt'run env-update between each package installation (is that a feature?), so: - install qt - do NOT env-update; source /etc/profile - install qca will fails. So "emerge qca" will install qt as a dep but can't install qca in the end. Example installing qca when env-update isn't run after qt being emerged: >>> Source unpacked. >>> Compiling source in /var/tmp/portage/app-crypt/qca-1.0-r2/work/qca-1.0 ... Configuring Qt Cryptographic Architecture (QCA) ... Verifying Qt 3.x Multithreaded (MT) build environment ... fail There was an error compiling 'conf'. Be sure you have a proper Qt 3.x Multithreaded (MT) build environment set up. One possible reason is that you don't have libqt-mt.so.3 installed in /usr/lib/qt/lib/. * * ERROR: app-crypt/qca-1.0-r2 failed. Everything goes fine if env-update; source /etc/profile is run.
Emerge does update it's environment but the problem is that emerge also allows the calling environment to override everything else. For this reason, you have to source /etc/profile in your shell so that any stale variables in the calling environment are updated.
OK, I successfully compiled qt+qca by unsetting QTDIR. I didn't found where QTDIR is defined by default to "/usr/lib/qt". Do you know if we really need a (wrong) default value overriding the good one? :) How can this issue be resolved?
(In reply to comment #2) > How can this issue be resolved? I don't think stopping emerge, reloading the environment then restarting emerge is a valid solution. How does catalyst manage this issue?
It doesn't. Does this only happen on a QT upgrade where QTDIR changes? If so, it would never affect catalyst anyway, since we would only be doing a first-time install of QT.
(In reply to comment #4) > Does this only happen on a QT upgrade where QTDIR changes? I was installing a brand new system by manually populating /var/lib/portage/world from my previous box then doing an emerge world (net-im/psi depends on qca, which depends on qt). I don't know if it happens on a QT upgrade (probably) but it happens on a brand new QT install. QTDIR is already defined *before* I ever installed qt. I didn't found its definition anywhere in /etc or /usr/portage/profiles.
(In reply to comment #5) > QTDIR is already defined *before* I ever installed qt. I didn't > found its definition anywhere in /etc or /usr/portage/profiles. Oops, I'm really confused, QTDIR comes from the Slax system I use to chroot my Gentoo system. I feel bad :( It's enough to mark the bug INVALID. Sorry for the noise.