这个控制文件有什么问题?

这个控制文件有什么问题?

起初我遇到了同样的错误使用 dpkg 创建 debain 源包时出错

按照它的答案后,我面临这个问题

tata@archisman-HP-240-G3-Notebook-PC ~/brightness-controller $ debuild
dpkg-buildpackage -rfakeroot -D -us -uc
dpkg-buildpackage: source package PACKAGE
dpkg-buildpackage: source version 1.2
dpkg-buildpackage: source distribution trusty
dpkg-buildpackage: source changed by Archisman Panigrahi <tata@archisman-HP-240-G3-Notebook-PC>
dpkg-source --before-build brightness-controller
dpkg-buildpackage: host architecture amd64
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: error: source package name 'PACKAGE' is illegal: character 'P' not allowed
dpkg-buildpackage: error: dpkg-source --before-build brightness-controller gave error exit status 255
debuild: fatal error at line 1364:
dpkg-buildpackage -rfakeroot -D -us -uc failed

控制文件是

Source: brightness-controller
Section: accessories
Priority: optional
Maintainer: Archisman Panigrahi <[email protected]>
Version: 1.2
Architecture: all
Build-Depends: python-wxgtk2.8,
               python,
               xrandr,
Homepage: http://lordamit.github.io/Brightness

Package: brightness-controller
Architecture: any
Depends: python-wxgtk2.8,
         python,
         xrandr,
Description: Brightness Controller is the only GUI application for Linux that allows you to control brightness 
of your primary and secondary display from the same place. It is a software based dimmer.
Released under GPL-3, Brightness Controller's source code is available at
.
https://github.com/lordamit/Brightness
.
If you encounter any problem you can open an issue in the GitHub project. 
.
Kindly review and let your friends know if this application made your display more friendly to your eyes.

答案1

摘自 Debian 政策手册,第控制文件及其字段

通用段落(第一个段落,针对源包)中的字段包括:

  • 来源(必填)
  • 维护者(必填)
  • 上传者
  • 部分(推荐)
  • 优先级(推荐)
  • Build-Depends 等
  • 标准版本(推荐)
  • 主页
  • Vcs-Browser、Vcs-Git 等。

二进制包段落中的字段包括:

  • 套餐(必填)
  • 建筑学(必修)
  • 部分(推荐)
  • 优先级(推荐)
  • 基本的
  • Depends 等
  • 描述(必填)
  • 主页
  • 建造使用
  • 包装类型

显然,neither VersionnorArchitecture不属于第一段(源包中的一段)。Version不属于debian/control 根本。版本是从 确定的debian/changelog,并且只有最终生成的包DEBIAN/control才会包含Version

看起来 中的某个文件debian可能debian/changelog未正确创建。它使用 来PACKAGE作为包名称,而它应该是brightness-controller。包名称始终为小写。

相关内容