View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0010871CMakeCPackpublic2010-06-24 10:242010-10-03 17:38
ReporterLuis Garrido 
Assigned ToEric NOULARD 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionCMake 2.8.3Fixed in VersionCMake 2.8.3 
Summary0010871: CPackRPM-generated spec file won't accept spaces in file paths.
DescriptionIf a file with spaces in its path is added to the %files section of the spec file it must be quoted, otherwise rpmbuild will fail with the message:

"error: Two files on one line"

I am using cmake-2.6.4-3.fc11.i586, but I installed a recent CPackRPM from git in the project tree to fix an incompatibility with Fedora 11 rpmbuild.
TagsNo tags attached.
Attached Files

 Relationships
related to 0010345closedEric NOULARD [Patch] CPackRPM: file path with spaces 
related to 0010701closedEric NOULARD Lack of "%doc, %config, Obsolete" in CPackRPM 
related to 0009932closedEric NOULARD RPM Generator, spaces in CPACK_PACKAGE_NAME cause error while creating RPM archive 
related to 0011595closedEric NOULARD CPack can't generate RPMs (on FC11) 

  Notes
(0021216)
Eric NOULARD (developer)
2010-07-03 05:45

I'll try to fix that but rpm and rpmbuild as trouble with space anyway.

For example currently you cannot build rpm if your build tree path
contains space because rpmbuild is not able to handle that.

May be you would be able to provide a standalone test case
(0021217)
Luis Garrido (reporter)
2010-07-03 07:16

I am using CPack in this (quite small) project:

http://sourceforge.net/apps/trac/ls16 [^]
http://sourceforge.net/scm/?type=git&group_id=328996 [^]

There is a folder called "stylesheets/HighContrast" that was formerly named "stylesheets/High Contrast", thus making rpmbuild fail (and prompting me to file this report.) You are of course welcome to use it as a test case if it is of any help.

From what I gathered, I think an easy fix for this particular case would be to always double-quote the file names that are added to the %files section of the spec.
(0021218)
Rolf Eike Beer (developer)
2010-07-03 08:35

'"' is also a valid path character, so that needs to be quoted then, too. I don't expect it to work now...
(0021225)
Eric NOULARD (developer)
2010-07-04 09:15

The fix for bugs 10701,10871,10345 has been commited to next
(0021226)
Eric NOULARD (developer)
2010-07-04 09:16

commit 53899460dfb1aef50ad3bb7acd1ec30d618cc5e7
Merge: 5858e6d 6926e91
Author: Eric NOULARD <eric.noulard@gmail.com>
Date: Sun Jul 4 15:10:18 2010 +0200

    Merge branch 'CPackRPM-handleFileWithSpace' into next

commit 6926e9114c832607bdad97827bb918cb21ab231d
Author: Eric NOULARD <eric.noulard@gmail.com>
Date: Sun Jul 4 14:05:25 2010 +0200

    CPackRPM:: Quote every filenames in %file section (see bugs 10701,10871,10345)
(0021241)
Eric NOULARD (developer)
2010-07-05 14:08

Prematurely closed
(0021242)
Eric NOULARD (developer)
2010-07-05 14:08

Prematurely closed

 Issue History
Date Modified Username Field Change
2010-06-24 10:24 Luis Garrido New Issue
2010-07-03 05:43 Eric NOULARD Status new => assigned
2010-07-03 05:43 Eric NOULARD Assigned To => Eric NOULARD
2010-07-03 05:45 Eric NOULARD Note Added: 0021216
2010-07-03 07:16 Luis Garrido Note Added: 0021217
2010-07-03 08:35 Rolf Eike Beer Note Added: 0021218
2010-07-04 04:59 Eric NOULARD Relationship added related to 0010345
2010-07-04 09:13 Eric NOULARD Relationship added related to 0009932
2010-07-04 09:14 Eric NOULARD Relationship added related to 0010701
2010-07-04 09:15 Eric NOULARD Note Added: 0021225
2010-07-04 09:16 Eric NOULARD Note Added: 0021226
2010-07-04 09:16 Eric NOULARD Status assigned => closed
2010-07-04 09:16 Eric NOULARD Resolution open => fixed
2010-07-04 09:16 Eric NOULARD Fixed in Version => CMake-2-8
2010-07-05 14:08 Eric NOULARD Note Added: 0021241
2010-07-05 14:08 Eric NOULARD Status closed => feedback
2010-07-05 14:08 Eric NOULARD Resolution fixed => reopened
2010-07-05 14:08 Eric NOULARD Note Added: 0021242
2010-07-05 14:08 Eric NOULARD Status feedback => resolved
2010-07-05 14:08 Eric NOULARD Resolution reopened => fixed
2010-09-10 00:05 David Cole Fixed in Version CMake-2-8 => CMake 2.8.3
2010-09-10 00:05 David Cole Target Version => CMake 2.8.3
2010-10-03 17:38 Eric NOULARD Status resolved => closed
2010-12-11 05:19 Eric NOULARD Relationship added related to 0011595


Copyright © 2000 - 2018 MantisBT Team