首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >debian lintian警告不存在的conffile

debian lintian警告不存在的conffile
EN

Stack Overflow用户
提问于 2015-09-22 16:59:38
回答 2查看 916关注 0票数 1

我从lintian那里得到一个警告和一个错误:

代码语言:javascript
复制
W: openrobertalab: init.d-script-not-marked-as-conffile etc/init.d/openrobertalab
E: openrobertalab: init.d-script-not-included-in-package etc/init.d/openrobertalab

这里我不明白的是,我的包中没有这样的文件etc/init.d/openrobertalab

代码语言:javascript
复制
dpkg --contents openrobertalab_1.3.0-1_amd64.deb | grep etc
drwxr-xr-x root/root         0 2015-09-22 10:53 ./etc/
drwxr-xr-x root/root         0 2015-09-22 10:53 ./etc/dbus-1/
drwxr-xr-x root/root         0 2015-09-22 10:53 ./etc/dbus-1/system.d/
-rw-r--r-- root/root       489 2015-09-22 10:53 ./etc/dbus-1/system.d/openrobertalab.conf

如果我遵循lintiants的建议并创建一个列出这个不存在的文件的debian/openrobertalab.conffiles,那么包构建将失败:

代码语言:javascript
复制
dpkg-deb: error: conffile `etc/init.d/openrobertalab' does not appear in package
dh_builddeb: dpkg-deb --build debian/openrobertalab .. returned exit code 2
make: *** [binary] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary gave error exit status 2

有什么想法吗?

EN

回答 2

Stack Overflow用户

发布于 2015-09-22 18:27:23

我设法通过将以下行添加到我的规则文件中来“修复”这个问题:

代码语言:javascript
复制
override_dh_installinit:
# don't do anything, silences lintian warnings
票数 1
EN

Stack Overflow用户

发布于 2015-09-22 18:51:43

首先,联系文档实际的lintian错误的含义:

代码语言:javascript
复制
 lintian-info --tags \
       init.d-script-not-included-in-package \
       init.d-script-not-marked-as-conffile

对第一个警告的解释表明,软件包的postinst脚本安装了一个初始化脚本,但它不是软件包的一部分。

因此,正确的解决方案应该是修复包的维护者脚本。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/32712732

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档