打包时我遇到以下错误
dh_builddeb
dpkg-deb: building package `remotedevicecontroller' in `../remotedevicecontroller_1.0-1_i386.deb'.
dpkg-source -b remotedevicecontroller-1.0
dpkg-source: info: using source format `3.0 (quilt)'
dpkg-source: error: unwanted binary file: debian/remotedevicecontroller/usr/share/doc/remotedevicecontroller/changelog.Debian.gz
dpkg-source: error: detected 1 unwanted binary file (add it in debian/source/include-binaries to allow its inclusion).
dpkg-buildpackage: error: dpkg-source -b remotedevicecontroller-1.0 gave error exit status 29
为什么该文件由 debian-helper 创建并且为什么它再次要求将其包含在其他目录中?
答案1
似乎构建不干净,或者您包含了更多默认情况下不存在的选项。changelog.Debian.gz 是 Debian 维护者对源包所做更改的 gzip 压缩列表。您可以删除/阻止文件的生成,或将路径添加到debian/source/include-binaries
:
$ cat debian/source/include-binaries
[...]
/usr/share/doc/remotedevicecontroller/changelog.Debian.gz
[...]