我正在运行debuild
以便生成<source.changes>
文件以便稍后使用上传我的包
dput ppa:myusername/mypackagename <source.changes>
正如简要提到的这里。
我收到以下警告和错误:
$ debuild
This package has a Debian revision number but there does not seem to be an appropriate original tar file or .orig directory in the parent directory;
(expected one of screen-generator_0.3.orig.tar.gz, screen-generator_0.3.orig.tar.bz2,
screen-generator_0.3.orig.tar.lzma, screen-generator_0.3.orig.tar.xz or screen-generator.orig)
continue anyway? (y/n) y
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: warning: using a gain-root-command while being root
dpkg-buildpackage: source package screen-generator
dpkg-buildpackage: source version 0.3-1
dpkg-buildpackage: source distribution UNRELEASED
dpkg-buildpackage: source changed by root <root@computer>
dpkg-source --before-build screen-generator
dpkg-buildpackage: host architecture amd64
dpkg-source: warning: unknown information field 'Package' in input data in general section of control info file
dpkg-source: warning: unknown information field 'Version' in input data in general section of control info file
dpkg-source: warning: unknown information field 'Architecture' in input data in general section of control info file
dpkg-source: warning: unknown information field 'Description' in input data in general section of control info file
dpkg-source: error: screen-generator/debian/control doesn't list any binary package
dpkg-buildpackage: error: dpkg-source --before-build screen-generator gave error exit status 255
我需要做什么来避免这个错误或生成文件<source.changes>
?
我的包名为screen-generator
,我的debian/control
文件包含以下内容
Source: screen-generator
Package: screen-generator
Version: 0.3
Standard-Version: 0.3
Section: base
Maintainer: [email protected] <[email protected]>
XSBC-Original-Maintainer: Name <[email protected]>
Priority: optional
Architecture: any
Vcs-Bzr: lp:ubuntu/screen-generator
Homepage: https://github.com/boddhissattva/screen-generator
Vcs-Git: https://github.com/boddhissattva/screen-generator
Description:
screen-generator generates screen configuration files and launches screen by providing a chain of commands
答案1
您必须按如下方式重新排序您的控制文件:
Source: screen-generator
Section: base
Priority: optional
Maintainer: [email protected] <[email protected]>
Package: screen-generator
Version: 0.3
Standards-Version: 0.3
XSBC-Original-Maintainer: Name <[email protected]>
Architecture: any
Vcs-Bzr: lp:ubuntu/screen-generator
Homepage: https://github.com/boddhissattva/screen-generator
Vcs-Git: https://github.com/boddhissattva/screen-generator
Description: short description
screen-generator generates screen configuration files and launches screen by providing a chain of commands
请注意,Maintainer 和 Package 之间的空白行是必需的。完成此操作后,重新运行 debuild,您的“未知信息字段”问题必定已得到解决。
答案2
正如所述debian 软件包文档,debian/control
必须包含两个段落:
- 这一般段落(第一个,针对源码包)
- 中的字段二进制包段落