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.
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>