[CMake] Possible changes in CPackRPM.cmake in version 2.8.0
Karl Krissian
krissian at dis.ulpgc.es
Fri Oct 15 05:13:10 EDT 2010
OK,
It worked with the nightly build of cmake.
Regards,
Karl
El 14/10/10 11:27, Eric Noulard escribió:
> 2010/10/14 Karl Krissian<krissian at dis.ulpgc.es>:
>> Hi,
>>
>> I made the following changes to the file
>> /usr/share/cmake/Modules/CPackRPM.cmake to be able to use it for my
>> software:
>>
>> diff /home/karl/amilab_trunk/CMAKE/CPackRPM.cmake
>> /usr/share/cmake/Modules/CPackRPM.cmake
>> 283,285c283
>> < COMMAND sed {s/\\.//}
>> < COMMAND sed {s/$/\"/}
>> < COMMAND sed {s/^/\"/}
>> ---
>>> COMMAND sed {s/\\.//}
>> 369c367,369
>> < COMMAND "${RPMBUILD_EXECUTABLE}" -bb
>> --buildroot=${CPACK_RPM_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}/
>> "${CPACK_RPM_BINARY_SPECFILE}"
>> ---
>>> COMMAND "${RPMBUILD_EXECUTABLE}" -bb
>>> --buildroot
>>> "${CPACK_RPM_DIRECTORY}/${CPACK_PACKAGE_FILE_NAME}"
>>> "${CPACK_RPM_BINARY_SPECFILE}"
>> Basically, I replaced "--buildroot "${path}"" by "--buildroot=${path}" and I
>> added quotes around the filenames to deal with spaces inside.
>>
>> I also removed the quotes around the buildroot directory since it was a
>> source of error, but then the directory cannot include spaces anymore.
> Which is bug report, which should be fixed in 2.8.3 :-]
>
> Would you be able to give latest CMake 2.8.3/CPack rc a try?
>
> I think it should fix your problems (while maintaining the support for
> space in filename ... and many more things)
>
> If not please file a bug report may be including a small example project which
> exhibits the issue.
>
>> P.S. : I used rpmbuild from RPM 4.8.1
> Ok should work with 2.8.3.
>
> If you have trouble with CPackRPM you can run it with debug output on like this:
>
> cpack -D CPACK_RPM_PACKAGE_DEBUG=1 -G RPM
>
> and you will have trace of what CPackRPM is doing (including the
> version of rpmbuild used).
>
>
More information about the CMake
mailing list