Skip to content

Commit

Permalink
kde-plasma/powerdevil: Fix build with app-misc/ddcutil-0.9.9
Browse files Browse the repository at this point in the history
Reported-by: Stefano Crocco <[email protected]>
Thanks-to: Mike Lothian <[email protected]>
Closes: https://bugs.gentoo.org/734918
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner <[email protected]>
  • Loading branch information
a17r committed Aug 1, 2020
1 parent 532434e commit 0a17349
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 0 deletions.
24 changes: 24 additions & 0 deletions kde-plasma/powerdevil/files/powerdevil-5.19.4-ddcutil-0.9.9.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
From fcb26be2fb279e6ad3b7b814d26a5921d16201eb Mon Sep 17 00:00:00 2001
From: Johannes Jordan <[email protected]>
Date: Mon, 29 Jun 2020 10:51:40 +0000
Subject: [PATCH] Fix compilation with ddcutil 0.9.9

---
daemon/backends/upower/ddcutilbrightness.cpp | 1 -
1 file changed, 1 deletion(-)

diff --git a/daemon/backends/upower/ddcutilbrightness.cpp b/daemon/backends/upower/ddcutilbrightness.cpp
index e712c05a..a75aac5c 100644
--- a/daemon/backends/upower/ddcutilbrightness.cpp
+++ b/daemon/backends/upower/ddcutilbrightness.cpp
@@ -56,7 +56,6 @@ void DDCutilBrightness::detect()

DDCA_Feature_List vcpList;
ddca_get_feature_list_by_dref(DDCA_SUBSET_COLOR, dh, false, &vcpList);
- qCDebug(POWERDEVIL) << "ddca_feature_list: "<< ddca_feature_list_string(&vcpList, "0x", ",");
QVector<uint16_t> tmpVcpList;
for (int iVcp = 0; iVcp < m_usedVcp.count(); ++iVcp) {
DDCA_Non_Table_Vcp_Value returnValue;
--
GitLab

2 changes: 2 additions & 0 deletions kde-plasma/powerdevil/powerdevil-5.19.4.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,8 @@ RDEPEND="${DEPEND}
>=sys-power/upower-0.9.23
"

PATCHES=( "${FILESDIR}/${P}-ddcutil-0.9.9.patch" ) # bug 734918

src_configure() {
local mycmakeargs=(
-DHAVE_DDCUTIL=$(usex brightness-control)
Expand Down

0 comments on commit 0a17349

Please sign in to comment.