| Summary: | It's *NOT* possible to use %%-escaping to force lazy expansion of %global. | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Vít Ondruch <vondruch> |
| Component: | rpm | Assignee: | Panu Matilainen <pmatilai> |
| Status: | CLOSED NOTABUG | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | ffesti, jnovy, pmatilai |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2011-07-19 08:38:44 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
|
Description
Vít Ondruch
2011-07-18 14:18:36 UTC
The guideline explanation is a bit misleading or unclear at least.
%global is always expanded once at the time of "declaration", no %-escaping changes that. What I suppose the guideline comment means is that you can use
"%global foo %%{bar}" which will leave foo defined as literal "%{bar}", which will then have the effect of lazy expansion when you use %{foo}.
Thank you for explanation. That makes sense. Could you please manage to clarify the documentation (both places I liked above)? |