Bug 24848

Summary: rpm - RFE - produce list of packages written when building
Product: [Retired] Red Hat Linux Reporter: benedict
Component: rpm-buildAssignee: Jeff Johnson <jbj>
Status: CLOSED UPSTREAM QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 7.0   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-09-29 21:40:54 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 benedict 2001-01-24 14:07:33 UTC
when rpm builds packages from a spec-file, there is no easy way to know,
what package files
it will actually write, except to capture the output and look for lines
beginning with

Wrote: xxxx-y.z-d.rpm

It would be very handy to have this output by itself in a separate file, 
i.e. a TOC file which lists the paths of all packages produced by the
build.

You can use such a file as a makefile target, i.e. like this:

package.TOC :  package.spec
	rpm -b $(^) --toc=$(@)

[I have asked for this since the days of rpm-2.x - so now it's in bugzilla
;-) ]

Comment 1 Nalin Dahyabhai 2001-01-25 01:26:29 UTC
Use "rpm -q --specfile" against the .spec file.

Comment 2 benedict 2001-01-25 11:20:24 UTC
"rpm -q --specfile" against the .spec file is not what I'm after.  I don't need
the base file names of the
packages which may or may not be produced when building from a specfile. 

I need the fully qualified names of the packages which were actually written
when the build was performed.

If the build fails (e.g. because a file in the %files list cannot be found),
then the list should be empty.
If a %files is conditional on a specific os, the package name should only occur
in the TOC file if the
package was actually written.

All I ask is a file which collects the output written by this line of code:

build/pack.c:552:     rpmMessage(RPMMESS_NORMAL, _("Wrote: %s\n"), fileName);

on a separate file rather than mixed in with all the other build output.

Comment 3 Nalin Dahyabhai 2001-01-25 20:19:01 UTC
Ah, I see.  That *is* different.

Comment 4 Bill Nottingham 2005-09-29 21:40:54 UTC
Closing bugs on older, no longer supported, releases. Apologies for any lack of
response.

For RPM issues, please try a current release such as Fedora Core 4; if bugs
persist, please open a new issue.