我正在尝试创建一个新的 .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