Bug 2835 - New rpm doesn't like old /etc/rpmrc
New rpm doesn't like old /etc/rpmrc
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Jay Turner
Depends On:
  Show dependency treegraph
Reported: 1999-05-15 01:57 EDT by deane
Modified: 2015-01-07 18:37 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-05-15 11:01:21 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description deane 1999-05-15 01:57:23 EDT
When I upgraded from 5.2 to 6.0, every rpm command that I
issued suddenly complained about most of the contents of my
/etc/rpmrc file.

This file was originally set up in accordance with the
Maximum RPM book. Obviously the newer versions of rpm use a
radically different syntax. However, I could not find any
documentation, either on the disk or on the RedHat site,
which would describe the new rpmrc syntax. I could only find
information on the old, obsolete syntax. So the rpm upgrade
should either convert /etc/rpmrc automatically, or else it
should at least supply documentation on how to do so.
Comment 1 Jeff Johnson 1999-05-15 11:01:59 EDT
Rpm 3.0 does attempt to convert old syntax in /etc/rpmrc into new
syntax in /etc/rpm/macros by running /usr/lib/rpm/convertrpmrc.sh
during %post. The script does not remove the original /etc/rpmrc
entries however.

I hesitate to the syntax "radically different". All but a handful
of config variables go through the following transformation

	Old:	foo:	whatever
	New:	%_foo	whatever

The handful that do not undergo this transformation include (reasons
as given)
	optflags	valid in rpm 3.0 rpmrc
	provides	valid in rpm 3.0 rpmrc
	buildroot	macro version present in rpm 2.5.x
	distribution	macro version present in rpm 2.5.x
	packager	macro version present in rpm 2.5.x
	vendor		macro version present in rpm 2.5.x

(All the arch/os compatibility syntax remains in rpmrc)

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