[arch-commits] Commit in glpk/repos (3 files)

Evangelos Foutras foutrelis at archlinux.org
Sat May 16 13:59:10 UTC 2020


    Date: Saturday, May 16, 2020 @ 13:59:10
  Author: foutrelis
Revision: 384714

archrelease: copy trunk to staging-x86_64

Added:
  glpk/repos/staging-x86_64/
  glpk/repos/staging-x86_64/PKGBUILD
    (from rev 384713, glpk/trunk/PKGBUILD)
  glpk/repos/staging-x86_64/glpk-remove-warnings.patch
    (from rev 384713, glpk/trunk/glpk-remove-warnings.patch)

----------------------------+
 PKGBUILD                   |   36 ++++++++++++++++++++++++++++++++++++
 glpk-remove-warnings.patch |   19 +++++++++++++++++++
 2 files changed, 55 insertions(+)

Copied: glpk/repos/staging-x86_64/PKGBUILD (from rev 384713, glpk/trunk/PKGBUILD)
===================================================================
--- staging-x86_64/PKGBUILD	                        (rev 0)
+++ staging-x86_64/PKGBUILD	2020-05-16 13:59:10 UTC (rev 384714)
@@ -0,0 +1,36 @@
+# Maintainer: Ronald van Haren <ronald.archlinux.org>
+# Contributor: bzklrm <bzklrm at gmail.com>
+# Additional contributors Senjin, Xavier, dundee
+
+pkgname=glpk
+pkgver=4.65
+pkgrel=3
+pkgdesc="GNU Linear Programming Kit : solve LP, MIP and other problems."
+arch=('x86_64')
+url="https://www.gnu.org/software/glpk/glpk.html"
+license=('GPL')
+depends=('gmp')
+source=(https://ftp.gnu.org/gnu/glpk/${pkgname}-${pkgver}.tar.gz{,.sig} glpk-remove-warnings.patch)
+sha1sums=('d9b607a9cf3a25b754a0cd9a842ea5043f8604db'
+          '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}"
+
+  ./configure --prefix=/usr --with-gmp
+  make
+}
+
+package(){
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+  install -Dm644 doc/glpk.pdf "${pkgdir}/usr/share/doc/glpk/glpk.pdf"
+  install -Dm644 doc/gmpl.pdf "${pkgdir}/usr/share/doc/glpk/gmpl.pdf"
+}

Copied: glpk/repos/staging-x86_64/glpk-remove-warnings.patch (from rev 384713, glpk/trunk/glpk-remove-warnings.patch)
===================================================================
--- staging-x86_64/glpk-remove-warnings.patch	                        (rev 0)
+++ staging-x86_64/glpk-remove-warnings.patch	2020-05-16 13:59:10 UTC (rev 384714)
@@ -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