debian/patches: Skip udev rules tests when not all drivers are compiled

This commit is contained in:
Marco Trevisan (Treviño)
2021-01-21 17:01:50 +01:00
parent dd326c90c2
commit 702c58152c
2 changed files with 26 additions and 1 deletions
@@ -0,0 +1,24 @@
From: =?utf-8?b?Ik1hcmNvIFRyZXZpc2FuIChUcmV2acOxbyki?= <mail@3v1n0.net>
Date: Thu, 21 Jan 2021 15:34:36 +0100
Subject: build: Skip the hwdb test if not all drivers are really enabled
Origin: https://gitlab.freedesktop.org/libfprint/libfprint/-/commit/3b83157e9
---
meson.build | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/meson.build b/meson.build
index 4c73c00..d5081c9 100644
--- a/meson.build
+++ b/meson.build
@@ -181,6 +181,10 @@ foreach driver: drivers
endif
endforeach
+if default_drivers_are_enabled and supported_drivers != drivers
+ default_drivers_are_enabled = false
+endif
+
# Export the drivers' types to the core code
drivers_type_list = []
drivers_type_func = []
+2 -1
View File
@@ -4,5 +4,6 @@ udev-rules-Print-warning-if-an-ID-is-supported.patch
udev-rules-Remove-supported-synaptics-devices.patch udev-rules-Remove-supported-synaptics-devices.patch
tests-Add-check-that-no-supported-device-is-whitelisted.patch tests-Add-check-that-no-supported-device-is-whitelisted.patch
udev-hwdb-Prevent-devices-from-being-listed-twice.patch udev-hwdb-Prevent-devices-from-being-listed-twice.patch
debian/data-Use-auto-generated-but-hardcoded-autosuspend-rules-f.patch
tests-Add-trailing-newline-to-busname-devname-sysfs-attri.patch tests-Add-trailing-newline-to-busname-devname-sysfs-attri.patch
build-Skip-the-hwdb-test-if-not-all-drivers-are-really-en.patch
debian/data-Use-auto-generated-but-hardcoded-autosuspend-rules-f.patch