[arch-commits] Commit in glpk/trunk (PKGBUILD glpk-remove-warnings.patch)

Antonio Rojas arojas at archlinux.org
Sat Aug 18 07:06:13 UTC 2018


    Date: Saturday, August 18, 2018 @ 07:06:12
  Author: arojas
Revision: 332210

Backport upstream patch to remove warning spam from Sage's doctests

Added:
  glpk/trunk/glpk-remove-warnings.patch
Modified:
  glpk/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |   12 +++++++++---
 glpk-remove-warnings.patch |   19 +++++++++++++++++++
 2 files changed, 28 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-08-18 03:11:25 UTC (rev 332209)
+++ PKGBUILD	2018-08-18 07:06:12 UTC (rev 332210)
@@ -5,17 +5,23 @@
 
 pkgname=glpk
 pkgver=4.65
-pkgrel=1
+pkgrel=2
 pkgdesc="GNU Linear Programming Kit : solve LP, MIP and other problems."
 arch=('x86_64')
 url="http://www.gnu.org/software/glpk/glpk.html"
 license=('GPL')
 depends=('gmp')
-source=(http://ftp.gnu.org/gnu/glpk/${pkgname}-${pkgver}.tar.gz{,.sig})
+source=(http://ftp.gnu.org/gnu/glpk/${pkgname}-${pkgver}.tar.gz{,.sig} glpk-remove-warnings.patch)
 sha1sums=('d9b607a9cf3a25b754a0cd9a842ea5043f8604db'
-          'SKIP')
+          'SKIP'
+          '6f4e904c5dc88a8b43391e030496644d77e39163')
 validpgpkeys=('A2B56CCB42220C06481335BAD17BF2305981E818') # Andrew Makhorin
 
+prepare() {
+  cd $pkgname-$pkgver
+  patch -p1 -i ../glpk-remove-warnings.patch # https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=891465
+}
+
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
 

Added: glpk-remove-warnings.patch
===================================================================
--- glpk-remove-warnings.patch	                        (rev 0)
+++ glpk-remove-warnings.patch	2018-08-18 07:06:12 UTC (rev 332210)
@@ -0,0 +1,19 @@
+--- glpk-4.65/src/draft/glpios03.c.orig	2018-08-18 07:02:32.165492793 +0000
++++ glpk-4.65/src/draft/glpios03.c	2018-08-18 07:03:47.775715038 +0000
+@@ -920,13 +920,10 @@
+ #if 0
+       ((glp_iocp *)T->parm)->msg_lev = GLP_MSG_DBG;
+ #endif
+-#if 1 /* 16/III-2016 */
++#if 1 /* 01/III-2018 */
+       if (((glp_iocp *)T->parm)->flip)
+-#if 0 /* 20/I-2018 */
+-         xprintf("WARNING: LONG-STEP DUAL SIMPLEX WILL BE USED\n");
+-#else
+-         xprintf("Long-step dual simplex will be used\n");
+-#endif
++         if (T->parm->msg_lev >= GLP_MSG_ALL)
++            xprintf("Long-step dual simplex will be used\n");
+ #endif
+       /* on entry to the B&B driver it is assumed that the active list
+          contains the only active (i.e. root) subproblem, which is the



More information about the arch-commits mailing list