Bug 24848 - rpm - RFE - produce list of packages written when building
Summary: rpm - RFE - produce list of packages written when building
Status: CLOSED UPSTREAM
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build
Version: 7.0
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-01-24 14:07 UTC by benedict
Modified: 2007-04-18 16:30 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 2005-09-29 21:40:54 UTC


Attachments (Terms of Use)

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.


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