我正在将 openldap 的 Debian 软件包向后移植到 jessie,并且我们的本地 Debian 存储库遇到了一些问题。使用git-buildpackage
,Debian 软件包运行良好,但当我到达该dput
步骤时,出现错误。我们有一个本地 Debian 存储库,我正在其中上传这个包。本地 Debian 存储库使用 reprepro。
第一部分有效dput
,但第二部分失败:
Checking signature on .changes
gpg: Signature made Fri Feb 10 09:17:41 2017 PST using RSA key ID 53913E0C
gpg: Good signature from "Horace Linxster <[email protected]>"
Good signature on /srv/scratch/hlinxster/openldap/build-area/openldap_2.4.44+dfsg-3.1_amd64.changes.
Checking signature on .dsc
gpg: Signature made Fri Feb 10 09:17:28 2017 PST using RSA key ID 53913E0C
gpg: Good signature from " "Horace Linxster <[email protected]>"
Good signature on /srv/scratch/hlinxster/openldap/build-area/openldap_2.4.44+dfsg-3.1.dsc.
Uploading to local (via scp to debian-local.example.com):
openldap_2.4.44+dfsg-3.1.dsc 100% 2612 2.6KB/s 00:00
openldap_2.4.44+dfsg-3.1.debian.tar.xz 100% 153KB 152.9KB/s 00:00
slapd_2.4.44+dfsg-3.1_amd64.deb 100% 1401KB 1.4MB/s 00:00
slapd-smbk5pwd_2.4.44+dfsg-3.1_amd64.deb 100% 88KB 87.8KB/s 00:00
ldap-utils_2.4.44+dfsg-3.1_amd64.deb 100% 188KB 188.0KB/s 00:00
libldap-2.4-2_2.4.44+dfsg-3.1_amd64.deb 100% 218KB 218.5KB/s 00:00
libldap-common_2.4.44+dfsg-3.1_all.deb 100% 83KB 82.6KB/s 00:00
libldap-2.4-2-dbg_2.4.44+dfsg-3.1_amd64.deb 100% 454KB 454.2KB/s 00:00
libldap2-dev_2.4.44+dfsg-3.1_amd64.deb 100% 324KB 323.8KB/s 00:00
slapd-dbg_2.4.44+dfsg-3.1_amd64.deb 100% 4803KB 4.7MB/s 00:00
openldap_2.4.44+dfsg-3.1_amd64.changes 100% 4409 4.3KB/s 00:00
Successfully uploaded packages.
file 'openldap_2.4.44+dfsg.orig.tar.gz' is needed for 'openldap_2.4.44+dfsg-3.1.dsc', not yet registered in the pool and not found in 'openldap_2.4.44+dfsg-3.1_amd64.changes'
There have been errors!
Error: post upload command failed.
确实openldap_2.4.44+dfsg.orig.tar.gz
没有包含在.changes
文件中;文件中列出的唯一 tar 文件.changes
是openldap_2.4.44+dfsg-3.1.debian.tar.xz
.在包构建过程中我需要做什么来确保 tar 文件.changes
正确地列在文件中?
答案1
您需要dpkg-genchanges
使用其选项告诉包含原始来源-sa
。您可以将选项提供给它git-buildpackage
,它会将其传递给:
gbp buildpackage -sa
(或者git-buildpackage -sa
也许是 Jessie 版本)。
您只需在第一次将给定上游版本上传到存储库时执行此操作。如果版本“显然”是新的上游(-1 或 -0.1),则dpkg-genchanges
自行计算)。