[packages/glpk] Up to 5.0

arekm arekm at pld-linux.org
Fri May 8 17:34:54 CEST 2026


commit 7433eb4e559b78bc109642c7b4f739fb1e624905
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Fri May 8 17:34:44 2026 +0200

    Up to 5.0

 glpk-minisat-bool.patch | 19 +++++++++++++++++++
 glpk.spec               |  8 +++++---
 2 files changed, 24 insertions(+), 3 deletions(-)
---
diff --git a/glpk.spec b/glpk.spec
index c702ab0..a12b278 100644
--- a/glpk.spec
+++ b/glpk.spec
@@ -1,14 +1,15 @@
 Summary:	Solver LP and MIP problems
 Summary(pl.UTF-8):	Narzędzie do rozwiązywania problemów LP i MIP
 Name:		glpk
-Version:	4.65
-Release:	2
+Version:	5.0
+Release:	1
 License:	GPL v3+
 Group:		Applications/Math
 Source0:	https://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
-# Source0-md5:	470a984a8b1c0e027bdb6d5859063fe8
+# Source0-md5:	91499dc0c139b221846cae60e5c7d222
 Patch0:		%{name}-dl.patch
 Patch1:		%{name}-sonames.patch
+Patch2:		%{name}-minisat-bool.patch
 URL:		http://www.gnu.org/software/glpk/glpk.html
 BuildRequires:	autoconf >= 2.50
 BuildRequires:	automake
@@ -70,6 +71,7 @@ Narzędzie do rozwiązywania problemów LP i MIP - biblioteka statyczna.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %{__sed} -i -e 's, at libodbc_soname@,%{libodbc_soname},' \
             -e 's, at libmysqlclient_soname@,%{libmysqlclient_soname},' configure.ac
diff --git a/glpk-minisat-bool.patch b/glpk-minisat-bool.patch
new file mode 100644
index 0000000..7e86a57
--- /dev/null
+++ b/glpk-minisat-bool.patch
@@ -0,0 +1,19 @@
+--- glpk-5.0/src/minisat/minisat.h.orig	2026-05-08 17:14:47.750911564 +0200
++++ glpk-5.0/src/minisat/minisat.h	2026-05-08 17:14:47.815072497 +0200
+@@ -34,10 +34,13 @@
+ /*====================================================================*/
+ /* Simple types: */
+ 
++#if defined(__STDC_VERSION__) && __STDC_VERSION__ >= 199901L
++# include <stdbool.h>
++#else
+ typedef int bool;
+-
+-#define true  1
+-#define false 0
++# define true  1
++# define false 0
++#endif
+ 
+ typedef int  lit;
+ #if 0 /* by mao */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/glpk.git/commitdiff/7433eb4e559b78bc109642c7b4f739fb1e624905



More information about the pld-cvs-commit mailing list