[arch-commits] Commit in gmp/trunk (538dfce27f41.patch PKGBUILD)

Allan McRae allan at archlinux.org
Mon Jul 18 07:43:06 EDT 2011


    Date: Monday, July 18, 2011 @ 07:43:05
  Author: allan
Revision: 131961

upgpkg: gmp 5.0.2-2
upstream bug fix patch

Added:
  gmp/trunk/538dfce27f41.patch
Modified:
  gmp/trunk/PKGBUILD

--------------------+
 538dfce27f41.patch |   38 ++++++++++++++++++++++++++++++++++++++
 PKGBUILD           |   10 +++++++---
 2 files changed, 45 insertions(+), 3 deletions(-)

Added: 538dfce27f41.patch
===================================================================
--- 538dfce27f41.patch	                        (rev 0)
+++ 538dfce27f41.patch	2011-07-18 11:43:05 UTC (rev 131961)
@@ -0,0 +1,38 @@
+
+# HG changeset patch
+# User Torbjorn Granlund <tege at gmplib.org>
+# Date 1310730221 -7200
+# Node ID 538dfce27f410b910d5e2f011119269e224d16a3
+# Parent  03ed209dd7efd4f4fff0ce297bb3a8f7e7ba2366
+(mpn_dcpi1_bdiv_q): Get mpn_sub_1 size argument right.
+
+diff -r 03ed209dd7ef -r 538dfce27f41 mpn/generic/dcpi1_bdiv_q.c
+--- a/mpn/generic/dcpi1_bdiv_q.c	Thu Jun 16 12:22:24 2011 +0200
++++ b/mpn/generic/dcpi1_bdiv_q.c	Fri Jul 15 13:43:41 2011 +0200
+@@ -7,7 +7,7 @@
+    SAFE TO REACH THEM THROUGH DOCUMENTED INTERFACES.  IN FACT, IT IS ALMOST
+    GUARANTEED THAT THEY WILL CHANGE OR DISAPPEAR IN A FUTURE GMP RELEASE.
+ 
+-Copyright 2006, 2007, 2009, 2010 Free Software Foundation, Inc.
++Copyright 2006, 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
+ 
+ This file is part of the GNU MP Library.
+ 
+@@ -28,7 +28,6 @@
+ #include "gmp-impl.h"
+ 
+ 
+-
+ mp_size_t
+ mpn_dcpi1_bdiv_q_n_itch (mp_size_t n)
+ {
+@@ -130,7 +129,7 @@
+       qn = nn - qn;
+       while (qn > dn)
+ 	{
+-	  mpn_sub_1 (np + dn, np + dn, qn, cy);
++	  mpn_sub_1 (np + dn, np + dn, qn - dn, cy);
+ 	  cy = mpn_dcpi1_bdiv_qr_n (qp, np, dp, dn, dinv, tp);
+ 	  qp += dn;
+ 	  np += dn;
+

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2011-07-18 07:04:57 UTC (rev 131960)
+++ PKGBUILD	2011-07-18 11:43:05 UTC (rev 131961)
@@ -4,7 +4,7 @@
 
 pkgname=gmp
 pkgver=5.0.2
-pkgrel=1
+pkgrel=2
 pkgdesc="A free library for arbitrary precision arithmetic"
 arch=('i686' 'x86_64')
 url="http://gmplib.org/"
@@ -12,11 +12,15 @@
 license=('LGPL3')
 options=(!libtool)
 install=gmp.install
-source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2)
-md5sums=('0bbaedc82fb30315b06b1588b9077cd3')
+source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.bz2
+        538dfce27f41.patch)
+md5sums=('0bbaedc82fb30315b06b1588b9077cd3'
+         'a769be9c41618ca9c35d83375e7097d0')
 
 build() {
   cd "${srcdir}/${pkgname}-${pkgver}"
+  patch -Np1 -i $srcdir/538dfce27f41.patch
+  
   [ "${CARCH}" = "i686" ] && export ABI="32"
   ./configure --build=${CHOST} \
     --prefix=/usr --infodir=/usr/share/info \



More information about the arch-commits mailing list