将修改或新增的文本文件添加到我的PPA软件包中非常简单:
步骤1:
第二步: 添加或修改包含更改的新文本文件
第三步 - 更新变更日志:
第六步 - 上传至Launchpad
然而,我现在需要将一个新的图标文件(一个.png文件)添加到现有的包中。
所以在第2步 - 只需复制到[foo-package]中
在第4步 - 我遇到了以下错误:
如果我尝试跳到第5步,我会得到以下额外的错误信息:
这样就可以构建源代码包,从而使得“步骤6”成为可能。
然而,这并不是真正的答案,因为我随后无法进行进一步的代码更改(“步骤2”),因为我仍然遇到相同的错误。
看起来我不能使用“dpkg-source --commit --source-option=--include-binaries”,因为这只会导致错误。
步骤1:
apt-get source [foo-package]
cd [foo-package]
第二步: 添加或修改包含更改的新文本文件
第三步 - 更新变更日志:
dch -i
第四步 - 创建一个补丁
dpkg-source --commit
步骤5 - 创建源代码包
debuild -S
第六步 - 上传至Launchpad
cd ..
dput [myppa]/[foo_source.changes]
然而,我现在需要将一个新的图标文件(一个.png文件)添加到现有的包中。
所以在第2步 - 只需复制到[foo-package]中
在第4步 - 我遇到了以下错误:
dpkg-source: error: cannot represent change to foo-package/foo-icon.png: binary file contents changed
dpkg-source: error: unrepresentable changes to source
如果我尝试跳到第5步,我会得到以下额外的错误信息:
dpkg-source: error: add foo-package/foo-icon.png in debian/source/include-binaries if you want to store the modified binary in the Debian tar-ball
...
dpkg-buildpackage -rfakeroot -d -us -uc -S failed
有没有办法将二进制图标文件添加到我现有的PPA软件包中?
更多信息
通过运行:
debuild -S --source-option=--include-binaries
这样就可以构建源代码包,从而使得“步骤6”成为可能。
然而,这并不是真正的答案,因为我随后无法进行进一步的代码更改(“步骤2”),因为我仍然遇到相同的错误。
看起来我不能使用“dpkg-source --commit --source-option=--include-binaries”,因为这只会导致错误。
dpkg-source --commit --source-option=--include-binaries
dpkg-source: warning: --source-option=--include-binaries is not a valid option for Dpkg::Source::Package::V3::quilt
dpkg-source: error: cannot represent change to foo-package/foo-icon.png: binary file contents changed
dpkg-source: error: unrepresentable changes to source