Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 18661 - Suggestion: make the Qt and KDE paths relative through a variable
Summary: Suggestion: make the Qt and KDE paths relative through a variable
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 28757
  Show dependency tree
 
Reported: 2003-04-02 16:25 UTC by Juergen Nagel
Modified: 2005-07-01 07:30 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
kde-functions.eclass uses the new variable KDEROOT in /etc/make.conf (kde-functions.eclass,11.27 KB, text/plain)
2003-04-21 17:39 UTC, Juergen Nagel
Details
qt-3.1.2-r3.ebuild uses the new variable QTROOT in /etc/make.conf (qt-3.1.2-r3.ebuild,5.60 KB, text/plain)
2003-04-21 17:40 UTC, Juergen Nagel
Details
qt-3.1.2-r3.ebuild: now uses a pkgconfig file to set the prefix (qt-3.1.2-r3.ebuild,5.75 KB, text/plain)
2003-04-24 15:49 UTC, Juergen Nagel
Details
pkgconfig file (qt.pc,66 bytes, text/plain)
2003-04-24 15:50 UTC, Juergen Nagel
Details
qt-3.1.2-r3.ebuild: corrected a typo (qt-3.1.2-r3.ebuild,5.75 KB, text/plain)
2003-04-24 16:15 UTC, Juergen Nagel
Details
pkgconfig file: added a mandatory dummy version field (qt.pc,81 bytes, text/plain)
2003-04-24 18:37 UTC, Juergen Nagel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Nagel 2003-04-02 16:25:07 UTC
I filed a related bug last year due to a hardcoded Qt path in an ebuild.
Dan Armak made a comment (http://bugs.gentoo.org/show_bug.cgi?id=7097#c2), where
accepted the request, but wasn't happy about it because of future generations of Qt.

I now had an idea.
Why not split the Qt and also the KDE paths into a variable segment and a
version segment. One could then put a variable in e.g. make.conf that says
something like "QTBASE=/opt/qt" and the related line in the ebuild would read
something like "QTDIR=$QTBASE/$QTVERSION".
The default would be "QTBASE=/usr" and "KDEBASE=/usr" so that nothing changes
for people who don't want to customize.

I'd be happy if it would be possible to implement this.

Reproducible: Always
Steps to Reproduce:
Comment 1 Juergen Nagel 2003-04-21 17:38:11 UTC
I've implemented the possibility to use other "root directories" for QT and KDE. 
 
Please test the kde-functions.eclass and qt-3.1.2-r3.ebuild to see if it works as I 
intended. 
Comment 2 Juergen Nagel 2003-04-21 17:39:39 UTC
Created attachment 10965 [details]
kde-functions.eclass

uses the new variable KDEROOT in /etc/make.conf
Comment 3 Juergen Nagel 2003-04-21 17:40:16 UTC
Created attachment 10966 [details]
qt-3.1.2-r3.ebuild

uses the new variable QTROOT in /etc/make.conf
Comment 4 Dan Armak (RETIRED) gentoo-dev 2003-04-24 14:57:13 UTC
I'm looking into the possibility of making qt and kde use pkg-config to amke this stuf truly 
generic and forget about it once and for all... 
Comment 5 Juergen Nagel 2003-04-24 15:49:52 UTC
Created attachment 11085 [details]
qt-3.1.2-r3.ebuild: now uses a pkgconfig file to set the prefix
Comment 6 Juergen Nagel 2003-04-24 15:50:28 UTC
Created attachment 11086 [details]
pkgconfig file
Comment 7 Juergen Nagel 2003-04-24 16:15:58 UTC
Created attachment 11087 [details]
qt-3.1.2-r3.ebuild: corrected a typo
Comment 8 Juergen Nagel 2003-04-24 18:37:41 UTC
Created attachment 11096 [details]
pkgconfig file: added a mandatory dummy version field
Comment 9 Juergen Nagel 2003-04-24 19:52:36 UTC
After the correction of the nasty bug in the qt.pc file, Qt gets installed correctly.
Comment 10 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-25 02:26:21 UTC
Could you edit it so that the pkg-config uses the version of qt to get the prefix (including version part). A query would then be:
pkg-config --prefix qt --maxversion=3.99.99 --atleastversion=3.
This way things can work even when different versions exist at different locations
Comment 11 Juergen Nagel 2003-04-25 22:28:55 UTC
I've searched around the net a bit, but as far as I could find out, you can't let a variable 
depend on a version. 
 
I think the current solution is a good one. 
One the one hand you can customize the root prefix of your Qt installations and on the 
other hand you take away the need of altering ebuilds. 
 
Thanks Dan for bringing up the idea of using pkgconfig. 
Comment 12 Paul de Vrieze (RETIRED) gentoo-dev 2003-04-26 08:45:43 UTC
Ok, I was under the impression that pkg-config could handle multiple simultaneous versions.
Comment 13 Dan Armak (RETIRED) gentoo-dev 2005-02-18 09:43:37 UTC
QT 4 will live in /usr (not /usr/qt/4), and presumably qt5 will be able to live
in the same directory with it. For general relocation functionality look to the
pathspec stuff. Is any part of this bug still relevant?
Comment 14 Juergen Nagel 2005-03-23 15:34:02 UTC
The Qt part of this bug will be irrelevant by the time Qt 4 comes out.

The KDE part is still relevant, but since I'm personally not happy about my own solution anymore, this bug can be closed.
Let's hope the KDE developers decide to use the /usr hierarchy in the same way as Trolltech. :)
Comment 15 Dan Armak (RETIRED) gentoo-dev 2005-07-01 07:30:01 UTC
Agreed.