Ubuntu 下使用 rpmbuild 构建
我需要在 Ubuntu 10.4 下使用补丁构建 yum(原因是我需要一个支持我的虚拟服务器实例的 chroot 的 yum),
因为 ubuntu 的 yum src 不可用(第 3 方存储库),所以我从官方存储库下载了源代码,修补 linux-vserver。
然而,当我尝试用它构建它时,
rpmbuild -ba yum.spec
它失败了
error: Failed build dependencies:
python is needed by yum-3.2.22-0.src
gettext is needed by yum-3.2.22-0.src
intltool is needed by yum-3.2.22-0.src
,现在我已经安装了所有这些,我不知道如何解决这个问题,因为我不会每天重建我的东西。
问候, 五、
I need to build yum with a patch under Ubuntu 10.4 (reason being that i need a yum with chroot support for my vserver instance)
Since yum src for ubuntu where not avaliable (3rd party repos) i downloaded the source off the official repos and the patch off the linux-vserver.
However, when i try to build it with
rpmbuild -ba yum.spec
It fails with
error: Failed build dependencies:
python is needed by yum-3.2.22-0.src
gettext is needed by yum-3.2.22-0.src
intltool is needed by yum-3.2.22-0.src
Now i have all of these installed and i have no idea how to resolve this since i don't go rebuilding my stuff everyday.
Regards,
V.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题是 rpmbuild 试图使用 RPM 自己的已安装软件包数据库来解决依赖关系 - 这与 apt-get 的数据库不同。 apt-get 知道这些东西已安装,但 rpm 不知道。
既然您确定已经安装了这些东西,我建议编辑 yum.spec 并将它们从 BuildRequires 行中删除。
The problem is that rpmbuild is trying to resolve the dependencies using RPM's own database of installed packages - which is not the same thing as apt-get's database. apt-get knows those things are installed, but rpm doesn't.
Since you're sure you have these things installed, I'd suggest editing yum.spec and removing them from the BuildRequires line.
解决方案是将正确的 deb-src 存储库输入到您的 yum 列表中,使用 apt-get source yum 下载源代码并应用补丁。最后使用 dpkg-buildpackage 构建包。
The solution is to enter the right deb-src repos to your yum list, download the source with apt-get source yum and apply the patch. Finally build the package with dpkg-buildpackage.