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

查看:230
本文介绍了CPack DEB generator:control-file-has-bad-permissions mdsums 0644!= 0644的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发小控制台应用程序,我试图使用CPack创建Ubuntu包。 Ubuntu版本是13.04和我的主要CPack文件如下。软件包创建正确,但尝试使用图形界面(基本上双击deb文件在Ubuntu中)安装时会出现以下警告:

I am developing small console application and I was trying to create Ubuntu package using CPack. Ubuntu version is 13.04 and my main CPack file is below. Package is created correctly, but while trying to install it using graphic interface (basically double click on deb file in Ubuntu) following warning appears:


软件包是质量不好的控制文件有坏的权限mdsums 0644
!= 0644

Package is of bad quality control-file-has-bad-permissions mdsums 0644 != 0644

有人知道什么是为什么?更重要的是,如何解决呢? CMake版本是2.8.10.1,但我也试图使用2.8.11.2,没有什么改变。

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

我看到,他们有类似的问题,但没有什么修复的性质

I have seen, that they had similar problems here, but nothing about the nature of the fix

我的主要CPack档案:

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)

如果有人想要看包或做更多的研究,github repo (deb文件在第一版)。

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

推荐答案

美好的一天,我坚持同样的问题。在googling和一些失败的尝试后,我创建解决方法。后cpack我开始自己的脚本,其中我修复mdsums文件的权限。您可以在下一个链接中查看我的解决方案: https:// github.com/paralect/robomongo/blob/master/install/linux/fixup_deb.sh.in

Good day, i stuck with same problem. After googling and some failed attempts i create workaround. After cpack i start my own script where i fix permissions on mdsums file. You can see my solution on next link: https://github.com/paralect/robomongo/blob/master/install/linux/fixup_deb.sh.in

这篇关于CPack DEB generator:control-file-has-bad-permissions mdsums 0644!= 0644的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆