Correct crash on coin-or-OS check

This commit is contained in:
pcpa 2015-06-22 22:37:34 -03:00
parent ed8db652b2
commit 0710d24d1d
2 changed files with 21 additions and 1 deletions

12
coin-or-Clp-string.patch Normal file
View File

@ -0,0 +1,12 @@
diff -up Clp-1.16.6/src/CbcOrClpParam.cpp.orig Clp-1.16.6/src/CbcOrClpParam.cpp
--- Clp-1.16.6/src/CbcOrClpParam.cpp.orig 2015-06-21 18:26:14.891917826 -0300
+++ Clp-1.16.6/src/CbcOrClpParam.cpp 2015-06-21 18:26:26.561918565 -0300
@@ -48,7 +48,7 @@ static char coin_prompt[] = "Clp:";
#include "AbcCommon.hpp"
#endif
static bool doPrinting = true;
-std::string afterEquals = "";
+static std::string afterEquals = "";
static char printArray[200];
#if COIN_INT_MAX==0
#undef COIN_INT_MAX

View File

@ -4,7 +4,7 @@ Name: coin-or-%{module}
Group: Applications/Engineering
Summary: Coin-or linear programming
Version: 1.16.6
Release: 4%{?dist}
Release: 5%{?dist}
License: EPL
URL: http://projects.coin-or.org/%{module}
Source0: http://www.coin-or.org/download/pkgsource/%{module}/%{module}-%{version}.tgz
@ -24,6 +24,10 @@ BuildRequires: zlib-devel
# Install documentation in standard rpm directory
Patch0: %{name}-docdir.patch
# Correct crash on coin-or-OS %%check
# This patch will be in next Clp release
Patch1: %{name}-string.patch
%description
Clp (Coin-or linear programming) is an open-source linear programming
solver written in C++. It is primarily meant to be used as a callable
@ -51,6 +55,7 @@ This package contains the documentation for %{name}.
%prep
%setup -q -n %{module}-%{version}
%patch0 -p1
%patch1 -p1
%build
%configure
@ -89,6 +94,9 @@ LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test
%doc %{_docdir}/%{name}/html
%changelog
* Mon Jun 22 2015 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.16.6-5
- Correct crash on coin-or-OS check
* Sat Jun 20 2015 pcpa <paulo.cesar.pereira.de.andrade@gmail.com> - 1.16.6-4
- Bump release.