Bug 766440 - yum-builddep doesn't check the return code from doUtilBuildTransaction ... mock failures
Summary: yum-builddep doesn't check the return code from doUtilBuildTransaction ... mo...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: yum-utils
Version: 6.0
Hardware: x86_64
OS: Linux
medium
medium
Target Milestone: rc
: ---
Assignee: James Antill
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-12-12 03:44 UTC by Clint Savage
Modified: 2014-01-21 06:24 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-03-06 11:24:08 UTC
Target Upstream Version:


Attachments (Terms of Use)

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.


Note You need to log in before you can comment on or make changes to this bug.