[arch-commits] Commit in singular/trunk (PKGBUILD singular-gcd-Zx.patch)

Antonio Rojas arojas at archlinux.org
Sat Dec 22 23:03:21 UTC 2018


    Date: Saturday, December 22, 2018 @ 23:03:20
  Author: arojas
Revision: 417572

Update to 4.1.1.p4

Modified:
  singular/trunk/PKGBUILD
Deleted:
  singular/trunk/singular-gcd-Zx.patch

-----------------------+
 PKGBUILD              |   19 +++++--------------
 singular-gcd-Zx.patch |   23 -----------------------
 2 files changed, 5 insertions(+), 37 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-12-22 22:33:08 UTC (rev 417571)
+++ PKGBUILD	2018-12-22 23:03:20 UTC (rev 417572)
@@ -3,10 +3,10 @@
 
 pkgname=singular
 _majver=4-1-1
-_patchver=3
+_patchver=4
 pkgver=${_majver//-/.}.p${_patchver}
 #pkgver=${_majver//-/.}
-pkgrel=4
+pkgrel=1
 pkgdesc="Computer Algebra System for polynomial computations"
 arch=(x86_64)
 url="http://www.singular.uni-kl.de/"
@@ -14,18 +14,11 @@
 depends=(flint cddlib) # polymake
 makedepends=(doxygen python2)
 optdepends=('python2: Python interface')
-source=("http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/$_majver/singular-${_majver//-/.}p${_patchver}.tar.gz"
-        singular-gcd-Zx.patch)
+source=("http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/$_majver/singular-${_majver//-/.}p${_patchver}.tar.gz")
 #source=("http://www.mathematik.uni-kl.de/ftp/pub/Math/Singular/SOURCES/$_majver/singular-${_majver//-/.}.tar.gz")
-sha256sums=('551b41060c06878e60119f0283edd09ca7a34d47755fe67d04f5cf9bea4a12e3'
-            '7c868ff33501b47d2dc0eaab5e8a988f36bb79f744d902a4964f2d45cf8cefbf')
+sha256sums=('79d6ed8489ef08eed4d4f4b8f8be4ab4da70f611e0b8889fdc6f825f25981a84')
 options=(!zipman)
 
-prepare() {
-  cd singular-${_majver//-/.}
-  patch -p1 -i ../singular-gcd-Zx.patch # Fix gcd in Z[x]
-}
-
 build() {
   cd singular-${_majver//-/.}
   ./configure --prefix=/usr --libexecdir=/usr/lib
@@ -37,7 +30,5 @@
   make DESTDIR="$pkgdir" install
 
   # Fix ownership
-  chown -R root:root "$pkgdir"/usr/share/singular/html "$pkgdir"/usr/share/info
-  # Don't enforce c++11, it breaks build of polymake
-  sed -e 's/-std=c++11//' -i "$pkgdir"/usr/bin/libsingular-config -i "$pkgdir"/usr/lib/pkgconfig/*.pc
+  chown -R root:root "$pkgdir"/usr/share/singular/html "$pkgdir"/usr/share/info "$pkgdir"/usr/share/doc/singular.idx
 }

Deleted: singular-gcd-Zx.patch
===================================================================
--- singular-gcd-Zx.patch	2018-12-22 22:33:08 UTC (rev 417571)
+++ singular-gcd-Zx.patch	2018-12-22 23:03:20 UTC (rev 417572)
@@ -1,23 +0,0 @@
-From 55ec4f789df5836f21154a2d6e25c0e9cb8cf814 Mon Sep 17 00:00:00 2001
-From: Hans Schoenemann <hannes at mathematik.uni-kl.de>
-Date: Wed, 1 Aug 2018 15:35:44 +0200
-Subject: [PATCH] fix: tr. #834 (gcd in Z[x])
-
----
-
-diff --git a/kernel/polys.cc b/kernel/polys.cc
-index 3c66ccd5d2..a7b2f47ec6 100644
---- a/kernel/polys.cc
-+++ b/kernel/polys.cc
-@@ -180,8 +180,9 @@ poly singclap_gcd ( poly f, poly g, const ring r )
-   }
-   else         return f; // g==0 => gcd=f (but do a p_Cleardenom/pNorm)
-   if (f==NULL) return g; // f==0 => gcd=g (but do a p_Cleardenom/pNorm)
--  if(p_IsConstant(f,currRing)
--  ||p_IsConstant(g,currRing))
-+  if(!rField_is_Ring(currRing)
-+  && (p_IsConstant(f,currRing)
-+  ||p_IsConstant(g,currRing)))
-   {
-     res=p_One(currRing);
-   }



More information about the arch-commits mailing list