Bug 56833

Summary: flag '--macros' does not work
Product: [Retired] Red Hat Linux Reporter: Matthew R. MacIntyre <matt>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED DEFERRED QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 7.2CC: matt
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-11-28 16:39:09 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 Matthew R. MacIntyre 2001-11-28 16:39:03 UTC
Description of Problem:

The --macros flag does not seem to work with RPM version 4.0.3, included
with Red Hat Linux 7.2.


Version-Release number of selected component (if applicable):
rpm-4.0.3-1.03


How Reproducible:

[matt@granger tmp]$ cat /tmp/rpmmacros 
%vendor Silly Company
[matt@granger tmp]$ rpm --macros=/tmp/rpmmacros --eval %vendor
%vendor
[matt@granger tmp]$ rpm --macros=/tmp/rpmmacros --eval %_vendor
redhat
[matt@granger tmp]$ 


Steps to Reproduce:
1.  Create a macros file to use
2.  run rpm --macros=/path/to/yourfile --eval %yourmacro


Actual Results:
%vendor
Expected Results:
Silly Company


Additional Information:
	
If I make a symlink from this created file to ~/.rpmmacros, the output is
as expected.

Comment 1 Jeff Johnson 2001-12-02 11:13:35 UTC
Yup. Instead create a rpmrc file
	include: /usr/lib/rpm/rpmrc
	macrofiles: your_colon_seperated_macro_files_here
and invoke with --rcfile <path_to_your_rpmrc_file>