Ubuntu 下使用 rpmbuild 构建

发布于 2024-10-21 12:30:09 字数 483 浏览 2 评论 0原文

我需要在 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

云朵有点甜 2024-10-28 12:30:09

问题是 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.

女皇必胜 2024-10-28 12:30:09

解决方案是将正确的 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.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文