我从lintian那里得到一个警告和一个错误:
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:
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,那么包构建将失败:
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有什么想法吗?
发布于 2015-09-22 18:27:23
我设法通过将以下行添加到我的规则文件中来“修复”这个问题:
override_dh_installinit:
# don't do anything, silences lintian warnings发布于 2015-09-22 18:51:43
首先,联系文档实际的lintian错误的含义:
lintian-info --tags \
init.d-script-not-included-in-package \
init.d-script-not-marked-as-conffile对第一个警告的解释表明,软件包的postinst脚本安装了一个初始化脚本,但它不是软件包的一部分。
因此,正确的解决方案应该是修复包的维护者脚本。
https://stackoverflow.com/questions/32712732
复制相似问题