Add cpack_installed_size.diff to fix generation of Installed-Size field for deb packages.

Thanks to Simone Rossetto for heads up and initial patch.
ci/unstable
Modestas Vainius 15 years ago
parent 9b4acc149d
commit 86797b8024

2
debian/changelog vendored

@ -1,6 +1,8 @@
cmake (2.8.1-4) UNRELEASED; urgency=low cmake (2.8.1-4) UNRELEASED; urgency=low
* Further improve FinJNI.cmake. This should fix some inconsistencies on s390. * Further improve FinJNI.cmake. This should fix some inconsistencies on s390.
* Add cpack_installed_size.diff to fix generation of Installed-Size field for
deb packages. Thanks to Simone Rossetto for heads up and initial patch.
-- Modestas Vainius <modax@debian.org> Sun, 16 May 2010 16:14:33 +0300 -- Modestas Vainius <modax@debian.org> Sun, 16 May 2010 16:14:33 +0300

@ -0,0 +1,22 @@
Description: CPack: units of the deb Installed-Size field are rounded up bytes / 1024
Units of the Installed-Size field in debs are estimated installed size in
bytes, divided by 1024 and rounded up. See Debian Polucy 5.6.20 for more
information:
http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Installed-Size
Author: Simone Rossetto <simros85@gmail.com>
Author: Modestas Vainius <modax@debian.org>
Bug: http://public.kitware.com/Bug/view.php?id=10296
Forwarded: yes
Last-Update: 2010-05-17
--- a/Source/CPack/cmCPackDebGenerator.cxx
+++ b/Source/CPack/cmCPackDebGenerator.cxx
@@ -121,7 +121,7 @@ int cmCPackDebGenerator::CompressFiles(c
totalSize += cmSystemTools::FileLength(fileIt->c_str());
}
}
- out << "Installed-Size: " << totalSize << "\n";
+ out << "Installed-Size: " << (totalSize + 1023) / 1024 << "\n";
out << "Maintainer: " << maintainer << "\n";
out << "Description: " << desc << "\n";
out << std::endl;

@ -2,3 +2,4 @@ hurd_platform.diff
kFreeBSD_Hurd_fixes.diff kFreeBSD_Hurd_fixes.diff
FindGTK2_pangommconfig.diff FindGTK2_pangommconfig.diff
FindJNI_fix_libarch_determination.diff FindJNI_fix_libarch_determination.diff
cpack_installed_size.diff

Loading…
Cancel
Save