Bug#1042392: wireguard-dkms refuses to build on kernel 6.x

6 views
Skip to first unread message

Jonas

unread,
Jul 27, 2023, 6:40:04 AMJul 27
to
Package: wireguard-dkms
Version: 1.0.20210219-1
Severity: important

Dear Maintainer,

It seems that the BUILD_EXCLUSIVE directive on the dkms.conf contained
in the wireguard-dkms package prevents the module from being built on
kernels 6.x as the regex only contemplates kernel 5.x or earlier.

The problematic part seems to be:

```
if ls /lib/modules/5.5*/source/include/uapi/linux/wireguard.h >/dev/null 2>&1 ; then
# debian backported wireguard into the 5.5 release:
BUILD_EXCLUSIVE_KERNEL="^((5\.[0-4]($|[.-]))|(4\.)|(3\.1[0-9]))"
else
# upstream requires kernel 3.10 - 5.5, inclusive:
BUILD_EXCLUSIVE_KERNEL="^((5\.[0-5]($|[.-]))|(4\.)|(3\.1[0-9]))"
fi
```

Given that Debian 12 now ships with kernel 6.x, it might be worth
updating the regex appropriately.

Thank you very much in advance!

Kind Regards,
Jonas.


-- System Information:
Debian Release: 12.1
APT prefers stable-updates
APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.2.16-3-pve (SMP w/8 CPU threads; PREEMPT)
Kernel taint flags: TAINT_PROPRIETARY_MODULE, TAINT_FIRMWARE_WORKAROUND, TAINT_OOT_MODULE
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages wireguard-dkms depends on:
ii dkms 3.0.10-8+deb12u1
ii perl 5.36.0-7

Versions of packages wireguard-dkms recommends:
pn wireguard <none>
pn wireguard-tools <none>

wireguard-dkms suggests no packages.

-- no debconf information

Jonas Andradas

unread,
Jul 27, 2023, 12:10:05 PMJul 27
to

Hi, 


I noticed that since wireguard has been included in kernels from 5.4 onwards, 

if I am not mistaken, it makes sense for wireguard-dkms to not be built for 

kernels 6.x. 


However, maybe the DKMS error should be handled in some way or a notice be 

printed if DKMS attempts to build the module for kernels >5.4, instead of just failing, which results in a dpkg error with no additional information. 


Sorry if this bug should not have been raised (as it is expected wireguard-

dkms should not be used with kernels > 5.4), but maybe the suggestion of 

making it clearer is useful.


Thanks,

Jonas.

Reply all
Reply to author
Forward
0 new messages