Bug 50197 - rpm --recompile creates binary rpm(s)
Summary: rpm --recompile creates binary rpm(s)
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm-build
Version: 7.1
Hardware: i386
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-07-27 23:42 UTC by Michael Schwendt
Modified: 2007-04-18 16:35 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2001-12-21 00:26:32 UTC

Attachments (Terms of Use)
patch suggestion (446 bytes, patch)
2001-12-21 00:25 UTC, Michael Schwendt
no flags Details | Diff

Description Michael Schwendt 2001-07-27 23:42:48 UTC
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).

How reproducible:

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).

Additional info:

[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.]

Comment 1 Jeff Johnson 2001-07-28 03:07:16 UTC
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.

Comment 2 Michael Schwendt 2001-07-28 10:37:29 UTC
That's the way I've used it for a long time.
*But* the docs don't say that:


    [...] 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.)

Comment 3 Jeff Johnson 2001-12-09 18:46:38 UTC
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.

Comment 4 Michael Schwendt 2001-12-09 19:36:53 UTC
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
rpm --recompile.

Comment 6 Jeff Johnson 2001-12-20 18:08:34 UTC
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
Installing /etc/inittab
error: /etc/inittab cannot be installed

Comment 7 Michael Schwendt 2001-12-21 00:25:58 UTC
Created attachment 41148 [details]
patch suggestion

Comment 8 Michael Schwendt 2001-12-22 02:34:02 UTC
Sorry, the most recent comments belong to bug #57519. Will move them.

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