Bug 32419

Summary: can't set macrofiles: ./rpmmacros in rpmrc
Product: [Retired] Red Hat Linux Reporter: Eric Sandeen <sandeen>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
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-03-20 19:22:35 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 Eric Sandeen 2001-03-20 19:02:21 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.2-XFS i686)


Attempting to use an rpmmacros file in the current directory won't work by
appending :/.rpmmacros to the macrofiles: line in rpmrc

appending :rpmmacros DOES work

Reproducible: Always
Steps to Reproduce:
1. Edit /usr/lib/rpm/rpmrc to add :/.rpmmacros to the macrofiles: line
2. Run rpm, see if tags in ./rpmmacros are honored
3. Edit /usr/lib/rpm/rpmrc to add :rpmmacros to the macrofiles: line
4. Re-Run rpm, see if tags in ./rpmmacros are honored


Actual Results:  tags in ./rpmmacros are not honored in step 2 above, they
are honored in step 4 above

Expected Results:  I would expect :./rpmmacros to work

Apparently rpm is unable to parse :./rpmmacros, but can parse :rpmmacros in
the macrofiles: line of rpmrc

Comment 1 Eric Sandeen 2001-03-20 19:22:30 UTC
This seems to have broken between rpm-4.0 and rpm-4.0.2

Comment 2 Jeff Johnson 2001-03-20 20:38:23 UTC
Yup.

The files included in the colon separated macrofiles list are now individually
canonicalized, as
some other deviant path (in bugzilla if you care) broke if  the entire
macrofiles string itself
was canonicalized.