1 |
commit: 23664bcb8930681ff69ae13361add9d5eff5437c |
2 |
Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Feb 1 18:02:58 2021 +0000 |
4 |
Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Feb 1 18:03:26 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=23664bcb |
7 |
|
8 |
sys-libs/kpmcore: Fix build with KF 5.77.0 |
9 |
|
10 |
Reported-by: Anton <anton <AT> picapica.im> |
11 |
Thanks-to: Andrius Štikonas <andrius <AT> stikonas.eu> |
12 |
Closes: https://bugs.gentoo.org/768249 |
13 |
Package-Manager: Portage-3.0.14, Repoman-3.0.2 |
14 |
Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org> |
15 |
|
16 |
sys-libs/kpmcore/files/kpmcore-4.2.0-kf-5.77.patch | 50 ++++++++++++++++++++++ |
17 |
sys-libs/kpmcore/kpmcore-4.2.0.ebuild | 8 ++-- |
18 |
2 files changed, 55 insertions(+), 3 deletions(-) |
19 |
|
20 |
diff --git a/sys-libs/kpmcore/files/kpmcore-4.2.0-kf-5.77.patch b/sys-libs/kpmcore/files/kpmcore-4.2.0-kf-5.77.patch |
21 |
new file mode 100644 |
22 |
index 00000000000..f45ad5a682b |
23 |
--- /dev/null |
24 |
+++ b/sys-libs/kpmcore/files/kpmcore-4.2.0-kf-5.77.patch |
25 |
@@ -0,0 +1,50 @@ |
26 |
+From 07e5a3ac2858e6d38cc698e0f740e7a693e9f302 Mon Sep 17 00:00:00 2001 |
27 |
+From: "Friedrich W. H. Kossebau" <kossebau@×××.org> |
28 |
+Date: Mon, 16 Nov 2020 17:14:52 +0100 |
29 |
+Subject: [PATCH] Make plugins compatible to latest KPluginFactory code |
30 |
+ |
31 |
+That one uses std::is_constructible<impl, QObject *, const QVariantList &> |
32 |
+which will fail for our current plugin constructors due to being private |
33 |
+and with only friend class KPluginFactory. |
34 |
+--- |
35 |
+ src/plugins/dummy/dummybackend.h | 4 +--- |
36 |
+ src/plugins/sfdisk/sfdiskbackend.h | 4 +--- |
37 |
+ 2 files changed, 2 insertions(+), 6 deletions(-) |
38 |
+ |
39 |
+diff --git a/src/plugins/dummy/dummybackend.h b/src/plugins/dummy/dummybackend.h |
40 |
+index 815b020..8d67158 100644 |
41 |
+--- a/src/plugins/dummy/dummybackend.h |
42 |
++++ b/src/plugins/dummy/dummybackend.h |
43 |
+@@ -24,11 +24,9 @@ class QString; |
44 |
+ */ |
45 |
+ class DummyBackend : public CoreBackend |
46 |
+ { |
47 |
+- friend class KPluginFactory; |
48 |
+- |
49 |
+ Q_DISABLE_COPY(DummyBackend) |
50 |
+ |
51 |
+-private: |
52 |
++public: |
53 |
+ DummyBackend(QObject* parent, const QList<QVariant>& args); |
54 |
+ |
55 |
+ public: |
56 |
+diff --git a/src/plugins/sfdisk/sfdiskbackend.h b/src/plugins/sfdisk/sfdiskbackend.h |
57 |
+index e709f61..0571add 100644 |
58 |
+--- a/src/plugins/sfdisk/sfdiskbackend.h |
59 |
++++ b/src/plugins/sfdisk/sfdiskbackend.h |
60 |
+@@ -27,11 +27,9 @@ class QString; |
61 |
+ */ |
62 |
+ class SfdiskBackend : public CoreBackend |
63 |
+ { |
64 |
+- friend class KPluginFactory; |
65 |
+- |
66 |
+ Q_DISABLE_COPY(SfdiskBackend) |
67 |
+ |
68 |
+-private: |
69 |
++public: |
70 |
+ SfdiskBackend(QObject* parent, const QList<QVariant>& args); |
71 |
+ |
72 |
+ public: |
73 |
+-- |
74 |
+GitLab |
75 |
+ |
76 |
|
77 |
diff --git a/sys-libs/kpmcore/kpmcore-4.2.0.ebuild b/sys-libs/kpmcore/kpmcore-4.2.0.ebuild |
78 |
index 2103dab3c11..6530cb3632d 100644 |
79 |
--- a/sys-libs/kpmcore/kpmcore-4.2.0.ebuild |
80 |
+++ b/sys-libs/kpmcore/kpmcore-4.2.0.ebuild |
81 |
@@ -1,4 +1,4 @@ |
82 |
-# Copyright 1999-2020 Gentoo Authors |
83 |
+# Copyright 1999-2021 Gentoo Authors |
84 |
# Distributed under the terms of the GNU General Public License v2 |
85 |
|
86 |
EAPI=7 |
87 |
@@ -20,6 +20,9 @@ LICENSE="GPL-3" |
88 |
SLOT="5/10" |
89 |
IUSE="" |
90 |
|
91 |
+# bug 689468, tests need polkit etc. |
92 |
+RESTRICT+=" test" |
93 |
+ |
94 |
BDEPEND=" |
95 |
>=kde-frameworks/kauth-${KFMIN}:5 |
96 |
virtual/pkgconfig |
97 |
@@ -36,5 +39,4 @@ DEPEND=" |
98 |
" |
99 |
RDEPEND="${DEPEND}" |
100 |
|
101 |
-# bug 689468, tests need polkit etc. |
102 |
-RESTRICT+=" test" |
103 |
+PATCHES=( "${FILESDIR}/${P}-kf-5.77.patch" ) # bug 768249 |