From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.2) Gecko/20010628
Description of problem:
Contrary to the documentation (man rpm or rpm --help), option --recompile
creates binary rpm(s).
Steps to Reproduce:
1. rpm --recompile <sourcepkg.rpm>
2. watch-standard-output and check the RPMS/i386/ directory
Actual Results: Option --recompile created binary rpm(s).
Expected Results: Well, if the docs are to be believed, option --recompile
should not have created any binary rpms. Option --rebuild does that and
also the source rpm(s).
[This has come up on the Seawolf mailing-list where I mentioned that rpm
--recompile would create binary rpms only, but no source rpms. Someone
followed up that --recompile would not create any rpms at all. But since
I've been using --recompile to create binary rpms for some time, I had to
check the docs again and found this behaviour to be either a bug or
inconsistency at least.]
I have no clue what you are talking about. The option --recompile
creates *only* binary rpm's, but does *not* create another src.rpm.
That's the way it's always worked.
That's the way I've used it for a long time.
*But* the docs don't say that:
See "man rpm", section REBUILD AND RECOMPILE OPTIONS:
[...] In addition, --rebuild builds a new binary package. [...]
Should either read "... a new source package..." or should be dropped, because
--recompile builds a new binary package, too. Hence "no addition".
And from rpm --help:
--recompile <src_pkg> - like --rebuild, but don't build any package
Wrong. It does build a package. Just not a source package.
(Previous bug comment explains why this issue has come up.)
Hmmm, there appears only to be a doco problem
here, not a functional problem. Since the build
modes are now in a separate executable, and
the man page will be reworked in rpm-4.1,
I'm gonna mark this problem deferred.
Yes, it is a docu problem and most likely *the* reason why people everywhere use
(and suggest) rpm --rebuild, although they want just binary rpms and could use
Here're two users who can reproduce this bug:
I'm not saying that there isn't a bug, only that I cannot reproduce.
I need to reproduce this if you want me to fix:
bash$ rpm --recompile /etc/inittab
error: /etc/inittab cannot be installed
Created attachment 41148 [details]
Sorry, the most recent comments belong to bug #57519. Will move them.