Bug 66155 - wrong search path in perl templates after installing
Summary: wrong search path in perl templates after installing
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: 3.0.0a7
Platform: Compiled Sources Cygwin
: NOR normal
Target Milestone: ---
Assignee: KDevelop Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-17 11:55 UTC by Ralf Habacker
Modified: 2004-12-14 19:29 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:
Sentry Crash Report:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ralf Habacker 2003-10-17 11:55:58 UTC
Version:           3.0.0-a7 (using KDE Devel)
Installed from:    Compiled sources
OS:          Cygwin

Installing kdevelop using make prefix=<path> puts <path> into every perl template. 

In a build system using temporary installations path which is not the real running path, this results in wrong path settings and all perl scripts are failing. 

A solution seems to me that this templates should be patched while configuring, because prefix contains at this time the real installation path or to save $kde_datadir while configuring and to use this saved path setting on installing insted of the given prefix given by the make install prefix=... like libtool does in his *.la files. 

While taking a look in a produces makefile it seems to me that some additional kde_... defines should be have absolutes values instead of using ${datadir} which uses ${prefix}, but I'm not sure which onces are needed otherwise. 

Ralf
Comment 1 Amilcar do Carmo Lucas 2003-10-17 16:01:33 UTC
Strangly enough I used a temporary ./configure --prefix=<path> for a long time and I never had any problems.
But now I'm not using it anymore... so I canot confirm nor deny your problems :(
Comment 2 Ralf Habacker 2003-10-20 14:29:29 UTC
You can verify if yoou have this problem by searching the variable kde_datadir. If it includes a value of ${datadir}/apps, then you probably have the problem too, if there is included an absolute name like /opt/kde3/share/apps, then you haven't this problem. 

Comment 3 Jens Dagerbo 2004-04-16 20:45:38 UTC
This whole mechanism stinks. We need to fix it. Preferably without depending on Perl.
Comment 4 Jens Dagerbo 2004-12-14 19:29:34 UTC
The template system was completely rewritten for KDevelop-3.1.0 by Ian Geiser and Sascha Cunz so this is FIXED.