[cmake-developers] New CPackRPM failing on build dir with space in it

Eric Noulard eric.noulard at gmail.com
Fri Mar 4 05:30:44 EST 2011


2011/3/4 Rolf Eike Beer <eike at sf-mail.de>:
>> Hi All,
>>
>> I know that some new CPackRPM tests are failing
>> http://www.cdash.org/CDash/testDetails.php?test=86188713&build=889597
>>
>> the reason is the build path used contains space which cannot be handled
>> by rpmbuild...
>>
>> I'll fix that tonight and avoid running those tests if build dir contains
>> space.
>
> If rpmbuild can't do this it is probably a good idea to throw a good error
> message in CPack when this happens so the user does not start complaining
> in the bug tracker or on the list. This sounds also as if that could be
> easily covered by just another testcase ;)

CPackRPM does that already:

$ cpack -G RPM
[...]
CPack: Create package
CMake Error at /usr/share/cmake-2.8/Modules/CPackRPM.cmake:202 (MESSAGE):
  /usr/bin/rpmbuild can't handle paths with spaces, use a build directory
  without spaces for building RPMs
CPack Error: Problem compressing the directory
CPack Error: Error when generating package: SchedMCore
$


-- 
Erk
Membre de l'April - « promouvoir et défendre le logiciel libre » -
http://www.april.org



More information about the cmake-developers mailing list