glpk: fix build with gcc15 (#468113)

This commit is contained in:
Mauricio Collares
2025-12-05 22:12:39 +00:00
committed by GitHub
+9
View File
@@ -3,6 +3,7 @@
stdenv,
fetchurl,
fetchpatch,
fetchDebianPatch,
libmysqlclient,
# Excerpt from glpk's INSTALL file:
# This feature allows the exact simplex solver to use the GNU MP
@@ -51,6 +52,14 @@ stdenv.mkDerivation rec {
url = "https://raw.githubusercontent.com/sagemath/sage/d3c1f607e32f964bf0cab877a63767c86fd00266/build/pkgs/glpk/patches/error_recovery.patch";
sha256 = "sha256-2hNtUEoGTFt3JgUvLH3tPWnz+DZcXNhjXzS+/V89toA=";
})
# Fix build with gcc15
(fetchDebianPatch {
inherit pname version;
debianRevision = "2";
patch = "gcc-15.patch";
hash = "sha256-wuWPYqJKIKJAJaeJXW7lhvapu8Fd3zHjLAv7Ve7q8Qw=";
})
];
postPatch =