Bug 1297132
| Summary: | RFE: Use the %__erlang_provides macro in the spec file | ||
|---|---|---|---|
| Product: | [Fedora] Fedora | Reporter: | Randy Barlow <rbarlow> |
| Component: | erlang | Assignee: | Peter Lemenkov <lemenkov> |
| Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
| Severity: | low | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | rawhide | CC: | erlang, jeckersb, jeremy, lemenkov, rhbugs, s |
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | All | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | erlang-27.3.4.19-3.fc46 erlang-27.3.4.19-3.fc45 | Doc Type: | Bug Fix |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2026-11-03 08:51:23 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
Randy Barlow
2016-01-09 17:21:04 UTC
Initially erlang-rpm-macros was written for a very outdated RPM version (can't remember what was used in 2009), and it contains a lot of ugly workarounds and shortcomings. Fortunately RPM evolved significantly so a lot of these ugly things should just be trashed (which I did already, actually). I;ve added a lot of fun stuff (automatic dependency picker), so starting from the next erlang-rpm-macros version we should really start using it. Hey Peter! I've enjoyed the new automatic dependency system you've developed. I'm happy to close this bug if you are. Thanks! (In reply to Randy Barlow from comment #2) > Hey Peter! I've enjoyed the new automatic dependency system you've > developed. I'm happy to close this bug if you are. Thanks! We'd better keep it for a while since there is one missing piece - Erlang/OTP itself which doesn't use these macros (yet). FEDORA-2026-3f564e76d3 (erlang-27.3.4.19-3.fc46) has been submitted as an update to Fedora 46. https://bodhi.fedoraproject.org/updates/FEDORA-2026-3f564e76d3 FEDORA-2026-3f564e76d3 (erlang-27.3.4.19-3.fc46) has been pushed to the Fedora 46 stable repository. If problem still persists, please make note of it in this bug report. Fixed in erlang-27.3.4.19-3.fc46 and erlang-27.3.4.19-3.fc45. This was the last missing piece from comment #3: Erlang/OTP itself now generates its dependencies too. The Requires of the erlang-* subpackages on each other are no longer maintained by hand. A dependency generator shipped with the spec file (otp-find-requires.py) reads the BEAM files of every subpackage at build time, and for each exported function of another OTP application that they call it adds a requirement on that application's subpackage, e.g. erlang-debugger: erlang-erts, erlang-kernel, erlang-stdlib, erlang-wx (all (x86-64) = 27.3.4.19-3) Only static calls are followed. Calls made through apply/rpc are optional by design in OTP and don't become requirements. The generated requires of all 38 subpackages were checked against the previous build. Packages built with the rebar3 build system get their Erlang requires and the new erlang(APP) = VERSION provides from erlang-rpm-macros. |