Bug 1761361 - kmodtool from EPEL 8 on CentOS 8 needs kernel-abi-whitelists
Summary: kmodtool from EPEL 8 on CentOS 8 needs kernel-abi-whitelists
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora EPEL
Classification: Fedora
Component: kmodtool
Version: epel8
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Nicolas Chauvet (kwizart)
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2019-10-14 09:12 UTC by Alexander Korsunsky
Modified: 2021-12-20 16:51 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2021-12-20 16:51:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Alexander Korsunsky 2019-10-14 09:12:54 UTC
When akmods builds `akmod-nvidia` on CentOS 8 with EPEL 8 (akmods-0.5.6-22.el8  and kmodtool-1-36.el8 from koji), the build fails:


2019/10/11 15:11:51 akmods: Building RPM using the command '/sbin/akmodsbuild --kernels 4.18.0-80.7.1.el8_0.x86_64 /usr/src/akmods/nvidia-kmod.latest'
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
warning: user mockbuild does not exist - using root
warning: group mock does not exist - using root
error: Failed build dependencies:
	kernel-abi-whitelists is needed by nvidia-kmod-3:430.40-1.el8.x86_64


If the kernel-abi-whitelists package is installed, the build succeeds.

Comment 1 Sergio Basto 2019-10-18 14:35:07 UTC
Leigh, is this specific for nvidia ? I don't remember need that for VirtualBox , neither have a clue about what is the propose of kernel-abi-whitelists .
We got excludekernel-filter.txt file in VirtualBox-kmod  ... 

Best regards,

Comment 2 Sergio Basto 2019-10-22 16:41:14 UTC
From commit [1] in line 203 [2] is not clear if we need kernel-abi-whitelists , and for what ... ? .
I tested the new akmods and kmodtool in Centos 7 vm and I worked correctly . 

[1]
https://src.fedoraproject.org/rpms/kmodtool/c/0e36b508bfd607d5c076c86b56ba6e0698225899?branch=master

[2]
+ BuildRequires:    kernel-devel = ${kernel_uname_r_wo_arch} redhat-rpm-config kernel-abi-whitelists

Comment 3 nicolas.vieville 2019-10-22 18:17:41 UTC
Hello,

(In reply to Sergio Monteiro Basto from comment #2)
> From commit [1] in line 203 [2] is not clear if we need
> kernel-abi-whitelists , and for what ... ? .

At the time of this addition, I used as one of the sources of 
inspiration this page:

https://elrepo.org/tiki/wl-kmod

and then with:

rpm -qp --requires http://elrepo.org/linux/elrepo/el7/SRPMS/wl-kmod-6_30_223_271-5.el7.elrepo.nosrc.rpm

it sounds to me that kernel-abi-whitelists had to be included in the
BuildRequires list, maybe this was a mistake.
Probably this BuildRequires in line 203 can be rewritten, but tests are 
needed, as this:

+ BuildRequires:    kernel-devel = ${kernel_uname_r_wo_arch} redhat-rpm-config

Comment about this subject are welcome.

Cordially,


-- 
NVieville

Comment 4 leigh scott 2019-10-22 18:26:25 UTC
(In reply to Sergio Monteiro Basto from comment #1)
> Leigh, is this specific for nvidia ? I don't remember need that for
> VirtualBox , neither have a clue about what is the propose of
> kernel-abi-whitelists .

It's not required for nvidia.

> We got excludekernel-filter.txt file in VirtualBox-kmod  ... 
> 
> Best regards,

Comment 5 leigh scott 2019-10-22 18:35:59 UTC
(In reply to nicolas.vieville from comment #3)
> Hello,
> 
> (In reply to Sergio Monteiro Basto from comment #2)
> > From commit [1] in line 203 [2] is not clear if we need
> > kernel-abi-whitelists , and for what ... ? .
> 
> At the time of this addition, I used as one of the sources of 
> inspiration this page:
> 
> https://elrepo.org/tiki/wl-kmod
> 
> and then with:
> 
> rpm -qp --requires
> http://elrepo.org/linux/elrepo/el7/SRPMS/wl-kmod-6_30_223_271-5.el7.elrepo.
> nosrc.rpm
> 
> it sounds to me that kernel-abi-whitelists had to be included in the
> BuildRequires list, maybe this was a mistake.


I added the requires to akmods after discussing the issue with kwizart.

https://src.fedoraproject.org/rpms/akmods/c/dad8a0461af884ef07de7d569d784827812b48ad?branch=master

> Probably this BuildRequires in line 203 can be rewritten, but tests are 
> needed, as this:
> 
> + BuildRequires:    kernel-devel = ${kernel_uname_r_wo_arch}
> redhat-rpm-config
> 
> Comment about this subject are welcome.
> 
> Cordially,
> 
> 
> -- 
> NVieville

Comment 6 Sergio Basto 2019-10-22 18:43:25 UTC
(In reply to leigh scott from comment #5)
> 
> I added the requires to akmods after discussing the issue with kwizart.
> 
> https://src.fedoraproject.org/rpms/akmods/c/
> dad8a0461af884ef07de7d569d784827812b48ad?branch=master
> 

IMO for now is the correct option ...


(In reply to nicolas.vieville from comment #3) 
> it sounds to me that kernel-abi-whitelists had to be included in the
> BuildRequires list, maybe this was a mistake.
> Probably this BuildRequires in line 203 can be rewritten, but tests are 
> needed, as this:
> 
> + BuildRequires:    kernel-devel = ${kernel_uname_r_wo_arch}
> redhat-rpm-config

Thank you for the info , I will give feedback after analyze it

Comment 7 jatin 2019-11-06 09:20:08 UTC
Same issue till now ... :( kernel module build fails and it either reverts back to noveau, or if i black list noveau it simply presents wierd gnome with large icons and text like using a 90's calculator.

Comment 8 Nicolas Chauvet (kwizart) 2021-12-20 16:51:12 UTC
A fix is available in rawhide. and I think akmod works for current rhel8, so let's close this bug.


Note You need to log in before you can comment on or make changes to this bug.