diff options
author | Andreas Sturmlechner <asturm@gentoo.org> | 2020-08-01 18:12:48 +0200 |
---|---|---|
committer | Andreas Sturmlechner <asturm@gentoo.org> | 2020-08-02 00:57:18 +0200 |
commit | 0a1734960f32f53fd522cce1bfe806ea00093375 (patch) | |
tree | 1d88c5b23f02a87a95dfe82716dfccb1e43e86fa | |
parent | kde-apps/kmail-account-wizard: Fix CVE-2020-15954 (diff) | |
download | gentoo-0a1734960f32f53fd522cce1bfe806ea00093375.tar.gz gentoo-0a1734960f32f53fd522cce1bfe806ea00093375.tar.bz2 gentoo-0a1734960f32f53fd522cce1bfe806ea00093375.zip |
kde-plasma/powerdevil: Fix build with app-misc/ddcutil-0.9.9
Reported-by: Stefano Crocco <stefano.crocco@alice.it>
Thanks-to: Mike Lothian <mike@fireburn.co.uk>
Closes: https://bugs.gentoo.org/734918
Package-Manager: Portage-3.0.1, Repoman-2.3.23
Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r-- | kde-plasma/powerdevil/files/powerdevil-5.19.4-ddcutil-0.9.9.patch | 24 | ||||
-rw-r--r-- | kde-plasma/powerdevil/powerdevil-5.19.4.ebuild | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/kde-plasma/powerdevil/files/powerdevil-5.19.4-ddcutil-0.9.9.patch b/kde-plasma/powerdevil/files/powerdevil-5.19.4-ddcutil-0.9.9.patch new file mode 100644 index 000000000000..3a1c4c381557 --- /dev/null +++ b/kde-plasma/powerdevil/files/powerdevil-5.19.4-ddcutil-0.9.9.patch @@ -0,0 +1,24 @@ +From fcb26be2fb279e6ad3b7b814d26a5921d16201eb Mon Sep 17 00:00:00 2001 +From: Johannes Jordan <kde@lanrules.de> +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 + diff --git a/kde-plasma/powerdevil/powerdevil-5.19.4.ebuild b/kde-plasma/powerdevil/powerdevil-5.19.4.ebuild index 4f9763f2ecb9..4452b67c937d 100644 --- a/kde-plasma/powerdevil/powerdevil-5.19.4.ebuild +++ b/kde-plasma/powerdevil/powerdevil-5.19.4.ebuild @@ -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) |