DKMS 2.8.4 version is broken
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 3.2k
- Forks
- 692
- PR merge metrics
- No merged PRs in 30d
Description
Describe the bug
When we try
sudo dkms install jool/4.1.5.git.v4.1.5.16.g88339465 and sudo dkms uninstall jool/4.1.5.git.v4.1.5.16.g88339465,
the commands silently succeeding without installing kernel modules(.ko files).
Reproduction steps
1. Install jool
My node shows:
zsh 1 % jool --version
4.1.5.3
2. sudo tdnf install dkms
Installing:
dkms noarch 2.8.2-2.ph4 photon-updates 194.54k 199214
Total installed size: 194.54k 199214
Is this ok [y/N]: y
Downloading:
dkms 67029 100%
Testing transaction
Running transaction
Installing/Updating: dkms-2.8.2-2.ph4.noarch
Complete!
3. dkms --version
dkms:2.8
4.
<vmware@dev:> % sudo dkms install jool/4.1.5.git.v4.1.5.16.g88339465. ----> Not installed anything
[Thu 22/01/13 21:56 UTC][pts/35][x86_64/linux-gnu/5.10.78-4.ph4-esx][5.8]
5. Silently succeeded and didn't generate KO modules for jool.
zsh 27 % cd /lib/modules/5.10.78-4.ph4-esx/extra/
[Tue 22/01/18 16:00 UTC][pts/35][x86_64/linux-gnu/5.10.78-4.ph4-esx][5.8]
<vmware@dev:/lib/modules/5.10.78-4.ph4-esx/extra>
zsh 28 % ls
i40e.ko.xz iavf.ko.xz ice.ko.xz
Expected behavior
It should generate KO modules(ool_common.ko.xz jool.ko.xz jool_siit.ko.xz)for Jool.
Have tried with latest version from "https://github.com/dell/dkms" which is v3.0.3
1.git clone https://github.com/dell/dkms
2.cd dkms
-
zsh 34 (git)-[master]-% sudo make install
[sudo] password for vmware
mkdir -p /var/lib/dkms
install -D -m 0755 dkms_common.postinst /usr/lib/dkms/common.postinst
install -D -m 0755 dkms /usr/sbin/dkms
install -D -m 0755 dkms_autoinstaller /usr/lib/dkms/dkms_autoinstaller
install -D -m 0644 dkms_framework.conf /etc/dkms/framework.conf
install -D -m 0755 sign_helper.sh /etc/dkms/sign_helper.sh
install -D -m 0644 dkms.bash-completion /usr/share/bash-completion/completions/dkms
install -D -m 0644 dkms.8 /usr/share/man/man8/dkms.8
install -D -m 0755 kernel_install.d_dkms /etc/kernel/install.d/dkms
install -D -m 0755 kernel_postinst.d_dkms /etc/kernel/postinst.d/dkms
install -D -m 0755 kernel_prerm.d_dkms /etc/kernel/prerm.d/dkms
gzip -9 /usr/share/man/man8/dkms.8
gzip: /usr/share/man/man8/dkms.8.gz already exists; do you wish to overwrite (y or n)? y -
zsh 4 (git)-[master]-% dkms --version
dkms-3.0.3
5.zsh 5 (git)-[master]-% sudo dkms install jool/4.1.5.git.v4.1.5.16.g88339465
[sudo] password for vmware
Creating symlink /var/lib/dkms/jool/4.1.5.git.v4.1.5.16.g88339465/source -> /usr/src/jool-4.1.5.git.v4.1.5.16.g88339465
Building module:
cleaning build area...
make -j8 KERNELRELEASE=5.10.78-4.ph4-esx -C /lib/modules/5.10.78-4.ph4-esx/build M=/var/lib/dkms/jool/4.1.5.git.v4.1.5.16.g88339465/build/src/mod/common modules && make -C /lib/modules/5.10.78-4.ph4-esx/build M=/var/lib/dkms/jool/4.1.5.git.v4.1.5.16.g88339465/build/src/mod/nat64 modules && make -C /lib/modules/5.10.78-4.ph4-esx/build M=/var/lib/dkms/jool/4.1.5.git.v4.1.5.16.g88339465/build/src/mod/siit modules......
cleaning build area...
jool_common.ko.xz:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.10.78-4.ph4-esx/extra//
jool.ko.xz:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.10.78-4.ph4-esx/extra//
jool_siit.ko.xz:
Running module version sanity check.
- Original module
- No original module exists within this kernel
- Installation
- Installing to /lib/modules/5.10.78-4.ph4-esx/extra//
depmod...
- Installing to /lib/modules/5.10.78-4.ph4-esx/extra//
6.zsh 6 (git)-[master]-% cd /lib/modules/5.10.78-4.ph4-esx/extra//
[Wed 22/01/19 01:07 UTC][pts/36][x86_64/linux-gnu/5.10.78-4.ph4-esx][5.8]
<vmware@dev:/lib/modules/5.10.78-4.ph4-esx/extra>
zsh 7 % ls
i40e.ko.xz iavf.ko.xz ice.ko.xz jool_common.ko.xz jool.ko.xz jool_siit.ko.xz
[Wed 22/01/19 01:07 UTC][pts/36][x86_64/linux-gnu/5.10.78-4.ph4-esx][5.8]
Additional context
Please update DKMS version from v2.8.4 to v3.0.3
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the DKMS 2.8.4 behavior with the listed tdnf and dkms commands on the Photon kernel, then compare it with the demonstrated DKMS 3.0.3 installation. Trace how the Photon package supplies DKMS and verify that installing Jool produces jool_common.ko.xz, jool.ko.xz, and jool_siit.ko.xz in the kernel's extra directory.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- linux
- Domain
- operating-systems, tooling
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100