diff options
3 files changed, 37 insertions, 13 deletions
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch new file mode 100644 index 00000000..1f7ec0c8 --- /dev/null +++ b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Add-missing-declarations-for-operator-overloads.patch | |||
@@ -0,0 +1,31 @@ | |||
1 | From 09fcee5c5750a3345e4378cd462cbb9aeba5e269 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Tue, 11 Aug 2020 22:20:17 -0700 | ||
4 | Subject: [PATCH] Add missing declarations for operator overloads | ||
5 | |||
6 | This fixes clang-11 errors e.g. | ||
7 | |||
8 | | ../../recipe-sysroot/usr/include/QtDBus/qdbusargument.h:276:13: error: invalid operands to binary expression ('const QDBusArgument' and 'RouteStructure') | ||
9 | | arg >> item; | ||
10 | | ~~~ ^ ~~~~ | ||
11 | |||
12 | Upstream-Status: Pending | ||
13 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
14 | --- | ||
15 | libconnman-qt/marshalutils.cpp | 3 +++ | ||
16 | 1 file changed, 3 insertions(+) | ||
17 | |||
18 | --- a/libconnman-qt/marshalutils.cpp | ||
19 | +++ b/libconnman-qt/marshalutils.cpp | ||
20 | @@ -36,6 +36,11 @@ | ||
21 | |||
22 | #include "marshalutils.h" | ||
23 | |||
24 | +#if defined(__clang__) && __clang_major__ >= 11 | ||
25 | +Q_DBUS_EXPORT const QDBusArgument &operator>>(const QDBusArgument &a, RouteStructure &v); | ||
26 | +Q_DBUS_EXPORT QDBusArgument &operator<<(QDBusArgument &a, const RouteStructure &v); | ||
27 | +#endif | ||
28 | + | ||
29 | // Empty namespace for local static functions | ||
30 | namespace { | ||
31 | |||
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch index 7a67c744..028e3f5c 100644 --- a/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch +++ b/recipes-connectivity/libconnman-qt/libconnman-qt5/0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch | |||
@@ -12,11 +12,9 @@ Signed-off-by: Herman van Hazendonk <github.com@herrie.org> | |||
12 | plugin/qmldir | 2 +- | 12 | plugin/qmldir | 2 +- |
13 | 3 files changed, 3 insertions(+), 3 deletions(-) | 13 | 3 files changed, 3 insertions(+), 3 deletions(-) |
14 | 14 | ||
15 | diff --git a/plugin/plugin.cpp b/plugin/plugin.cpp | ||
16 | index a383482..451c95f 100644 | ||
17 | --- a/plugin/plugin.cpp | 15 | --- a/plugin/plugin.cpp |
18 | +++ b/plugin/plugin.cpp | 16 | +++ b/plugin/plugin.cpp |
19 | @@ -24,7 +24,7 @@ | 17 | @@ -34,7 +34,7 @@ static QObject *singleton_api_factory(QQ |
20 | class ConnmanPlugin: public QQmlExtensionPlugin | 18 | class ConnmanPlugin: public QQmlExtensionPlugin |
21 | { | 19 | { |
22 | Q_OBJECT | 20 | Q_OBJECT |
@@ -25,27 +23,21 @@ index a383482..451c95f 100644 | |||
25 | 23 | ||
26 | public: | 24 | public: |
27 | void registerTypes(const char *uri); | 25 | void registerTypes(const char *uri); |
28 | diff --git a/plugin/plugin.pro b/plugin/plugin.pro | ||
29 | index c4f54cf..3763f57 100644 | ||
30 | --- a/plugin/plugin.pro | 26 | --- a/plugin/plugin.pro |
31 | +++ b/plugin/plugin.pro | 27 | +++ b/plugin/plugin.pro |
32 | @@ -17,7 +17,7 @@ LIBS += -l$$qtLibraryTarget(connman-$$TARGET_SUFFIX) | 28 | @@ -17,7 +17,7 @@ LIBS += -l$$qtLibraryTarget(connman-$$TA |
33 | QT += qml | 29 | QT += qml |
34 | OTHER_FILES += plugin.json qmldirs | 30 | OTHER_FILES += plugin.json plugins.qmltypes qmldirs |
35 | 31 | ||
36 | -MODULENAME = MeeGo/Connman | 32 | -MODULENAME = MeeGo/Connman |
37 | +MODULENAME = Connman | 33 | +MODULENAME = Connman |
38 | TARGETPATH = $$[QT_INSTALL_QML]/$$MODULENAME | 34 | TARGETPATH = $$[QT_INSTALL_QML]/$$MODULENAME |
39 | 35 | ||
40 | target.path = $$TARGETPATH | 36 | target.path = $$TARGETPATH |
41 | diff --git a/plugin/qmldir b/plugin/qmldir | ||
42 | index 5db82b7..de56688 100644 | ||
43 | --- a/plugin/qmldir | 37 | --- a/plugin/qmldir |
44 | +++ b/plugin/qmldir | 38 | +++ b/plugin/qmldir |
45 | @@ -1,2 +1,2 @@ | 39 | @@ -1,3 +1,3 @@ |
46 | -module MeeGo.Connman | 40 | -module MeeGo.Connman |
47 | +module Connman | 41 | +module Connman |
48 | plugin ConnmanQtDeclarative | 42 | plugin ConnmanQtDeclarative |
49 | -- | 43 | typeinfo plugins.qmltypes |
50 | 2.11.0.windows.3 | ||
51 | |||
diff --git a/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb b/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb index 06e3bbd4..bc84224e 100644 --- a/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb +++ b/recipes-connectivity/libconnman-qt/libconnman-qt5_git.bb | |||
@@ -10,6 +10,7 @@ PV = "1.2.34+git${SRCPV}" | |||
10 | SRCREV = "a0b6b0d9a63f28ab41747892f415c89866d62e4a" | 10 | SRCREV = "a0b6b0d9a63f28ab41747892f415c89866d62e4a" |
11 | SRC_URI = "git://git.merproject.org/mer-core/libconnman-qt.git;protocol=https \ | 11 | SRC_URI = "git://git.merproject.org/mer-core/libconnman-qt.git;protocol=https \ |
12 | file://0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch \ | 12 | file://0001-Don-t-use-MeeGo-as-prefix-in-order-to-make-this-a-co.patch \ |
13 | file://0001-Add-missing-declarations-for-operator-overloads.patch \ | ||
13 | " | 14 | " |
14 | 15 | ||
15 | S = "${WORKDIR}/git" | 16 | S = "${WORKDIR}/git" |