无法构建新的.deb软件包

我正在尝试创建一个新的.deb软件包,但是构建过程失败,并输出以下内容:
dpkg-genchanges: error: binary build with no binary artifacts found; cannot distribute
dpkg-buildpackage: error: dpkg-genchanges gave error exit status 2
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc failed
bzr: ERROR: The build failed.

我做错了什么?

1个回答

这与此错误报告类似:bugs.debian.org #831939 他们用以下补丁修复了它:
--- a/debian/rules
+++ b/debian/rules
@@ -31,12 +31,12 @@ install: build
    # rename jailer.pl to jailer
    mv `pwd`/debian/jailer/usr/sbin/jailer.pl `pwd`/debian/jailer/usr/sbin/jailer
 
-# Build architecture-independent files here.
-binary-indep: build install
+# Build architecture-dependent files here.
+binary-arch:
 # We have nothing to do by default.
 
-# Build architecture-dependent files here.
-binary-arch: build install
+# Build architecture-independent files here.
+binary-indep: build install
    dh_testdir
    dh_testroot
 #  dh_installdebconf

所以,根据规则文件中使用的目标标签,dpkg-buildpackage 将自动运行特定的检查。
详细信息请参阅:debian.org/doc/debian-policy/ch-source.html#s-debianrules