CPack DEB generator: control-file-has-bad-permissions mdsums 0644! = 0644

I am developing a small console application and I was trying to create a Ubuntu package using CPack. Ubuntu version is 13.04, and my main CPack file is lower. The package was created correctly, but when you try to install it using the graphical interface (basically double-clicking on the deb file in Ubuntu), the following warning appears:

The package has poor quality control-file-has-bad-permissions mdsums 0644! = 0644

Does anyone know what the reason is? And more importantly, how to fix it? CMake version 2.8.10.1, but I also tried using 2.8.11.2, and nothing has changed.

I saw that they had similar problems, but nothing about the nature of fix

My main CPack file:

INCLUDE(InstallRequiredSystemLibraries) SET(CPACK_GENERATOR DEB) SET(CPACK_PACKAGE_NAME "color") SET(CPACK_PACKAGE_VERSION "0.8") SET(CPACK_DEBIAN_PACKAGE_ARCHITECTURE "amd64") SET(CPACK_DEBIAN_PACKAGE_DEPENDS "libc6 (>= 2.3.1-6), libgcc1 (>= 1:3.4.2-12)") SET(CPACK_DEBIAN_PACKAGE_PRIORITY "optional") SET(CPACK_PACKAGE_DESCRIPTION_SUMMARY "color - unix console tool for log syntax coloring") SET(CPACK_PACKAGE_DESCRIPTION_FILE "${CMAKE_SOURCE_DIR}/README.txt") SET(CPACK_RESOURCE_FILE_LICENSE "${CMAKE_SOURCE_DIR}/Copyright.txt") SET(CPACK_PACKAGE_VERSION_MAJOR "1") SET(CPACK_PACKAGE_VERSION_MINOR "0") SET(CPACK_PACKAGE_VERSION_PATCH "0") SET(CPACK_STRIP_FILES "color") SET(CPACK_PACKAGE_EXECUTABLES "color") INCLUDE(CPack) 

If someone wants to see the package or do more research, github repo (deb file first in release).

+7
c ++ ubuntu cmake cpack deb
source share
3 answers

Good afternoon, I ran into the same problem. After googling and some unsuccessful attempts, I create a workaround. After cpack, I ran my own script, where I fix the permissions on the mdsums file. You can see my solution at the following link: https://github.com/paralect/robomongo/blob/master/install/linux/fixup_deb.sh.in

+3
source share

This is fixed in the CMake development branch, the next version 3.3.

+3
source share

You can confirm that CMake 3.3.0-rc2 fixes it, but if you have the source files on your hard drive in NTFS format (for example, I), the error will still be. As a workaround, you can create your package from any available EXT section, it worked in my case.

+1
source share

All Articles