[CMake] [PATCH] Fix for #0009721: Cpack in Macos segfaults when trying to build a NSIS (crosscompiled) package

Gerald Hofmann gerald.hofmann at cosin.eu
Wed Apr 14 08:34:20 EDT 2010


Hi *,

attached please find a patch for #0009721. I would be happy if someone feels to accept it.

The version string output obviously is different to the NSIS dist binary when built from Macports. 

> makensis -VERSION
< v25-Feb-2010.cvs

Version checking in cmCPackNSISGenerator.cxx fails indefinitely because the expected regex is not matched. I have introduced an alternative version string format checking for the Macports style version string. Both formats are matched for NSIS version checking.

I do not fully understand why the CPACK_TOPLEVEL_DIRECTORY access fails when no matching NSIS version is found though. Maybe someone feels to fix the error handling if actually no valid NSIS version string was returned.

Regards,
Gerry


-------------- next part --------------
A non-text attachment was scrubbed...
Name: cmCPackNSISGenerator.patch
Type: application/octet-stream
Size: 1488 bytes
Desc: not available
URL: <http://www.cmake.org/pipermail/cmake/attachments/20100414/5275f027/attachment.obj>


More information about the CMake mailing list