app-misc/corectrl: add patch to fix building with gcc 14

Signed-off-by: Kostadin Shishmanov <kocelfc@tutanota.com>
This commit is contained in:
Kostadin Shishmanov
2023-11-01 11:30:32 +02:00
parent adcf38b625
commit e30f04e859
3 changed files with 20 additions and 0 deletions

View File

@@ -46,6 +46,10 @@ DEPEND="
BDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-gcc-14.patch
)
src_configure() {
local mycmakeargs+=(
-DBUILD_TESTING=$(usex test ON OFF)

View File

@@ -46,6 +46,10 @@ DEPEND="
BDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}"/${PN}-gcc-14.patch
)
src_configure() {
local mycmakeargs+=(
-DBUILD_TESTING=$(usex test ON OFF)

View File

@@ -0,0 +1,12 @@
diff --git a/src/core/components/controls/controlgroupxmlparser.cpp b/src/core/components/controls/controlgroupxmlparser.cpp
index c83a187..c580fc3 100644
--- a/src/core/components/controls/controlgroupxmlparser.cpp
+++ b/src/core/components/controls/controlgroupxmlparser.cpp
@@ -5,6 +5,7 @@
#include <pugixml.hpp>
#include <utility>
+#include <algorithm>
class ControlGroupXMLParser::Factory final
: public ProfilePartXMLParser::Factory