Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 168964 - qt3 eclass redundantly screws with PATH
Summary: qt3 eclass redundantly screws with PATH
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Qt Bug Alias
URL:
Whiteboard:
Keywords:
Depends on: 120116 187545 187555 189045 189641
Blocks:
  Show dependency tree
 
Reported: 2007-03-02 05:34 UTC by Brian Harring (RETIRED)
Modified: 2009-01-26 11:00 UTC (History)
3 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 Brian Harring (RETIRED) gentoo-dev 2007-03-02 05:34:50 UTC
Pretty straightforward; the eclass screws with PATH in the global scope, no reason to do so.

PATH already contains (via env.d entry) appropriate addition; yet to find a reason to mangle the PATH like that.
Comment 1 Caleb Tennis (RETIRED) gentoo-dev 2007-03-02 12:54:44 UTC
where should I tuck it into to ensure that it's run before every step of the emerge process?
Comment 2 Caleb Tennis (RETIRED) gentoo-dev 2007-03-02 12:56:21 UTC
or to elaborate, it's there to ensure the correct binary versions get used when you hve both qt3 and qt4 binaries on your system, as they both have the same names.

I don't mind putting in inside a function, I just am not clear on the one to put it inside of.
Comment 3 Przemyslaw Maciag (RETIRED) gentoo-dev 2007-03-06 23:39:03 UTC
Brian, why adding redundant directory into PATH, screwed up PATH? It's redundant - ok. But is it a problem anywhere? (just courious - I haven't got into a situation where this could be a problem).

Caleb - there is another way for calling qmake in nice and easy way. Just look into this:

troll@troll ~ $ qmake -v
QMake version 2.01a
Using Qt version 4.2.2 in /usr/lib/qt4
troll@troll ~ $ /usr/qt/3/bin/qmake -v
Qmake version: 1.07a (Qt 3.3.8)
Qmake is free software from Trolltech ASA.
troll@troll ~ $ alias qmake='/usr/qt/3/bin/qmake'
troll@troll ~ $ qmake -v
Qmake version: 1.07a (Qt 3.3.8)
Qmake is free software from Trolltech ASA.
troll@troll ~ $ /usr/bin/qmake -v
QMake version 2.01a
Using Qt version 4.2.2 in /usr/lib/qt4

quick and easy explanation : you can just use alias in eclass for qmake and it will solve problems with calling it for systems with both qt versions installed.

Cheers,
Przemek
Comment 4 Caleb Tennis (RETIRED) gentoo-dev 2007-03-06 23:58:18 UTC
that's fine with me.  I'm not positive on the impact or that it's completely portable, but it sounds like a good solution.
Comment 5 Przemyslaw Maciag (RETIRED) gentoo-dev 2007-03-07 00:12:28 UTC
(In reply to comment #4)
> that's fine with me.  I'm not positive on the impact or that it's completely
> portable, but it sounds like a good solution.

should be portable for all qt keyworded archs without a problem (at least I don't see why, it could a problem).
Comment 6 Przemyslaw Maciag (RETIRED) gentoo-dev 2007-03-07 23:46:50 UTC
Well... I tried aliases idea and it's not working as I thought it will :/ It would be to really painfull to track all possible problems with portage packages.

Brian, could you tell us, why you think that redundant directory in PATH is screwing anything here? (these are only qt3 binaries in this path)

Cheers,
Przemek
Comment 7 Brian Harring (RETIRED) gentoo-dev 2007-03-09 01:29:30 UTC
Sorry on the lag, was ignoring gentoo for a while there :)

Reasoning provided for the PATH insertion makes sense; tbh I assumed it was just cruft in the class that was no longer needed.

Te reason why I pushed for moving to a non global approach is that of env saving/restoration; cleaned eclasses and most of the tree a while back to lay the grounds for full env saving/restoration (iow, global would be ran *once*).  In other words, proper location would be pkg_setup for it *if it was required*.

Portage unfortunately stops PATH a bit on it's own, thus transitioning now isn't possible.

That's the long version; short version, y'all have a valid reason for the mod, thus invalidating this bug.  Will resurrect it whenever env crap gets pushed on again.  Pardon the noise- again, wasn't aware you had a valid reason for the tweak :)
Comment 8 Jakub Moc (RETIRED) gentoo-dev 2007-07-02 07:00:36 UTC
(In reply to comment #6)
> Well... I tried aliases idea and it's not working as I thought it will :/ It
> would be to really painfull to track all possible problems with portage
> packages.
> 
> Brian, could you tell us, why you think that redundant directory in PATH is
> screwing anything here? (these are only qt3 binaries in this path)

Yes, it's screwing quite a few packages that inherit both qt3 and qt4 and don't specify full paths to qmake (see Bug 183906 as an example).

So:
- either we can always require people to specify full path
- or Bug 120116 should be finally done.
Comment 9 Przemyslaw Maciag (RETIRED) gentoo-dev 2007-12-09 21:13:26 UTC
(In reply to comment #8)
> - or Bug 120116 should be finally done.

so this one can be closed? :)

Cheers,
Przemek
Comment 10 Davide Pesavento (RETIRED) gentoo-dev 2007-12-09 21:43:23 UTC
(In reply to comment #9)
> (In reply to comment #8)
> > - or Bug 120116 should be finally done.
> 
> so this one can be closed? :)
> 
> Cheers,
> Przemek
> 

From comment #55 by jakub in bug #120116:

"Bug #168964 shouldn't be closed until all packages are fixed to use
eqmake3/eqmake4 instead of invoking qmake directly. At that point, there'll be
no reason to mess with the PATH any more and this should be removed from
qt3.eclass."

As you can see I've already fixed a couple of packages in portage by submitting modified ebuilds to the maintainers. I think we should convert the whole tree...
Comment 11 Przemyslaw Maciag (RETIRED) gentoo-dev 2007-12-09 21:51:15 UTC
(In reply to comment #10)
> From comment #55 by jakub in bug #120116:
> 
> "Bug #168964 shouldn't be closed until all packages are fixed to use
> eqmake3/eqmake4 instead of invoking qmake directly. At that point, there'll be
> no reason to mess with the PATH any more and this should be removed from
> qt3.eclass."
> 
> As you can see I've already fixed a couple of packages in portage by submitting
> modified ebuilds to the maintainers. I think we should convert the whole
> tree...

Thx Davide - I missed this. Ok. I'm gonna udpate psi to use eqmake. Do you already look the tree for other pkgs that needs this?

Cheers,
Przemek
Comment 12 Davide Pesavento (RETIRED) gentoo-dev 2009-01-25 14:05:36 UTC
It seems that, since revision 1.31, qt3.eclass no longer modifies PATH... Since the change was done more than a year ago and there have been no complaints, I guess this bug can be closed...
Comment 13 Markos Chandras (RETIRED) gentoo-dev 2009-01-26 11:00:51 UTC
Closed. Thanks for bringing this to surface :)