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.

Bug 2008544

Summary: redhat-rpm-config does not detect compressed kernel modules
Product: Red Hat Enterprise Linux 9 Reporter: Peter Georg <peter.georg>
Component: redhat-rpm-configAssignee: Florian Festi <ffesti>
Status: CLOSED ERRATA QA Contact: Eva Mrakova <emrakova>
Severity: unspecified Docs Contact: Mariya Pershina <mpershin>
Priority: medium    
Version: CentOS StreamCC: bstinson, fweimer, jwboyer, mbanas, mdomonko, mpershin, pmatilai
Target Milestone: rcKeywords: AutoVerified, Triaged
Target Release: ---Flags: pm-rhel: mirror+
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: redhat-rpm-config-195-1.el9 Doc Type: No Doc Update
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2022-11-15 10:27:12 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: 2008548    
Attachments:
Description Flags
Proposed patch to detect compressed kernel modules none

Description Peter Georg 2021-09-28 14:12:58 UTC
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.

Comment 1 Panu Matilainen 2021-09-29 09:00:37 UTC
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.

Comment 2 Peter Georg 2021-09-29 14:55:14 UTC
(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.

Comment 13 errata-xmlrpc 2022-11-15 10:27:12 UTC
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