Bug 2193406
| Summary: | redhat-rpm-config should require llvm | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Jesus Checa <jchecahi> |
| Component: | redhat-rpm-config | Assignee: | Nikita Popov <npopov> |
| Status: | CLOSED ERRATA | QA Contact: | Jesus Checa <jchecahi> |
| Severity: | unspecified | Docs Contact: | |
| Priority: | unspecified | ||
| Version: | 9.3 | CC: | codonell, fberat, fweimer, npopov, tstellar |
| Target Milestone: | rc | Keywords: | Bugfix, Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | redhat-rpm-config-201-1.el9 | Doc Type: | No Doc Update |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2023-11-07 08:29:31 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: | |||
| Bug Depends On: | |||
| Bug Blocks: | 2188418 | ||
| Deadline: | 2023-06-12 | ||
|
Description
Jesus Checa
2023-05-05 14:46:08 UTC
Doing this unconditionally is too invasive for the default buildroot. Requires: (llvm if clang) as in Fedora should work, though. Tested with redhat-rpm-config-201-1.el9. The llvm dependency is correctly handled now. From a system that has not clang installed, redhat-rpm-config only requires llvm-libs as dependency: ---------- [root@localhost ~]# dnf install redhat-rpm-config-201-1.el9.noarch.rpm --assumeno | grep llvm llvm-libs x86_64 16.0.1-1.el9 rhel-AppStream 44 M Operation aborted. ---------- After installing clang, it redhat-rpm-config-201-1.el9 correctly requires llvm, while redhat-rpm-config-200-1.el9 doesn't: ---------- [root@localhost ~]# dnf -q -y install clang Installed: clang-16.0.1-2.el9.x86_64 clang-libs-16.0.1-2.el9.x86_64 clang-resource-filesystem-16.0.1-2.el9.x86_64 compiler-rt-16.0.1-1.el9.x86_64 gcc-c++-11.3.1-4.4.el9.x86_64 gcc-toolset-12-gcc-12.2.1-7.4.el9.x86_64 gcc-toolset-12-gcc-c++-12.2.1-7.4.el9.x86_64 gcc-toolset-12-libstdc++-devel-12.2.1-7.4.el9.x86_64 libatomic-11.3.1-4.4.el9.x86_64 libomp-16.0.1-1.el9.x86_64 libomp-devel-16.0.1-1.el9.x86_64 libstdc++-devel-11.3.1-4.4.el9.x86_64 llvm-libs-16.0.1-1.el9.x86_64 [root@localhost ~]# dnf install redhat-rpm-config-201-1.el9.noarch.rpm --assumeno | grep llvm llvm x86_64 16.0.1-1.el9 rhel-AppStream 21 M Operation aborted. [root@localhost ~]# dnf install redhat-rpm-config-200-1.el9.noarch.rpm --assumeno | grep llvm Operation aborted. --------- The dependency works from clang's side as well. If one installs first redhat-rpm-config, and then clang, the latter will process the llvm dependency correctly: --------- [root@localhost ~]# dnf remove -y clang > /dev/null [root@localhost ~]# dnf install clang --assumeno | grep llvm llvm-libs x86_64 16.0.1-1.el9 rhel-AppStream 44 M [root@localhost ~]# dnf install redhat-rpm-config-201-1.el9.noarch.rpm -y > /dev/null [root@localhost ~]# dnf install clang --assumeno | grep llvm llvm x86_64 16.0.1-1.el9 rhel-AppStream 21 M Operation aborted. --------- Updated /CoreOS/redhat-rpm-config/Sanity/bz2022522-brp-llvm-compile-lto-elf testcase to build objects with lto so brp-llvm-compile-lto-elf needs to use llvm-strings. 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-rpm-config 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-2023:6389 |