Make comparison object be invocable as const

This commit is contained in:
Jeff Law 2020-07-29 16:20:18 -06:00
parent d709dc235c
commit 8ec591b4e4
2 changed files with 18 additions and 1 deletions

13
ocaml-mccs-gcc11.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/src/cudf.h b/src/cudf.h
index c68753c..23d4ae8 100644
--- a/src/cudf.h
+++ b/src/cudf.h
@@ -118,7 +118,7 @@ public:
// Compares two versioned package (used by ordered set packages likes CUDFVersionedPackageSet)
class CUDFPackage_comparator {
public:
- bool operator()(CUDFVersionedPackage *p1, CUDFVersionedPackage *p2) {
+ bool operator()(CUDFVersionedPackage *p1, CUDFVersionedPackage *p2) const {
if (p1->version < p2->version)
return true;
else

View File

@ -2,7 +2,7 @@
Name: ocaml-mccs
Version: 1.1
Release: 27.%{extraver}%{?dist}
Release: 28.%{extraver}%{?dist}
Summary: Multi Criteria CUDF Solver with OCaml bindings
%global libname %(echo %{name} | sed -e 's/^ocaml-//')
@ -19,6 +19,7 @@ Source0: https://github.com/AltGr/ocaml-mccs/archive/%{version}+%{extrave
# Hacky workaround for:
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/M2VM5DNB7HSAJIFDGT4WAIZDA5JPE5KM/
Patch1: ocaml-mccs-1.1-c++-flags.patch
Patch2: ocaml-mccs-gcc11.patch
BuildRequires: ocaml
BuildRequires: ocaml-dune
@ -79,6 +80,9 @@ cp -aLr _build/install/default/lib/* %{buildroot}%{_libdir}/ocaml/
%{_libdir}/ocaml/*/*.mli
%changelog
* Wed Jul 29 2020 Jeff Law <law@redha.com> - 1.1-27.12
- Make comparison object be invocable as const
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-27.11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild