Bug 3233
| Summary: | rpm-3.0.1 macro name restriction is ridiculous | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | benedict |
| Component: | rpm | Assignee: | Jay Turner <jturner> |
| Status: | CLOSED WONTFIX | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | medium | ||
| Version: | 6.0 | CC: | srevivo |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 1999-06-03 10:20:07 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: | |||
One and two character macro names are reserved for the macro implementation itself. Performing the check on length rather than on a reserved keyword table permits a robust implementation for both forward and backward compatibility with different versions of rpm. Do you have specific suggestions and/or patches for improved error messages? Please reopen this bug if so. |
In lib/macro.c:450 I read: /* Names must start with alphabetic or _ and be at least 3 chars */ Now, this is ridiculous - I used to do %define CC gcc [...snip...] %define EXTRA_BUILD CC='%{CC} -g' CFLAGS='blabla' which is no longer legal ... And the error message doesn't give any hint as to why.