Bug 42475

Summary: rpm --rebuild with multiple files checks build dependancies for only one package at a time
Product: [Retired] Red Hat Linux Reporter: Gregory Leblanc <gleblanc>
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-27 18:24:57 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 Gregory Leblanc 2001-05-27 18:24:54 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux 2.2.16-22 i586; en-US; 0.8.1)
Gecko/20010422

Description of problem:
When I issue a command like 'rpm --rebuild GConf-1.0.1-0.1.src.rpm
gdm-2.2.1-0.1.src.rpm' in an attempt to rebuild both of those packages, rpm
checks for BuildRequires dependancies.  However, it checks these on only
the first package, not on all packages listed.  This means that I can't
ensure that all dependancies are met before any of the builds start.  

How reproducible:
Always

Steps to Reproduce:
1. Issue a command to rebuild 2 or more SRPMs where multiple packages have
un-met build time dependancies
2. Install packages to meet build-time dependancies that are listed at the
failure of the first step
3. re-issue first command, it should complete the build of the first set of
binary rpms, but fail when it gets to the second, because it's build-time
dependancies aren't met.
	

Actual Results:  RPM test/lists only the un-met build-time dependancies of
the first package on the command line.

Expected Results:  RPM should list the un-met build-time dependancies of
all packages listed on the command line.

Comment 1 Jeff Johnson 2001-05-28 17:51:38 UTC
Try
    for i in GConf-1.0.1-0.1.src.rpm gdm-2.2.1-0.1.src.rpm
    do
	rpm --rebuild $i
    done
as there's much more (like re-ordering package builds using build dependencies)
that is more important to do with build dependencies before attempting to fix
this
problem. That's gonna take a while ...