web-dev-qa-db-fra.com

debian / control ne liste aucun paquet binaire

J'utilise la debuild afin de générer le fichier <source.changes> afin de télécharger ultérieurement mon paquet à l'aide de

dput ppa:myusername/mypackagename <source.changes>

comme mentionné brièvement ici .

Je reçois l'avertissement et les erreurs suivants:

$ 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

Que dois-je faire pour éviter cette erreur ou générer un fichier <source.changes>?

Mon paquet s’appelle screen-generator et mon fichier debian/control contient les éléments suivants

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

Vous devez réorganiser votre fichier de contrôle de la manière suivante:

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

Notez la ligne blanche entre Maintainer et Package, cela est vraiment nécessaire. Une fois que vous faites cela, relancez debuild et votre problème avec "champ d'informations inconnues" doit être résolu.

1
kato2

Comme décrit dans le documentation du paquet debian , le debian/control doit comporter deux paragraphes:

  1. Le paragraphe général (le premier, pour le paquet source)
  2. Les champs dans les paragraphes du paquet binaire
1
user123456