Bug 32419 - can't set macrofiles: ./rpmmacros in rpmrc
Summary: can't set macrofiles: ./rpmmacros in rpmrc
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm   
(Show other bugs)
Version: 7.1
Hardware: i386 Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-03-20 19:02 UTC by Eric Sandeen
Modified: 2007-04-18 16:32 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2001-03-20 19:22:35 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

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

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.

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