Bug 40163

Summary: /usr/lib/rpm/rpmrc: wrong location of per-system rpmrc
Product: [Retired] Red Hat Linux Reporter: Ville Skyttä <scop>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED RAWHIDE QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: low    
Version: 7.1   
Target Milestone: ---   
Target Release: ---   
Hardware: i386   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-05-11 08:24:08 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Ville Skyttä 2001-05-10 23:07:09 UTC
In rpm-4.0.2-8, the location of per-system rpmrc is said to be
/etc/rpm/rpmrc, however, adding stuff there won't be used. The comments
there should maybe be corrected to refer to /etc/rpmrc.

BTW, shouldn't the per-system rpmrc be in /etc/rpm/ instead of /etc/ ?

Comment 1 Jeff Johnson 2001-05-10 23:15:37 UTC
Where is the false claim /etc/rpm/rpmrc?

Yes, it *should* be /etc/rpm/rpmrc, but the original location was /etc/rpmrc.
Isn't legacy wonderful?

Comment 2 Ville Skyttä 2001-05-11 08:24:04 UTC
Whoops, forgot to put the location in the description, but as the summary says,
the claim is in the beginning of /usr/lib/rpm/rpmrc.

Comment 3 Jeff Johnson 2001-05-11 17:21:16 UTC
Fixed in rpm CVS, thanks for noticing.

Comment 4 Curtis Doty 2001-05-22 17:00:16 UTC
So I tested /etc/rpm/rpmrc to no avail. It looks like rpm-4.0.2-8 really only 
checks /etc/rpmrc but future versions will also check for /etc/rpm/rpmrc right?

Anyways, FYI, here's where both are referenced:

$ strings --print-file-name `rpm -ql rpm` 2>/dev/null |grep /etc/rpm/rpmrc 
/usr/lib/rpm/rpmrc: # should be added to /etc/rpm/rpmrc, while per-user 
configuration should

$ strings --print-file-name `rpm -ql rpm` 2>/dev/null |grep /etc/rpmrc
/bin/rpm: use <file> instead of /etc/rpmrc and $HOME/.rpmrc
/bin/rpm: /usr/lib/rpm/rpmrc:/etc/rpmrc:~/.rpmrc
/usr/lib/librpm.so.0: /usr/lib/rpm/rpmrc:/etc/rpmrc:~/.rpmrc
/usr/lib/librpm.so.0.0.0: /usr/lib/rpm/rpmrc:/etc/rpmrc:~/.rpmrc
/usr/lib/rpm/convertrpmrc.sh: # Convert per-system configuration in /etc/rpmrc 
to macros in /etc/rpm/macros.
/usr/lib/rpm/convertrpmrc.sh: [ -z "$RPMRC" ] && RPMRC=/etc/rpmrc
/usr/share/doc/rpm-4.0.2/CHANGES:       - convert per-system configuration 
in /etc/rpmrc to macros.
/usr/share/doc/rpm-4.0.2/CHANGES:         /etc/rpmrc
/usr/share/doc/rpm-4.0.2/CHANGES:       - removed /etc/rpmrc from standard 
distribution
/usr/share/doc/rpm-4.0.2/CHANGES:       - added arch_compat handling 
in /etc/rpmrc
/usr/share/doc/rpm-4.0.2/CHANGES:       - added build_arch to /etc/rpmrc
/usr/share/doc/rpm-4.0.2/macros:        In /etc/rpmrc and/or ~/.rpmrc you put

Comment 5 Jeff Johnson 2001-05-22 17:08:36 UTC
The comment only was changed, rpm, as always, reads from /etc/rpmrc. 'Twould be
more
logical to read from /etc/rpm/rpmrc, can't be helped.