dpkg-buildpackage 忽略 debian/control 中的 Vcs-Git

dpkg-buildpackage 忽略 debian/control 中的 Vcs-Git

我正在构建一个 Debian 包并有以下debian/control文件:

Source: custom-package
Section: custom
Priority: optional
Maintainer: Dusan Rychnovsky <[email protected]>
Build-Depends: debhelper (>= 8.0.0)
Standards-Version: 3.9.2
Vcs-Git: git://github.com/project/custom-project.git

Package: custom-package
Architecture: amd64
Section: custom
Depends: ${shlibs:Depends}, ${misc:Depends}
Description: Custom package description.

当我运行时dpkg-buildpackage -us -ucDEBIAN/control生成的包中的文件.deb如下所示:

Package: custom-package
Version: 0.1-1
Architecture: amd64
Maintainer: Dusan Rychnovsky <[email protected]>
Installed-Size: 6528
Depends: libatlas3gf-base, libc6 (>= 2.7), libgcc1 (>= 1:4.1.1), libhdf5-openmpi-1.8.4, libjpeg62 (>= 6b1), libopenmpi1.3, libprotobuf7, libstdc++6 (>= 4.4.0)
Section: custom
Priority: optional
Description: Custom package description.

看起来这dpkg-buildpackage忽略了Vcs-Git标签。

我究竟做错了什么?

答案1

没什么。这些VCS-*字段适用于源包,而不是二进制包。比较:

$ apt-cache showsrc php5 | grep -i git
Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-php/php.git
Vcs-Git: git://anonscm.debian.org/pkg-php/php.git
$ apt-cache show php5 | grep -i git   
$

相关内容