Bug 74949
| Summary: | %foo substitutions occur in .spec file comments; multiline %foo breaks out of a comment | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | D. Hugh Redelmeier <hugh> |
| Component: | redhat-rpm-config | Assignee: | Elliot Lee <sopwith> |
| Status: | CLOSED NOTABUG | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 8.0 | CC: | hugh |
| 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: | 2003-01-13 19:17:41 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
D. Hugh Redelmeier
2002-10-03 00:40:34 UTC
This WORKSFORME. However, watchout for redhat-rpm-config, which, if installed, may be overloading %build. Yes %foo tokens are expanded everywhere, including comments and within single and double quoted strings. My problem was that %build was expanded inside a comment, and expanded to a multi-line thing, so it "broke out" of the comment. This is a really bad/surprising feature. I guess I should read the documentation. Oh, there is none that is current. Oh well :-) This needs to be documented or fixed. It is as well documented as any other part of RPM (as in, not really at all). Macros have to be expanded everywhere in order for many aspects of spec files to work, so this can't really be changed (rpm has no concept of comment lines at macro expansion time). |