Source: openrazer
Version: 3.5.1+dfsg-1
Severity: important
Tags: patch

Hi,

now that dkms got fixed, please re-enable Testsuite:
autopkgtest-pkg-dkms in openrazer.
I'm also attaching a patch to disable building the kernel module for
kernels without CONFIG_USB (e.g. the cloud kernels)


Andreas
>From 219946c6304fdfd2115307ba0107132c717c5758 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <a...@debian.org>
Date: Wed, 1 Feb 2023 12:24:40 +0100
Subject: [PATCH 1/2] re-enable Testsuite: autopkgtest-pkg-dkms

---
 debian/changelog | 6 ++++++
 debian/control   | 3 +--
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index dedea8f..475a8b6 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+openrazer (3.5.1+dfsg-2) UNRELEASED; urgency=medium
+
+  * Re-enable Testsuite: autopkgtest-pkg-dkms.
+
+ -- Andreas Beckmann <a...@debian.org>  Wed, 01 Feb 2023 12:24:01 +0100
+
 openrazer (3.5.1+dfsg-1) unstable; urgency=medium
 
   * New upstream version
diff --git a/debian/control b/debian/control
index 72c38ec..e66396c 100644
--- a/debian/control
+++ b/debian/control
@@ -12,8 +12,7 @@ Vcs-Browser: https://salsa.debian.org/debian/openrazer
 Vcs-Git: https://salsa.debian.org/debian/openrazer.git
 Homepage: https://openrazer.github.io/
 Rules-Requires-Root: no
-# https://bugs.debian.org/1019425
-#Testsuite: autopkgtest-pkg-dkms
+Testsuite: autopkgtest-pkg-dkms
 
 Package: openrazer-meta
 Architecture: all
-- 
2.20.1

>From ad2cece85ed929b0150356a4f47ca0e576101a90 Mon Sep 17 00:00:00 2001
From: Andreas Beckmann <a...@debian.org>
Date: Wed, 1 Feb 2023 12:39:16 +0100
Subject: [PATCH 2/2] do not build the module for kernels without CONFIG_USB

---
 debian/changelog                             |  1 +
 debian/patches/series                        |  1 +
 debian/patches/skip-without-CONFIG_USB.patch | 10 ++++++++++
 3 files changed, 12 insertions(+)
 create mode 100644 debian/patches/skip-without-CONFIG_USB.patch

diff --git a/debian/changelog b/debian/changelog
index 475a8b6..f86c88a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 openrazer (3.5.1+dfsg-2) UNRELEASED; urgency=medium
 
   * Re-enable Testsuite: autopkgtest-pkg-dkms.
+  * Do not build the module for kernels without CONFIG_USB.
 
  -- Andreas Beckmann <a...@debian.org>  Wed, 01 Feb 2023 12:24:01 +0100
 
diff --git a/debian/patches/series b/debian/patches/series
index 92ef694..1307d56 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 #0001-usb-hid-disabled-builds.patch
 Fix_makefile.patch
+skip-without-CONFIG_USB.patch
diff --git a/debian/patches/skip-without-CONFIG_USB.patch 
b/debian/patches/skip-without-CONFIG_USB.patch
new file mode 100644
index 0000000..5607733
--- /dev/null
+++ b/debian/patches/skip-without-CONFIG_USB.patch
@@ -0,0 +1,10 @@
+--- a/install_files/dkms/dkms.conf
++++ b/install_files/dkms/dkms.conf
+@@ -1,6 +1,7 @@
+ PACKAGE_NAME="openrazer-driver"
+ PACKAGE_VERSION="3.5.1"
+ AUTOINSTALL="yes"
++BUILD_EXCLUSIVE_CONFIG="CONFIG_USB"
+ MAKE="KERNELDIR=/lib/modules/${kernelver}/build make driver"
+ 
+ BUILT_MODULE_NAME[0]="razerkbd"
-- 
2.20.1

Reply via email to