在Ubuntu下使用rpmbuild进行构建 [英] Building with rpmbuild under Ubuntu

查看:1220
本文介绍了在Ubuntu下使用rpmbuild进行构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要在Ubuntu 10.4下用补丁构建yum(原因是我需要对我的vserver实例使用chroot支持的yum)



因为ubuntu的yum src在不可用的地方(第三方存储库),我从官方存储库下载了源代码,并从linux-vserver上下载了补丁。



但是,当我尝试使用

  rpmbuild -ba yum.spec 

失败,并显示

 错误:构建依赖项失败:yum需要
python yum-3.2.22-0.src
-3.2.22-0.src
yum-3.2.22-0.src
需要intltool intltool $ c>

现在,我已经安装了所有这些软件,而且我不知道如何解决此问题,因为我不会每天重建我的东西。 p>

关于
V。

解决方案

在您的yum列表中输入正确的deb-src存储库,并使用apt-get source yum下载源。 d应用补丁。最后,使用dpkg-buildpackage构建该软件包。


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.

解决方案

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.

这篇关于在Ubuntu下使用rpmbuild进行构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆