问题
我有一个debian-rules-is-dh_make-template
来自lintian
.
我应该如何修复以传递错误?
消息显示我没有修改debian/rules
,但我已经修改(我添加了override_dh_auto_clean:
),所以我猜是 mydebian/rules
不足但我无法弄清楚为什么 mydebian/rules
不足...
$ lintian hello_2.10-0ubuntu1.dsc --info
...
E: hello source: debian-rules-is-dh_make-template
N:
N: The debian/rules file appears to be an unmodified or insufficiently
N: modified copy of the dh_make template.
N:
N: Please double-check the rules file.
N:
N: Severity: important, Certainty: certain
N:
N: Check: rules, Type: source
N:
...
我dibian/rules
的在下面。
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1
# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all
# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
%:
dh $@
override_dh_auto_clean:
echo clean
# dh_make generated override targets
# This is example for Cmake (See https://bugs.debian.org/641051 )
#override_dh_auto_configure:
# dh_auto_configure -- # -DCMAKE_LIBRARY_PATH=$(DEB_HOST_MULTIARCH)
背景
我正在尝试做本教程(https://packaging.ubuntu.com/html/packaging-new-software.html#starting-a-package)。
通过使用默认值debian/rules
,我遇到了这样的错误(https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/1248353/)。
因此,我override_dh_auto_clean:
在我debian/rules
的解决方法中添加了(https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/1248353/comments/10)。