Bug 129179
Summary: | rpmbuild --macros=filename does not read the specified file | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Bob Langford <langford> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED WORKSFORME | QA Contact: | Mike McLean <mikem> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 2 | CC: | bugzilla.redhat.com, nobody+pnasrat |
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: | 2004-08-05 13:00:40 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
Bob Langford
2004-08-04 19:49:51 UTC
Create an 2 line rpmrc file: include: /usr/lib/rpm/rpmrc macrofiles: /usr/lib/rpm/macros:...:/path/to/your/macros changing "..." and "/path/to/your" as appropriate. Invoke rpm using --rcfile /path/to/yout/rpmrc. This doesn't work now (rpm-build-4.8.0-27.el6.x86_64). The 'macrofiles:' line in the rpmrc file is being ignored. The '--macros=foo' command line option works, but replaces the predefined macro list. The '--showrc' command line option doesn't show macros even though they're working. I don't see any way to find the predefined macro list, so I used strace and cobbled together some files and glob patterns in order to generate a reasonable --macros=... command line parameter that lets me add my macro file to the end of the normal list of macro files. Thanks |