View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0009932CMakeCPackpublic2009-11-20 06:462011-02-25 10:51
ReporterGordan Sikic 
Assigned ToEric NOULARD 
PrioritylowSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-8 
Target VersionCMake 2.8.5Fixed in VersionCMake 2.8.5 
Summary0009932: RPM Generator, spaces in CPACK_PACKAGE_NAME cause error while creating RPM archive
DescriptionIf 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
Additional InformationThis is discovered while generating RPM archive for new boost 1.4.0 distribution;
TagsNo tags attached.
Attached Filestar file icon bugReportFiles.tar [^] (481,280 bytes) 2009-11-20 06:46

 Relationships
related to 0010871closedEric NOULARD CPackRPM-generated spec file won't accept spaces in file paths. 
related to 0010701closedEric NOULARD Lack of "%doc, %config, Obsolete" in CPackRPM 
related to 0010345closedEric NOULARD [Patch] CPackRPM: file path with spaces 

  Notes
(0018529)
Eric NOULARD (developer)
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 (developer)
2010-07-04 09:22

Changing the state to "unfixable" because currently it may not be fixed
(0025579)
Eric NOULARD (developer)
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 (developer)
2011-02-25 10:51

Just pushed to next.

 Issue History
Date Modified Username Field Change
2009-11-20 06:46 Gordan Sikic New Issue
2009-11-20 06:46 Gordan Sikic File Added: bugReportFiles.tar
2009-11-22 09:32 Alex Neundorf Status new => assigned
2009-11-22 09:32 Alex Neundorf Assigned To => Eric NOULARD
2009-11-22 12:22 Eric NOULARD Note Added: 0018529
2010-04-10 08:56 Eric NOULARD Relationship added related to 0010345
2010-07-04 09:13 Eric NOULARD Relationship added related to 0010871
2010-07-04 09:14 Eric NOULARD Relationship added related to 0010701
2010-07-04 09:22 Eric NOULARD Note Added: 0021229
2010-07-04 09:22 Eric NOULARD Priority normal => low
2010-07-04 09:22 Eric NOULARD Resolution open => not fixable
2010-07-04 09:22 Eric NOULARD ETA none => > 1 month
2011-02-25 10:49 Eric NOULARD Note Added: 0025579
2011-02-25 10:51 Eric NOULARD Resolution not fixable => fixed
2011-02-25 10:51 Eric NOULARD Fixed in Version => CMake 2.8.5
2011-02-25 10:51 Eric NOULARD Target Version => CMake 2.8.5
2011-02-25 10:51 Eric NOULARD Note Added: 0025580
2011-02-25 10:51 Eric NOULARD Status assigned => closed


Copyright © 2000 - 2018 MantisBT Team