From 0b11353610f7aa2efde3646958c2cee797228a6f Mon Sep 17 00:00:00 2001 From: Matteo Bernardini Date: Tue, 2 Nov 2021 18:12:12 +0100 Subject: development/codeblocks: Patch for gcc >= 11.x. Signed-off-by: Matteo Bernardini Signed-off-by: Willy Sudiarto Raharjo --- development/codeblocks/codeblocks-gcc11.patch | 28 +++++++++++++++++++++++++++ development/codeblocks/codeblocks.SlackBuild | 2 ++ 2 files changed, 30 insertions(+) create mode 100644 development/codeblocks/codeblocks-gcc11.patch (limited to 'development/codeblocks') diff --git a/development/codeblocks/codeblocks-gcc11.patch b/development/codeblocks/codeblocks-gcc11.patch new file mode 100644 index 0000000000000..df4a087accf10 --- /dev/null +++ b/development/codeblocks/codeblocks-gcc11.patch @@ -0,0 +1,28 @@ +Index: src/plugins/openfileslist/openfileslistplugin.h +=================================================================== +diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h +--- a/src/plugins/openfileslist/openfileslistplugin.h (revision 12302) ++++ b/src/plugins/openfileslist/openfileslistplugin.h (revision 12303) +@@ -10,6 +10,7 @@ + #include + + #include ++#include + + class wxTreeCtrl; + class wxTreeEvent; +@@ -20,12 +21,8 @@ + struct TargetFilesData + { + TargetFilesData() : activeFile(nullptr) {} // ctor +- // Functor for the std::set predicate to sort the opened editor files according to their tab order +- struct compareLess +- { +- bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) { return lhs->editorTabPos < rhs->editorTabPos; } +- }; +- typedef std::set OpenFilesSet; ++ ++ typedef std::set> OpenFilesSet; + ProjectFile* activeFile; + OpenFilesSet openFiles; + }; diff --git a/development/codeblocks/codeblocks.SlackBuild b/development/codeblocks/codeblocks.SlackBuild index c21bd07338d27..2d09b550a3933 100644 --- a/development/codeblocks/codeblocks.SlackBuild +++ b/development/codeblocks/codeblocks.SlackBuild @@ -84,6 +84,8 @@ if [ "${PLUGINS:-no}" = 'yes' ]; then WITHPLUGINS='--with-contrib-plugins=all' fi +patch -p1 < $CWD/codeblocks-gcc11.patch + ./bootstrap LDFLAGS="-lX11" \ -- cgit v1.2.3