Those of you who have been using the patch I gave you some time ago to let you build apt packages for WSL Linux kernels (bypassing the problem with the version string - for details, see here) will have noticed that due to changes in the upstream kernel it doesn’t work any more. As I found out myself today, when building myself a 6.10 WSL kernel.
Anyway, the patch has actually got much simpler in recent versions, requiring just a one-line change in scripts/package/mkdebian:
commit eaaf50fb25f93d438d4a60b1bb581e889ff3287c
Author: Alistair Young <avatar@arkane-systems.net>
Date: Thu Jul 18 17:31:46 2024 -0500
Adjusted mkdebian for WSL packages.
diff --git a/scripts/package/mkdebian b/scripts/package/mkdebian
index 070149c985fe..2b3c7055e4a4 100755
--- a/scripts/package/mkdebian
+++ b/scripts/package/mkdebian
@@ -146,7 +146,8 @@ if [ "$1" = --need-source ]; then
fi
# Some variables and settings used throughout the script
-version=$KERNELRELEASE
+version=$(echo $KERNELRELEASE | tr '[:upper:]' '[:lower:]')
+
if [ -n "$KDEB_PKGVERSION" ]; then
packageversion=$KDEB_PKGVERSION
else
Sure would be nice if we could get this into upstream.