diff --git a/codeblocks-gcc11.patch b/codeblocks-gcc11.patch new file mode 100644 index 0000000..760a8e1 --- /dev/null +++ b/codeblocks-gcc11.patch @@ -0,0 +1,13 @@ +diff --git a/src/plugins/openfileslist/openfileslistplugin.h b/src/plugins/openfileslist/openfileslistplugin.h +index 7fd7a95..87b08ee 100644 +--- a/src/plugins/openfileslist/openfileslistplugin.h ++++ b/src/plugins/openfileslist/openfileslistplugin.h +@@ -23,7 +23,7 @@ struct TargetFilesData + // 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; } ++ bool operator()(const ProjectFile* lhs, const ProjectFile* rhs) const { return lhs->editorTabPos < rhs->editorTabPos; } + }; + typedef std::set OpenFilesSet; + ProjectFile* activeFile; diff --git a/codeblocks.spec b/codeblocks.spec index a719293..c3eb7f0 100644 --- a/codeblocks.spec +++ b/codeblocks.spec @@ -7,7 +7,7 @@ Name: codeblocks Version: 20.03 -Release: 3%{?svnrelease}%{?dist} +Release: 4%{?svnrelease}%{?dist} Summary: An open source, cross platform, free C++ IDE License: GPLv3+ URL: http://www.codeblocks.org/ @@ -24,6 +24,7 @@ Patch1: codeblocks-20.03-multi-arch.patch # https://sourceforge.net/p/codeblocks/tickets/936/ # https://sourceforge.net/p/codeblocks/code/12012/ Patch2: codeblocks-20.03-pragma.patch +Patch3: codeblocks-gcc11.patch BuildRequires: gcc BuildRequires: gcc-c++ @@ -115,6 +116,7 @@ Additional Code::Blocks plug-ins. %endif %patch1 -p1 %patch2 -p1 +%patch3 -p1 %if %{snapshot} @@ -349,6 +351,9 @@ echo "%{_libdir}/%{name}/wxContribItems" > %{buildroot}/%{_sysconfdir}/ld.so.con %changelog +* Tue Jul 28 2020 Jeff Law - 20.03-4 +- Make comparison object invocable as const + * Mon Jul 27 2020 Fedora Release Engineering - 20.03-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild