From bae893783aaed4cf33b6cb3857bfa22911936df7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20M=C3=BCller?= Date: Wed, 23 Feb 2022 22:20:17 +0100 Subject: [PATCH] liri-power-manager: Fix build with solid >= 5.91.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Andreas Müller --- ...cher-Fix-build-with-KF5-Solid-5.91.0.patch | 36 +++++++++++++++++++ .../liri-power-manager_git.bb | 1 + 2 files changed, 37 insertions(+) create mode 100644 recipes-liri/liri-power-manager/liri-power-manager/0001-batterywatcher-Fix-build-with-KF5-Solid-5.91.0.patch diff --git a/recipes-liri/liri-power-manager/liri-power-manager/0001-batterywatcher-Fix-build-with-KF5-Solid-5.91.0.patch b/recipes-liri/liri-power-manager/liri-power-manager/0001-batterywatcher-Fix-build-with-KF5-Solid-5.91.0.patch new file mode 100644 index 00000000..5d61fee3 --- /dev/null +++ b/recipes-liri/liri-power-manager/liri-power-manager/0001-batterywatcher-Fix-build-with-KF5-Solid-5.91.0.patch @@ -0,0 +1,36 @@ +From d0e6772c6c4d909dfd9e612aa90b1ead5c62bdf3 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Andreas=20M=C3=BCller?= +Date: Wed, 23 Feb 2022 21:45:09 +0100 +Subject: [PATCH] batterywatcher: Fix build with KF5/Solid >= 5.91.0 +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +| batterywatcher.cpp:27:10: fatal error: KF5/solid_version.h: No such file or directory +| 27 | #include +| | ^~~~~~~~~~~~~~~~~~~~~ +| compilation terminated. + +Upstream-Status: Pending + +Signed-off-by: Andreas Müller +--- + src/daemon/batterywatcher.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/daemon/batterywatcher.cpp b/src/daemon/batterywatcher.cpp +index 7e69a90..a587afb 100644 +--- a/src/daemon/batterywatcher.cpp ++++ b/src/daemon/batterywatcher.cpp +@@ -24,7 +24,7 @@ + #include + #include + #include +-#include ++#include + + #include + +-- +2.34.1 + diff --git a/recipes-liri/liri-power-manager/liri-power-manager_git.bb b/recipes-liri/liri-power-manager/liri-power-manager_git.bb index 0f8f6cd2..e850531a 100644 --- a/recipes-liri/liri-power-manager/liri-power-manager_git.bb +++ b/recipes-liri/liri-power-manager/liri-power-manager_git.bb @@ -10,6 +10,7 @@ PV = "0.9.0+git${SRCPV}" SRCREV = "794ef0dc8a139b62fad277699042232191487186" S = "${WORKDIR}/git" +SRC_URI += "file://0001-batterywatcher-Fix-build-with-KF5-Solid-5.91.0.patch" DEPENDS += " \ qtwayland \