Author: openKylinBot <openKylinBot@openkylin.top>
Description: Make CUDFPackage_comparator::operator() const to fix FTBFS with GCC 15
 std::set::find() calls the comparator through a const reference in GCC 15's
 libstdc++ (_M_lower_bound is only available as a const member function since
 GCC 15), so the non-const operator() fails to compile with "no match for call
 to '(const CUDFPackage_comparator) (CUDFVersionedPackage* const&,
 CUDFVersionedPackage* const&)".  The comparator is stateless, declaring
 operator() const does not change its behaviour.
Forwarded: no
Last-Update: 2026-09-16

--- mccs-1.1.orig/libsrcs/cudf.h
+++ mccs-1.1/libsrcs/cudf.h
@@ -105,7 +105,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
