Bug 1187086

Summary: yum-builddep not properly detecting build dependencies
Product: Red Hat Enterprise Linux 7 Reporter: Karel Srot <ksrot>
Component: yum-utilsAssignee: Valentina Mukhamedzhanova <vmukhame>
Status: CLOSED DUPLICATE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: medium    
Version: 7.1CC: vmukhame
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-18 10:31:12 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Karel Srot 2015-01-29 10:27:18 UTC
Description of problem:

Several times I have observed that yum-builddep is not installing proper build dependencies, either dependencies for wrong arch are included or not all dependencies are installed. See two examples below.

yum-3.4.3-125.el7.noarch
yum-utils-1.1.31-29.el7.noarch
rpm-build-4.11.1-25.el7.x86_64


# yum-builddep -y rpm-4.11.1-25.el7.src.rpm
Loaded plugins: product-id
Getting requirements for rpm-4.11.1-25.el7.src
 --> libdb-devel-5.3.21-17.el7_0.1.x86_64
 --> Already installed : redhat-rpm-config-9.1.0-68.el7.noarch
 --> Already installed : gawk-4.0.2-4.el7.x86_64
 --> binutils-devel-2.23.52.0.1-30.el7.x86_64
Error: No Package found for bzip2-devel(ppc-32) >= 0.9.0c-2
Error: No Package found for elfutils-devel(ppc-32) >= 0.112
Error: No Package found for elfutils-libelf-devel(ppc-32)
Error: No Package found for file-devel(ppc-32)
Error: No Package found for gettext-devel(ppc-32)
Error: No Package found for libacl-devel(ppc-32)
Error: No Package found for libcap-devel(ppc-32)
Error: No Package found for libdb-devel(ppc-32)
Error: No Package found for libselinux-devel(ppc-32)
Error: No Package found for libsemanage-devel(ppc-32)
Error: No Package found for lua-devel(ppc-32) >= 5.1
Error: No Package found for ncurses-devel(ppc-32)
Error: No Package found for nss-devel(ppc-32)
Error: No Package found for nss-softokn-freebl-devel(ppc-32)
Error: No Package found for popt-devel(ppc-32) >= 1.10.2
Error: No Package found for python-devel(ppc-32) >= 2.6
Error: No Package found for readline-devel(ppc-32)
Error: No Package found for xz-devel(ppc-32) >= 4.999.8
Error: No Package found for zlib-devel(ppc-32)

OR

# yum-builddep -y curl-7.29.0-19.el7.src.rpm
Loaded plugins: product-id
Getting requirements for curl-7.29.0-19.el7.src
...
...
Installed:
  groff.x86_64 0:1.22.2-8.el7         krb5-devel.x86_64 0:1.12.2-13.el7      libidn-devel.x86_64 0:1.28-3.el7   libssh2-devel.x86_64 0:1.4.3-8.el7  
  nss-devel.x86_64 0:3.16.2.3-5.el7   openldap-devel.x86_64 0:2.4.39-6.el7   stunnel.x86_64 0:4.56-4.el7        zlib-devel.x86_64 0:1.2.7-13.el7    

Dependency Installed:
  cyrus-sasl.x86_64 0:2.1.26-17.el7                     cyrus-sasl-devel.x86_64 0:2.1.26-17.el7      keyutils-libs-devel.x86_64 0:1.5.8-3.el7      
  libcom_err-devel.x86_64 0:1.42.9-6.el7                libselinux-devel.x86_64 0:2.2.2-6.el7        libsepol-devel.x86_64 0:2.1.9-3.el7           
  libverto-devel.x86_64 0:0.2.5-4.el7                   nspr-devel.x86_64 0:4.10.6-3.el7             nss-softokn-devel.x86_64 0:3.16.2.3-7.el7     
  nss-softokn-freebl-devel.x86_64 0:3.16.2.3-7.el7      nss-util-devel.x86_64 0:3.16.2.3-1.el7       openssl-devel.x86_64 1:1.0.1e-42.el7          
  pcre-devel.x86_64 0:8.32-14.el7                      

Complete!

# rpmbuild --clean --rebuild curl-7.29.0-19.el7.src.rpm
...
...
warning: group mockbuild does not exist - using root
error: Failed build dependencies:
	valgrind is needed by curl-7.29.0-19.el7.x86_64

Comment 1 Valentina Mukhamedzhanova 2015-04-27 10:42:27 UTC
Please note that the first issue had already been reported in https://bugzilla.redhat.com/show_bug.cgi?id=1131164.

Comment 4 Karel Srot 2015-12-15 12:34:06 UTC
Could be a duplicate of bug 1000180

Comment 5 Valentina Mukhamedzhanova 2016-02-18 10:31:12 UTC

*** This bug has been marked as a duplicate of bug 1131164 ***