Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 213148 - emerge doesn't update environment between each installation
Summary: emerge doesn't update environment between each installation
Status: RESOLVED INVALID
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-03-12 14:03 UTC by Camille Huot (RETIRED)
Modified: 2008-03-12 18:02 UTC (History)
0 users

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 Camille Huot (RETIRED) gentoo-dev 2008-03-12 14:03:33 UTC
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.
Comment 1 Zac Medico gentoo-dev 2008-03-12 16:23:01 UTC
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.
Comment 2 Camille Huot (RETIRED) gentoo-dev 2008-03-12 17:32:01 UTC
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?
Comment 3 Camille Huot (RETIRED) gentoo-dev 2008-03-12 17:33:33 UTC
(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?
Comment 4 Andrew Gaffney (RETIRED) gentoo-dev 2008-03-12 17:36:20 UTC
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.
Comment 5 Camille Huot (RETIRED) gentoo-dev 2008-03-12 17:52:56 UTC
(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.
Comment 6 Camille Huot (RETIRED) gentoo-dev 2008-03-12 18:02:15 UTC
(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.