[CMake] "make package" still fails to work for absolute install locations.

Alan W. Irwin irwin at beluga.phys.uvic.ca
Tue May 8 12:13:26 EDT 2007


On 2007-01-12 12:03-0800 Alan W. Irwin wrote:

> On 2007-01-12 14:07+0100 Thomas Arcila wrote:
>
>> Hi,
>> 
>> CPack has support for so called "movable" package (movable = prefix 
>> independant,
>> unmovable = prefix prepended to install path), but it's hardcoded to 
>> movable one.
>> 
>> from Source/CPack/cmCPackGenericGenerator.cxx
>> 
>> bool movable = true;
>>  if ( movable )
>>    {
>>    // Make sure there is no destdir
>>    cmSystemTools::PutEnv("DESTDIR=");
>>    }
>>  else
>>    {
>>    std::string destDir = "DESTDIR=";
>>    destDir += tempInstallDirectory;
>>    cmSystemTools::PutEnv(destDir.c_str());
>>    }
>> 
>> It should not be that difficult to add a CPackConfig.cmake entry 
>> describing this
>> behavior. For the time being you can try to force movable to false and see 
>> if it works
>> (from what I read, it should, but I dont have time to test it).
>> 
>> I will not have time to look deeper into this before (at least) a week, so 
>> I hope
>> it'll be sufficient...
>> 
>
> Thomas, thanks very much for pointing out this possibility.  To be specific,
> the following patch to 2.4.6:
>
> --- cmCPackGenericGenerator.cxx_original        2007-01-12 11:41:24.000000000 
> -0800
> +++ cmCPackGenericGenerator.cxx 2007-01-12 11:41:50.000000000 -0800
> @@ -164,7 +164,7 @@
>     return 0;
>     }
>
> -  bool movable = true;
> +  bool movable = false;
>   if ( movable )
>     {
>     // Make sure there is no destdir
>
> completely fixed the problem; I can now create a valid compressed tarball
> binary release for PLplot with "make package" for the very first time!
>
> Please let me know when the fix for this bug gets into CMake cvs, and if the
> final fix is more complicated than this one liner, I would be happy to test
> again.

Since apparently there has been no action on this, I have now reported this
issue as bug 4993.

Alan

__________________________
Alan W. Irwin

Astronomical research affiliation with Department of Physics and Astronomy,
University of Victoria (astrowww.phys.uvic.ca).

Programming affiliations with the FreeEOS equation-of-state implementation
for stellar interiors (freeeos.sf.net); PLplot scientific plotting software
package (plplot.org); the libLASi project (unifont.org/lasi); the Loads of
Linux Links project (loll.sf.net); and the Linux Brochure Project
(lbproject.sf.net).
__________________________

Linux-powered Science
__________________________


More information about the CMake mailing list