MantisBT - CMake
View Issue Details
0009932CMakeCPackpublic2009-11-20 06:462011-02-25 10:51
Gordan Sikic 
Eric NOULARD 
lowminoralways
closedfixed 
CMake-2-8 
CMake 2.8.5CMake 2.8.5 
0009932: RPM Generator, spaces in CPACK_PACKAGE_NAME cause error while creating RPM archive
If variable CPACK_PACKAGE_NAME contains spaces, and variable CPACK_RPM_PACKAGE_NAME is not altered in any way, rpm generation will fail with following error:

CPack Error: Problem copying the package: <source>.rpm to <destination>.rpm

rpmbuild.err contains single line:
error: line 4: Tag takes single token only: Name: boost c++ libraries


removing all spaces from CPACK_PACKAGE_NAME solves problem
This is discovered while generating RPM archive for new boost 1.4.0 distribution;
No tags attached.
related to 0010871closed Eric NOULARD CPackRPM-generated spec file won't accept spaces in file paths. 
related to 0010701closed Eric NOULARD Lack of "%doc, %config, Obsolete" in CPackRPM 
related to 0010345closed Eric NOULARD [Patch] CPackRPM: file path with spaces 
tar bugReportFiles.tar (481,280) 2009-11-20 06:46
https://public.kitware.com/Bug/file/2666/bugReportFiles.tar
Issue History
2009-11-20 06:46Gordan SikicNew Issue
2009-11-20 06:46Gordan SikicFile Added: bugReportFiles.tar
2009-11-22 09:32Alex NeundorfStatusnew => assigned
2009-11-22 09:32Alex NeundorfAssigned To => Eric NOULARD
2009-11-22 12:22Eric NOULARDNote Added: 0018529
2010-04-10 08:56Eric NOULARDRelationship addedrelated to 0010345
2010-07-04 09:13Eric NOULARDRelationship addedrelated to 0010871
2010-07-04 09:14Eric NOULARDRelationship addedrelated to 0010701
2010-07-04 09:22Eric NOULARDNote Added: 0021229
2010-07-04 09:22Eric NOULARDPrioritynormal => low
2010-07-04 09:22Eric NOULARDResolutionopen => not fixable
2010-07-04 09:22Eric NOULARDETAnone => > 1 month
2011-02-25 10:49Eric NOULARDNote Added: 0025579
2011-02-25 10:51Eric NOULARDResolutionnot fixable => fixed
2011-02-25 10:51Eric NOULARDFixed in Version => CMake 2.8.5
2011-02-25 10:51Eric NOULARDTarget Version => CMake 2.8.5
2011-02-25 10:51Eric NOULARDNote Added: 0025580
2011-02-25 10:51Eric NOULARDStatusassigned => closed

Notes
(0018529)
Eric NOULARD   
2009-11-22 12:22   
Related discussion on the ML:
http://www.cmake.org/pipermail/cmake/2009-November/033403.html [^]

I did try something but the best I can do now is to throw an
explicit error when CPACK_PACKAGE_NAME contains spaces.

In fact I may automatically build a CPACK_RPM_PACKAGE_NAME without
space but the temporary directory used by the (generic) CPack generator
do contain the space... which makes rpmbuild fails because it cannot
handle it.

This is the same issue as using a build path containing space
rpmbuild cannot handle it either...
I won't be able to fix it from within CPackRPM.
(0021229)
Eric NOULARD   
2010-07-04 09:22   
Changing the state to "unfixable" because currently it may not be fixed
(0025579)
Eric NOULARD   
2011-02-25 10:49   
Merge topic 'CPackRPM-AvoidSpaceInName-Fixbug9932' into next

5b4cbdb CPackRPM Replace space in some CPACK_ vars (Fix bug 9932)

Auto-merging Source/CPack/cmCPackRPMGenerator.cxx
Pushing upstream next
To git@cmake.org:cmake.git
(0025580)
Eric NOULARD   
2011-02-25 10:51   
Just pushed to next.