Red Hat Bugzilla – Bug 24848
rpm - RFE - produce list of packages written when building
Last modified: 2007-04-18 12:30:52 EDT
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
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
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
Use "rpm -q --specfile" against the .spec file.
"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.
Ah, I see. That *is* different.
Closing bugs on older, no longer supported, releases. Apologies for any lack of
For RPM issues, please try a current release such as Fedora Core 4; if bugs
persist, please open a new issue.