Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 2835

Summary: New rpm doesn't like old /etc/rpmrc
Product: [Retired] Red Hat Linux Reporter: deane
Component: rpmAssignee: Jay Turner <jturner>
Severity: medium Docs Contact:
Priority: medium    
Version: 6.0CC: srevivo
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-05-15 15:01:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description deane 1999-05-15 05:57:23 UTC
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 15:01:59 UTC
Rpm 3.0 does attempt to convert old syntax in /etc/rpmrc into new
syntax in /etc/rpm/macros by running /usr/lib/rpm/
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)