Bug 2002887
| Summary: | kmod package build macros are broken (cannot build OpenZFS) | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 9 | Reporter: | Neal Gompa <ngompa13> |
| Component: | kernel-srpm-macros | Assignee: | Eugene Syromiatnikov <esyr> |
| Status: | CLOSED ERRATA | QA Contact: | Ziqian SUN (Zamir) <zsun> |
| Severity: | urgent | Docs Contact: | |
| Priority: | urgent | ||
| Version: | CentOS Stream | CC: | bstinson, carl, daxelrod, dhoward, hkrzesin, jwboyer, matt, onatalen, skozina, tgummels |
| Target Milestone: | rc | Keywords: | Triaged |
| Target Release: | --- | Flags: | pm-rhel:
mirror+
|
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | kernel-srpm-macros-1.0-10.el9 | Doc Type: | If docs needed, set a value |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2022-05-17 13:05:24 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: | 1975927 | ||
| Bug Blocks: | |||
|
Description
Neal Gompa
2021-09-09 22:34:09 UTC
I've determined that the problem is that somehow the %kernel_version macro is being defined incorrectly: https://gitlab.com/redhat/centos-stream/rpms/kernel-srpm-macros/-/blob/2625834549b16a87399be350c03d3874cd1c5135/macros.kmp#L19 When I use a local redefinition of %kernel_version, the options are correctly passed and it attempts to build. The local definition I put in my spec: > %define kernel_version %(rpm -q --qf '%%{VERSION}-%%{RELEASE}' `rpm -q kernel-devel | /usr/lib/rpm/redhat/rpmsort -r | head -n 1` | head -n 1) The build still fails, but it gets past the original issue. I think I've got a fix for this proposed: https://gitlab.com/redhat/centos-stream/rpms/kernel-srpm-macros/-/merge_requests/4 Nope, it was more severe than I thought, and it looks like there were fixes done in RHEL 8 that were never synced into Fedora, so I'm updating the MR accordingly. I've also synced the changes to Fedora: https://src.fedoraproject.org/rpms/kernel-srpm-macros/pull-request/4 (In reply to Neal Gompa from comment #2) > I think I've got a fix for this proposed: > https://gitlab.com/redhat/centos-stream/rpms/kernel-srpm-macros/-/merge_requests/4 I can confirm this works with commit b6bcc92b7f6b2a4596a59a59481d0ee8dadd6caa from my OpenZFS packaging repo. I needed to upgrade to ZFS 2.1.1 to make it work with Linux 5.14 after including the updated kernel-srpm-macros and kernel-rpm-macros packages in my local buildroot. Is there any progress on this yet? I haven't seen anything happen with my merge request since I proposed it... 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 (new packages: kernel-srpm-macros), 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/RHEA-2022:2452 |