Note: This bug is displayed in read-only format because
the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Created attachment 1827049[details]
Proposed patch to detect compressed kernel modules
Description of problem:
Both `find-requires` and `find-provides` scripts only detect files with extension .ko as kernel modules. I.e. compressed kernel modules are not detected as modules.
Version-Release number of selected component (if applicable):
188-1
How reproducible:
Package a compressed kernel module
Steps to Reproduce:
1.
2.
3.
Actual results:
kmod specific find requires/provides scripts are not being run.
Expected results:
kmod specific find requires/provides scripts are being run to detect package Requires/Provides.
Additional info:
A proposed patch has been attached.
The real bug is that there's find-* scripts are still there at all. They are 10+ years obsolete and nothing at all should be using them for anything in equally long time, but the kernel module business hasn't gotten updated to the modern mechanisms.
(In reply to Panu Matilainen from comment #1)
> The real bug is that there's find-* scripts are still there at all. They are
> 10+ years obsolete and nothing at all should be using them for anything in
> equally long time, but the kernel module business hasn't gotten updated to
> the modern mechanisms.
I didn't know which way Red Hat wants to go with kernel modules for el9. Judging by the only kernel module available for c9s (https://gitlab.com/redhat/centos-stream/rpms/kmod-kvdo) it looked to me like the way forward is to stick with the obsolete/deprecated scripts.
I do agree that it would be better to have the kernel module business updated to the modern mechanisms and finally ditch these old scripts.
This stuff is only of low interest for Fedora, but relevant for EL. Hence it might be a good timing to update it now before EL 9.0 is released? What's missing in the modern mechanisms to support kernel modules? Mainly what is currently provided by find-requires/provides.ksyms?
Please let me know how I shall proceed, especially as this decision might make other bug reports obsolete. I'm happy to assist in any way.
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-2022:8149
Created attachment 1827049 [details] Proposed patch to detect compressed kernel modules Description of problem: Both `find-requires` and `find-provides` scripts only detect files with extension .ko as kernel modules. I.e. compressed kernel modules are not detected as modules. Version-Release number of selected component (if applicable): 188-1 How reproducible: Package a compressed kernel module Steps to Reproduce: 1. 2. 3. Actual results: kmod specific find requires/provides scripts are not being run. Expected results: kmod specific find requires/provides scripts are being run to detect package Requires/Provides. Additional info: A proposed patch has been attached.