From e17f637cc40fcd82e9d2d15648cf88e1c8dcba1f Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Feb 13 2018 05:22:19 +0000 Subject: Fix PairedID entry causing a debug message in the udev rules --- diff --git a/0001-data-fix-PairedID-entry-for-the-DTH-2452.patch b/0001-data-fix-PairedID-entry-for-the-DTH-2452.patch new file mode 100644 index 0000000..9475dbf --- /dev/null +++ b/0001-data-fix-PairedID-entry-for-the-DTH-2452.patch @@ -0,0 +1,46 @@ +From b64c15fed97f2374fcf1cf511f4f087a3405644c Mon Sep 17 00:00:00 2001 +From: Peter Hutterer +Date: Tue, 13 Feb 2018 15:01:40 +1000 +Subject: [PATCH libwacom] data: fix PairedID entry for the DTH-2452 + +Missing the 'usb' prefix which wasn't caught by the test suite. Add the entry +to libwacom_compare() to make sure this doesn't happen again. + +Signed-off-by: Peter Hutterer +--- + data/dth-2452.tablet | 2 +- + libwacom/libwacom.c | 5 +++++ + 2 files changed, 6 insertions(+), 1 deletion(-) + +diff --git a/data/dth-2452.tablet b/data/dth-2452.tablet +index 12309db..54f8191 100644 +--- a/data/dth-2452.tablet ++++ b/data/dth-2452.tablet +@@ -16,7 +16,7 @@ + [Device] + Name=Wacom DTH2452 + DeviceMatch=usb:056a:037d +-PairedID=056a:037e ++PairedID=usb:056a:037e + Class=PenDisplay + Width=20 + Height=12 +diff --git a/libwacom/libwacom.c b/libwacom/libwacom.c +index 3daff81..b813d5e 100644 +--- a/libwacom/libwacom.c ++++ b/libwacom/libwacom.c +@@ -460,6 +460,11 @@ libwacom_compare(const WacomDevice *a, const WacomDevice *b, WacomCompareFlags f + if (memcmp(a->button_codes, b->button_codes, sizeof(int) * a->num_buttons) != 0) + return 1; + ++ if ((a->paired == NULL && b->paired != NULL) || ++ (a->paired != NULL && b->paired == NULL) || ++ (a->paired && b->paired && strcmp(a->paired->match, b->paired->match) != 0)) ++ return 1; ++ + if ((flags & WCOMPARE_MATCHES) && compare_matches(a, b) != 0) + return 1; + else if (strcmp(a->matches[a->match]->match, b->matches[b->match]->match) != 0) +-- +2.14.3 + diff --git a/libwacom.spec b/libwacom.spec index 2cd7fb7..822fe74 100644 --- a/libwacom.spec +++ b/libwacom.spec @@ -1,6 +1,6 @@ Name: libwacom Version: 0.28 -Release: 2%{?dist} +Release: 3%{?dist} Summary: Tablet Information Client Library Requires: %{name}-data @@ -10,6 +10,8 @@ URL: http://linuxwacom.sourceforge.net Source0: http://prdownloads.sourceforge.net/linuxwacom/%{name}/%{name}-%{version}.tar.bz2 +Patch01: 0001-data-fix-PairedID-entry-for-the-DTH-2452.patch + BuildRequires: autoconf automake libtool doxygen BuildRequires: glib2-devel libgudev1-devel BuildRequires: systemd systemd-devel @@ -82,6 +84,9 @@ make %{?_smp_mflags} check %{_datadir}/libwacom/layouts/*.svg %changelog +* Tue Feb 13 2018 Peter Hutterer 0.28-3 +- Fix PairedID entry causing a debug message in the udev rules + * Fri Feb 09 2018 Igor Gnatenko - 0.28-2 - Escape macros in %%changelog