Bug 66155

Summary: wrong search path in perl templates after installing
Product: [Applications] kdevelop Reporter: Ralf Habacker <ralf.habacker>
Component: generalAssignee: KDevelop Developers <kdevelop-devel>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: 3.0.0a7   
Target Milestone: ---   
Platform: Compiled Sources   
OS: Cygwin   
Latest Commit: Version Fixed In:
Sentry Crash Report:

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.