MantisBT - CMake
View Issue Details
0008862CMakeCPackpublic2009-04-08 05:192010-07-29 11:54
beiri22 
Eric NOULARD 
normalminoralways
closedfixed 
CMake-2-6 
CMake-2-8 
0008862: Wrong Installed-Size field in Debian-Package
Is sets the Installed-Size-Field to the Project Size in Bytes. Should be kB.
Opening 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.
No tags attached.
duplicate of 0010296closed Eric NOULARD Wrong "Installed-Size" field in generated Debian packages 
patch installed-size.patch (541) 2009-11-03 06:44
https://public.kitware.com/Bug/file/2629/installed-size.patch
Issue History
2009-04-08 05:19beiri22New Issue
2009-04-08 09:13Bill HoffmanStatusnew => assigned
2009-04-08 09:13Bill HoffmanAssigned To => Mathieu Malaterre
2009-11-03 06:44Laszlo Kiss-KollarNote Added: 0018327
2009-11-03 06:44Laszlo Kiss-KollarFile Added: installed-size.patch
2010-07-29 11:27Brad KingAssigned ToMathieu Malaterre => Eric NOULARD
2010-07-29 11:53Eric NOULARDRelationship addedduplicate of 0010296
2010-07-29 11:54Eric NOULARDNote Added: 0021553
2010-07-29 11:54Eric NOULARDStatusassigned => closed
2010-07-29 11:54Eric NOULARDResolutionopen => fixed
2010-07-29 11:54Eric NOULARDFixed in Version => CMake-2-8

Notes
(0018327)
Laszlo Kiss-Kollar   
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   
2010-07-29 11:54   
The sibling bug 10296 has been fixed and commited to next