为什么 yum-builddep 不安装所有依赖项?

为什么 yum-builddep 不安装所有依赖项?

适用于其他软件包的方法不适用于内核。为什么?

首先,同步:

[git@dioptase SRPMS]$ ssh root@localhost yum-builddep /home/git/rpmbuild/SRPMS/kernel-2.6.32-431.el6.src.rpm
Getting requirements for kernel-2.6.32-431.el6.src
 --> Already installed : module-init-tools-3.9-21.el6_4.x86_64
 --> Already installed : patch-2.6-6.el6.x86_64
 --> Already installed : bash-4.1.2-15.el6_4.x86_64
 --> Already installed : coreutils-8.4-31.el6.x86_64
 --> Already installed : 2:tar-1.23-11.el6.x86_64
 --> Already installed : bzip2-1.0.5-7.el6_0.x86_64
 --> Already installed : 1:findutils-4.4.2-6.el6.x86_64
 --> Already installed : gzip-1.3.12-19.el6_4.x86_64
 --> Already installed : m4-1.4.13-5.el6.x86_64
 --> Already installed : 4:perl-5.10.1-136.el6.x86_64
 --> Already installed : 1:make-3.81-20.el6.x86_64
 --> Already installed : diffutils-2.8.1-28.el6.x86_64
 --> Already installed : gawk-3.1.7-10.el6.x86_64
 --> Already installed : gcc-4.4.7-4.el6.x86_64
 --> Already installed : binutils-2.20.51.0.2-5.36.el6.x86_64
 --> Already installed : redhat-rpm-config-9.0.3-42.el6.noarch
 --> Already installed : net-tools-1.60-110.el6_2.x86_64
 --> Already installed : patchutils-0.3.1-3.1.el6.x86_64
 --> Already installed : rpm-build-4.8.0-37.el6.x86_64
 --> Already installed : xmlto-0.0.23-3.el6.x86_64
 --> Already installed : asciidoc-8.4.5-4.1.el6.noarch
 --> Already installed : gnupg2-2.0.14-6.el6_4.x86_64
 --> Already installed : python-2.6.6-51.el6.x86_64
 --> Already installed : hmaccalc-0.9.12-1.el6.x86_64
No uninstalled build requires

然后构建:

[git@dioptase SRPMS]$ rpmbuild --rebuild kernel-2.6.32-431.el6.src.rpm
Installing kernel-2.6.32-431.el6.src.rpm
warning: user mockbuild does not exist - using root
warning: group mockbuild does not exist - using root
error: Failed build dependencies:
        elfutils-libelf-devel is needed by kernel-2.6.32-431.el6.x86_64
        elfutils-devel is needed by kernel-2.6.32-431.el6.x86_64
        binutils-devel is needed by kernel-2.6.32-431.el6.x86_64
        newt-devel is needed by kernel-2.6.32-431.el6.x86_64
        python-devel is needed by kernel-2.6.32-431.el6.x86_64
        audit-libs-devel is needed by kernel-2.6.32-431.el6.x86_64

答案1

因为它们依赖于足弓。要么在 arch 上重建 .src.rpm。你关心的(源存储库中的那个是建立在随机支持的架构上),或者下载并解压 kernel.spec 上的 .src.rpm 和 yum-buildep。

相关内容