如何修复 "debian-rules-is-dh_make-template"?
How to fix "debian-rules-is-dh_make-template"?
问题
我在 lintian
.
中遇到了以下错误 (debian-rules-is-dh_make-template
)
我应该如何修复才能传递错误?
消息显示我没有修改debian/rules
,但我已经修改了(我添加了override_dh_auto_clean:
),所以我猜我的debian/rules
不够但我可以'搞清楚为什么我的debian/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/)。
因此,我在 debian/rules
中添加了 override_dh_auto_clean:
作为解决方法(https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/1248353/comments/10)。
删除debian/rules
中的评论如何?
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_clean:
echo clean
问题
我在 lintian
.
debian-rules-is-dh_make-template
)
我应该如何修复才能传递错误?
消息显示我没有修改debian/rules
,但我已经修改了(我添加了override_dh_auto_clean:
),所以我猜我的debian/rules
不够但我可以'搞清楚为什么我的debian/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/)。
因此,我在 debian/rules
中添加了 override_dh_auto_clean:
作为解决方法(https://bugs.launchpad.net/ubuntu-packaging-guide/+bug/1248353/comments/10)。
删除debian/rules
中的评论如何?
#!/usr/bin/make -f
%:
dh $@
override_dh_auto_clean:
echo clean