Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package mccs for openSUSE:Factory checked in 
at 2021-07-23 23:41:20
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/mccs (Old)
 and      /work/SRC/openSUSE:Factory/.mccs.new.1899 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "mccs"

Fri Jul 23 23:41:20 2021 rev:2 rq:907958 version:1.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/mccs/mccs.changes        2019-03-20 
13:20:57.625319514 +0100
+++ /work/SRC/openSUSE:Factory/.mccs.new.1899/mccs.changes      2021-07-23 
23:41:43.381792144 +0200
@@ -1,0 +2,5 @@
+Mon Jul 12 23:17:48 UTC 2021 - Atri Bhattacharya <[email protected]>
+
+- Add mccs-gcc11-fix.patch to fix compilation with GCC 11.
+
+-------------------------------------------------------------------

New:
----
  mccs-gcc11-fix.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ mccs.spec ++++++
--- /var/tmp/diff_new_pack.5ID6Ay/_old  2021-07-23 23:41:43.789791623 +0200
+++ /var/tmp/diff_new_pack.5ID6Ay/_new  2021-07-23 23:41:43.793791618 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package mccs
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -24,13 +24,13 @@
 Group:          Productivity/Scientific/Math
 URL:            http://www.i3s.unice.fr/~cpjm/misc/mccs.html
 Source:         http://www.i3s.unice.fr/~cpjm/misc/mccs-%{version}-srcs.tgz
-
-BuildRequires:  gcc-c++
+# PATCH-FIX-UPSTREAM mccs-gcc11-fix.patch [email protected] -- Fix 
compilation with GCC11
+Patch0:         mccs-gcc11-fix.patch
 BuildRequires:  bison
 BuildRequires:  flex
-BuildRequires:  suitesparse-devel
+BuildRequires:  gcc-c++
 BuildRequires:  lpsolve-devel
-
+BuildRequires:  suitesparse-devel
 
 %description
 mccs (which stands for Multi Criteria CUDF Solver) is a CUDF problem solver
@@ -40,22 +40,20 @@
 its task. mccs can use a wide set of underlying solvers like Cplex, Gurobi,
 Lpsolver, Glpk, CbC, SCIP or WBO.
 
-
 %prep
-%setup -q -n %{name}-%{version}
+%autosetup -p1 -n %{name}-%{version}
 
 %build
-make USELPSOLVE=1 LPSOLVEDIR=%{_libdir} LPSOLVEINC=%{_includedir}/lpsolve 
CCCOPT="$RPM_OPT_FLAGS"
+# Parallel build does not work
+make USELPSOLVE=1 LPSOLVEDIR=%{_libdir} LPSOLVEINC=%{_includedir}/lpsolve 
CCCOPT="%{optflags}"
 
 %install
 mkdir -p %{buildroot}%{_bindir}
 cp mccs %{buildroot}%{_bindir}
 
-
 %files
 %doc CHANGES README
 %license LICENCE
 %{_bindir}/mccs
 
-
 %changelog

++++++ mccs-gcc11-fix.patch ++++++
Index: mccs-1.1/libsrcs/cudf.h
===================================================================
--- 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

Reply via email to