【问题标题】:How to fix "debian-rules-is-dh_make-template"?如何修复“debian-rules-is-dh_make-template”?
【发布时间】:2020-11-24 01:38:22
【问题描述】:

问题

我遇到了来自lintian 的以下错误(debian-rules-is-dh_make-template)。

我应该如何解决以传递错误?

消息显示我没有修改debian/rules,但是我已经修改了(我添加了override_dh_auto_clean:),所以我猜我的debian/rules是不够的但我不知道为什么我的@987654329 @ 不够用……

$ 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)。

【问题讨论】:

    标签: makefile packaging lintian


    【解决方案1】:

    删除debian/rules的评论怎么样?

    #!/usr/bin/make -f
    %:
            dh $@
    
    override_dh_auto_clean:
            echo clean
    

    【讨论】:

      猜你喜欢
      • 2013-01-06
      • 1970-01-01
      • 2012-02-15
      • 1970-01-01
      • 2022-12-17
      • 1970-01-01
      • 1970-01-01
      • 2023-03-31
      • 2019-10-21
      相关资源
      最近更新 更多