Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 6722 - Alternative KDE directory
Summary: Alternative KDE directory
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Dan Armak (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-08-19 10:03 UTC by Juergen Nagel
Modified: 2002-08-29 08:17 UTC (History)
1 user (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 Juergen Nagel 2002-08-19 10:03:52 UTC
I would like to have the possibility to choose the destination directory for
KDE. Now KDE goes into /usr/kde/3 which doesn't look like a good solution.
I would like to see KDE installed in /opt/kde.

My idea's to add another variable to make.conf. If the variable's missing, KDE
gets installed into /usr/kde/3 as usual. If it's there, KDE would be installed
into that specified directory.

Dan, please say "Yes, that's an interesting proposal"... :-)
Comment 1 SpanKY gentoo-dev 2002-08-19 11:08:15 UTC
the variable exists already ... KDEDIR
try putting it into /etc/make.globals
Comment 2 Juergen Nagel 2002-08-20 06:03:29 UTC
No, that didn't help.
I had to patch the file kde-functions.eclass in /usr/portage/eclass.

Does the file get overwritten during an emerge rsync?
Comment 3 Nicholas Wourms 2002-08-20 13:48:18 UTC
It is actually supposed to be KDE3DIR and KDE3LIBSDIR that get defined, and it
does work.  Yes, rsync will wipe out your changes.
Comment 4 Juergen Nagel 2002-08-21 09:45:51 UTC
That doesn't help. KDE was compiled with the prefix /opt/kde, but emerge
installed it in /usr/kde/3.
I had to patch the file kde-functions.eclass.
The paths are hardcoded in there. They should be changed to use the environment
variable.
Comment 5 Juergen Nagel 2002-08-26 09:38:45 UTC
In the newest kde-functions.eclass file, Dan has introduced a check against the
$KDEPREFIX variable, which can be defined in profile.env.
If the variable exists, it will override the standard of installing into /usr/kde/3.
Comment 6 Dan Armak (RETIRED) gentoo-dev 2002-08-29 08:17:20 UTC
For anyone stumbling across this bug in the future: the 
KDE3DIR/KDEPREFIX/whatever options aren't well documented. The latest logic 
should always be described in comments in the function ste-kdedir() in 
kde-functions.eclass. All ebuilds are provided with $KDEDIR (location of 
kdeilbs) and $PREFIX (place to install to) and should take them into account 
where needed (e.g. kdebase with its sed'ding of startkde).