View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0008862CMakeCPackpublic2009-04-08 05:192010-07-29 11:54
Reporterbeiri22 
Assigned ToEric NOULARD 
PrioritynormalSeverityminorReproducibilityalways
StatusclosedResolutionfixed 
PlatformOSOS Version
Product VersionCMake-2-6 
Target VersionFixed in VersionCMake-2-8 
Summary0008862: Wrong Installed-Size field in Debian-Package
DescriptionIs sets the Installed-Size-Field to the Project Size in Bytes. Should be kB.
Additional InformationOpening the deb-Package of a 149k project in GDebi (Ubuntu Jaunty) shows size of 149M.
I think the field shoud contain the installed-size in kB.
TagsNo tags attached.
Attached Filespatch file icon installed-size.patch [^] (541 bytes) 2009-11-03 06:44 [Show Content]

 Relationships
duplicate of 0010296closedEric NOULARD Wrong "Installed-Size" field in generated Debian packages 

  Notes
(0018327)
Laszlo Kiss-Kollar (reporter)
2009-11-03 06:44

I can confirm this problem with both the 2.6.2 release and the CVS version. CMake uses the st_size member of the stat structure returned by cmSystemTools::FileLength() to fill the Installed-Size field. The st_size field is given in bytes but Installed-Size should be defined in Kbytes.

Quote from the Debian policy document:
"The disk space is given as the integer value of the estimated installed size in bytes, divided by 1024 and rounded up."

http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Installed-Size [^]

Patch attached.
(0021553)
Eric NOULARD (developer)
2010-07-29 11:54

The sibling bug 10296 has been fixed and commited to next

 Issue History
Date Modified Username Field Change
2009-04-08 05:19 beiri22 New Issue
2009-04-08 09:13 Bill Hoffman Status new => assigned
2009-04-08 09:13 Bill Hoffman Assigned To => Mathieu Malaterre
2009-11-03 06:44 Laszlo Kiss-Kollar Note Added: 0018327
2009-11-03 06:44 Laszlo Kiss-Kollar File Added: installed-size.patch
2010-07-29 11:27 Brad King Assigned To Mathieu Malaterre => Eric NOULARD
2010-07-29 11:53 Eric NOULARD Relationship added duplicate of 0010296
2010-07-29 11:54 Eric NOULARD Note Added: 0021553
2010-07-29 11:54 Eric NOULARD Status assigned => closed
2010-07-29 11:54 Eric NOULARD Resolution open => fixed
2010-07-29 11:54 Eric NOULARD Fixed in Version => CMake-2-8


Copyright © 2000 - 2018 MantisBT Team