When trying to build a kmod package for the kernel-debug variant, kmodtool generates a BuildRequires line that can't be satisfied:
$ rpmbuild -ba SPECS/redhat-example.spec
error: Failed build dependencies:
kernel-debug-devel-x86_64 = 2.6.18-160.el5 is needed by redhat-example-1.5-0.x86_64
$ rpm -q --provides kernel-debug-devel
kernel-debug-devel = 2.6.18-160.el5
$ rpm -q kernel-debug-devel
$ rpm -qf /usr/lib/rpm/redhat/kmodtool
To reproduce it, change the %kernel_module_package line from the redhat-example pacakage spec to:
%kernel_module_package default debug
The bug can be worked around by setting kmp_nobuildreqs=no when calling kmodtool (but this seems to be possible only if calling kmodtool explicitly instead of using the %kernel_module_package macro).
We don't support building driver updates for the "debug" kernel in RHEL5 as that variant didn't exist when RHEL5 was first created. Is this an issue for you? If so, we could consider a fix in RHEL6.
(In reply to comment #1)
> We don't support building driver updates for the "debug" kernel in RHEL5 as
> that variant didn't exist when RHEL5 was first created. Is this an issue for
> you? If so, we could consider a fix in RHEL6.
It's not a high-priority request, but it would be interesting to fix it on 5.5, to ease testing and debugging.
We are not considering updating this package in 5.5. Therefore, please request an update for 5.6 if you are still interested in having this fixed.
(In reply to comment #3)
> We are not considering updating this package in 5.5. Therefore, please request
> an update for 5.6 if you are still interested in having this fixed.
Isn't there a place where kmodtool lives while being developed "upstream"? I could just pull a new version for KVM if it had the feature included.
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.
I do not think this bug is deserve a fix for 5.11,
how about closing it with "WONTFIX" ?