web-dev-qa-db-ja.com

debian / controlはバイナリパッケージをリストしません

<source.changes>ファイルを生成して後でパッケージをアップロードするためにdebuildを実行しています

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
2
user123456

この方法で制御ファイルを並べ替える必要があります。

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の間の空白行に注意してください。これは本当に必要です。それを行ったらデビルドを再実行し、「不明な情報フィールド」の問題を解決する必要があります。

1
kato2

debianパッケージドキュメント で説明されているように、debian/controlには2つの段落が必要です。

  1. 一般的な段落(ソースパッケージの最初の段落)
  2. バイナリパッケージの段落のフィールド
1
user123456