1 |
commit: b578daaf6deb59291ed8aeef60a069c184a6ba83 |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon May 27 18:12:26 2019 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 27 18:35:13 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b578daaf |
7 |
|
8 |
kde-misc/wacomtablet: Fix build with gcc-9 |
9 |
|
10 |
Reported-by: Chris Smith <chris <AT> realcomputerguy.com> |
11 |
Closes: https://bugs.gentoo.org/686822 |
12 |
Package-Manager: Portage-2.3.67, Repoman-2.3.13 |
13 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
14 |
|
15 |
.../wacomtablet/files/wacomtablet-3.1.1-gcc9.patch | 29 ++++++++++++++++++++++ |
16 |
kde-misc/wacomtablet/wacomtablet-3.1.1.ebuild | 5 +++- |
17 |
2 files changed, 33 insertions(+), 1 deletion(-) |
18 |
|
19 |
diff --git a/kde-misc/wacomtablet/files/wacomtablet-3.1.1-gcc9.patch b/kde-misc/wacomtablet/files/wacomtablet-3.1.1-gcc9.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..6b0cc5dec63 |
22 |
--- /dev/null |
23 |
+++ b/kde-misc/wacomtablet/files/wacomtablet-3.1.1-gcc9.patch |
24 |
@@ -0,0 +1,29 @@ |
25 |
+From 810487c4fa240f6de598b04929bb08de8937feb5 Mon Sep 17 00:00:00 2001 |
26 |
+From: Valerii Malov <jazzvoid@×××××.com> |
27 |
+Date: Sun, 28 Apr 2019 19:10:43 +0300 |
28 |
+Subject: (Supposedly) fix building with gcc9 |
29 |
+ |
30 |
+I don't really have access to gcc9 right now to test, but this should |
31 |
+fix "static assertion failed: unique_ptr's deleter must be invocable |
32 |
+with a pointer" |
33 |
+ |
34 |
+CCBUG: 407015 |
35 |
+--- |
36 |
+ src/common/libwacomwrapper.cpp | 2 +- |
37 |
+ 1 file changed, 1 insertion(+), 1 deletion(-) |
38 |
+ |
39 |
+diff --git a/src/common/libwacomwrapper.cpp b/src/common/libwacomwrapper.cpp |
40 |
+index 1d11fc3..92a559a 100644 |
41 |
+--- a/src/common/libwacomwrapper.cpp |
42 |
++++ b/src/common/libwacomwrapper.cpp |
43 |
+@@ -60,7 +60,7 @@ libWacomWrapper::~libWacomWrapper() |
44 |
+ bool libWacomWrapper::lookupTabletInfo(int tabletId, int vendorId, TabletInformation &tabletInfo) |
45 |
+ { |
46 |
+ qCDebug(COMMON) << "LibWacom lookup for" << tabletId << vendorId; |
47 |
+- auto errorDeleter = [](WacomError *&e){libwacom_error_free(&e);}; |
48 |
++ auto errorDeleter = [](WacomError *e){libwacom_error_free(&e);}; |
49 |
+ std::unique_ptr<WacomError, decltype(errorDeleter)> |
50 |
+ error(libwacom_error_new(), errorDeleter); |
51 |
+ std::unique_ptr<WacomDevice, decltype(&libwacom_destroy)> |
52 |
+-- |
53 |
+cgit v1.1 |
54 |
|
55 |
diff --git a/kde-misc/wacomtablet/wacomtablet-3.1.1.ebuild b/kde-misc/wacomtablet/wacomtablet-3.1.1.ebuild |
56 |
index 733552086e0..382e2fbe52a 100644 |
57 |
--- a/kde-misc/wacomtablet/wacomtablet-3.1.1.ebuild |
58 |
+++ b/kde-misc/wacomtablet/wacomtablet-3.1.1.ebuild |
59 |
@@ -45,7 +45,10 @@ RDEPEND="${CDEPEND} |
60 |
!kde-misc/wacomtablet:4 |
61 |
" |
62 |
|
63 |
-PATCHES=( "${FILESDIR}/${P}-xlib-optional.patch" ) # bug 681674 |
64 |
+PATCHES=( |
65 |
+ "${FILESDIR}/${P}-xlib-optional.patch" # bug 681674 |
66 |
+ "${FILESDIR}/${P}-gcc9.patch" # bug 686822 |
67 |
+) |
68 |
|
69 |
src_test() { |
70 |
# test needs DBus, bug 675548 |