diff options
author | Brad King <brad.king@kitware.com> | 2015-04-23 13:04:43 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2015-04-23 13:04:43 (GMT) |
commit | ebb54e02c4bfd9ef8ffb92a49afb873a0af58f2a (patch) | |
tree | eb78764dc1aa90704bb381d543d6f4fd6b880fce /Source | |
parent | 9fd1f5494f3650cddf949335ed3cfdfe10e0f984 (diff) | |
parent | 75b0e1679c39ca824a4c49d9e1a2ae2b5f04ae06 (diff) | |
download | CMake-ebb54e02c4bfd9ef8ffb92a49afb873a0af58f2a.zip CMake-ebb54e02c4bfd9ef8ffb92a49afb873a0af58f2a.tar.gz CMake-ebb54e02c4bfd9ef8ffb92a49afb873a0af58f2a.tar.bz2 |
Merge topic 'cpack-deb-linitian-md5hash'
75b0e167 CPackDeb: Add basic package tests
fdfe4586 CPackDeb: Fix lintian md5sum file warning
Diffstat (limited to 'Source')
-rw-r--r-- | Source/CPack/cmCPackDebGenerator.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Source/CPack/cmCPackDebGenerator.cxx b/Source/CPack/cmCPackDebGenerator.cxx index 18597e8..0137374 100644 --- a/Source/CPack/cmCPackDebGenerator.cxx +++ b/Source/CPack/cmCPackDebGenerator.cxx @@ -20,6 +20,7 @@ #include <cmsys/Glob.hxx> #include <limits.h> // USHRT_MAX +#include <sys/stat.h> // NOTE: // A debian package .deb is simply an 'ar' archive. The only subtle difference @@ -524,6 +525,11 @@ int cmCPackDebGenerator::createDeb() // Do not end the md5sum file with yet another (invalid) } + // set md5sum file permissins to RW-R--R-- so that deb lintian doesn't warn + // about it + cmSystemTools::SetPermissions(md5filename.c_str(), + S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH); + cmd = this->GetOption("GEN_CPACK_DEBIAN_FAKEROOT_EXECUTABLE"); cmd += cmake_tar + "tar czf control.tar.gz ./control ./md5sums"; const char* controlExtra = |