Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 766440

Summary: yum-builddep doesn't check the return code from doUtilBuildTransaction ... mock failures
Product: Red Hat Enterprise Linux 6 Reporter: Clint Savage <herlo1>
Component: yum-utilsAssignee: James Antill <james.antill>
Status: CLOSED CURRENTRELEASE QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: bochecha, ebenes, ksrot, zpavlas
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-03-06 11:24:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Clint Savage 2011-12-12 03:44:07 UTC
Description of problem:

Using koji and mock to build PyQt4-4.6.2-8. i686 build fails to pull in kernel dependency properly. x86_64 build appears to work properly. This appears to be specific to yum for el6

Version-Release number of selected component (if applicable):

$ rpm -q yum
yum-3.2.29-22.el6.noarch

How reproducible:

100% reproducible on el6.0

Steps to Reproduce:
1. koji build <dist> git://<git_url>/<pkg>.git#HEAD launches a koji build, which in turn launches mock
2. SRPM builds properly and launches arch-specific builds
3. i686 build fails with depsolve errors described below
  
Actual results:

ERROR with rpm_check_debug vs depsolve:
DEBUG util.py:257:  kernel >= 2.6.29.1-52.fc11 is needed by libdrm-2.4.20-2.gl6.i686

Detailed information can be found @ 
http://koji.gooselinux.org/koji/taskinfo?taskID=32099

Expected results:

Successful depsolve.

Additional info:

Comment 2 James Antill 2011-12-20 20:12:47 UTC
 This seems to work here, my guess is that it's this change to yum-builddep:

--- yum-utils-1.1.30/yum-builddep.py	2011-09-01 14:58:03.099739374 -0400
+++ /usr/bin/yum-builddep	2011-08-13 10:23:17.000000000 -0400
@@ -99,7 +98,9 @@
             sys.exit(1)
 
         if hasattr(self, 'doUtilBuildTransaction'):
-            self.doUtilBuildTransaction()
+            errc = self.doUtilBuildTransaction()
+            if errc:
+                sys.exit(errc)
         else:
             try:
                 self.buildTransaction()

Comment 8 Karel Srot 2012-03-06 08:54:46 UTC
Hi Clint,
this should be already fixed in yum-utils-1.1.30-10.el6 from RHEL-6.2.
Can you confirm that?

Comment 9 Zdeněk Pavlas 2012-03-06 11:24:08 UTC
Checked that BZ-709043-check-doutilbuildtransaction.patch has fixed all 5 callers of doUtilBuildTransaction.