Bug 2100579
| Summary: | Please add `%{?distsuffix}` to `%dist` definition in /usr/lib/rpm/macros.d/macros.dist | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Maxwell G <maxwell> |
| Component: | redhat-release | Assignee: | Stephen Gallagher <sgallagh> |
| Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | CentOS Stream | CC: | bstinson, jwboyer, kevin, lisas, pzatko, sgallagh |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | redhat-release-9.1-1.8.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-11-15 10:49:19 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Maxwell G
2022-06-23 18:36:52 UTC
I don't necessarily see any trouble with adding this, but is the koji restriction the one that @kfenzi mentioned in the EPEL ticket? You're allowed to set macros in rpm.macros.dist on the koji tags, in fact we make heavy use of this in the CentOS Stream and RHEL buildsystems: https://kojihub.stream.rdu2.redhat.com/koji/taginfo?tagID=5 If we update this in centos/redhat-release we'll need to update our buildsystems as well. > https://kojihub.stream.rdu2.redhat.com/koji/taginfo?tagID=5 I believe https://kojihub.stream.centos.org/koji/taginfo?tagID=5 is the publicly accessible version. So, I was going from the koji docs: ``` This feature is best used for macros with simple values that need to be managed by tag administrators. The canonical example is managing the ``%dist`` macro, but other simple macros would also make sense. We do not recommend setting complicated macros in this way. E.g. macros that contain complex expansions, or those that are central to the rpmbuild process. ``` But I suppose we can just do that if it's worked ok for you... or could ask the koji developers how likely this is to break... FYI, I tend to not use my work email/bugzilla account for bugzilla if possible. :) Even if it is possible to set this in Koji, I think adding `%{?distsuffix}` is a better, simpler, less error prone solution. And, if the `%dist` definition ever changes in centos/redhat-release, we wouldn't have to worry about syncing it to multiple places.
> If we update this in centos/redhat-release we'll need to update our buildsystems as well.
Well, it still should work for the time being, as long as package maintainers don't use this new, undocumented macro in their packages in an already released RHEL version...
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (redhat-release bug fix and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2022:8264 |