[arch-commits] Commit in gmp/repos (8 files)

Allan McRae allan at archlinux.org
Sat Feb 11 20:18:19 EST 2012


    Date: Saturday, February 11, 2012 @ 20:18:18
  Author: allan
Revision: 149984

archrelease: copy trunk to testing-i686, testing-x86_64

Added:
  gmp/repos/testing-i686/
  gmp/repos/testing-i686/538dfce27f41.patch
    (from rev 149983, gmp/trunk/538dfce27f41.patch)
  gmp/repos/testing-i686/PKGBUILD
    (from rev 149983, gmp/trunk/PKGBUILD)
  gmp/repos/testing-i686/gmp.install
    (from rev 149983, gmp/trunk/gmp.install)
  gmp/repos/testing-x86_64/
  gmp/repos/testing-x86_64/538dfce27f41.patch
    (from rev 149983, gmp/trunk/538dfce27f41.patch)
  gmp/repos/testing-x86_64/PKGBUILD
    (from rev 149983, gmp/trunk/PKGBUILD)
  gmp/repos/testing-x86_64/gmp.install
    (from rev 149983, gmp/trunk/gmp.install)

-----------------------------------+
 testing-i686/538dfce27f41.patch   |   38 ++++++++++++++++++++++++++++++++++++
 testing-i686/PKGBUILD             |   37 +++++++++++++++++++++++++++++++++++
 testing-i686/gmp.install          |   20 ++++++++++++++++++
 testing-x86_64/538dfce27f41.patch |   38 ++++++++++++++++++++++++++++++++++++
 testing-x86_64/PKGBUILD           |   37 +++++++++++++++++++++++++++++++++++
 testing-x86_64/gmp.install        |   20 ++++++++++++++++++
 6 files changed, 190 insertions(+)

Copied: gmp/repos/testing-i686/538dfce27f41.patch (from rev 149983, gmp/trunk/538dfce27f41.patch)
===================================================================
--- testing-i686/538dfce27f41.patch	                        (rev 0)
+++ testing-i686/538dfce27f41.patch	2012-02-12 01:18:18 UTC (rev 149984)
@@ -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;
+

Copied: gmp/repos/testing-i686/PKGBUILD (from rev 149983, gmp/trunk/PKGBUILD)
===================================================================
--- testing-i686/PKGBUILD	                        (rev 0)
+++ testing-i686/PKGBUILD	2012-02-12 01:18:18 UTC (rev 149984)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gmp
+pkgver=5.0.4
+pkgrel=1
+pkgdesc="A free library for arbitrary precision arithmetic"
+arch=('i686' 'x86_64')
+url="http://gmplib.org/"
+depends=('gcc-libs' 'sh')
+license=('LGPL3')
+options=(!libtool)
+install=gmp.install
+source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.xz{,.sig})
+md5sums=('0881f4ff2617226c673fc534ac39d448'
+         'f9e448fff9eaeccdde6ee1f1df00c988')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  
+  [ "${CARCH}" = "i686" ] && export ABI="32"
+  ./configure --build=${CHOST} \
+    --prefix=/usr --infodir=/usr/share/info \
+    --enable-cxx
+  make
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make check
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}

Copied: gmp/repos/testing-i686/gmp.install (from rev 149983, gmp/trunk/gmp.install)
===================================================================
--- testing-i686/gmp.install	                        (rev 0)
+++ testing-i686/gmp.install	2012-02-12 01:18:18 UTC (rev 149984)
@@ -0,0 +1,20 @@
+info_dir=usr/share/info
+info_files=(gmp.info gmp.info-1 gmp.info-2)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}

Copied: gmp/repos/testing-x86_64/538dfce27f41.patch (from rev 149983, gmp/trunk/538dfce27f41.patch)
===================================================================
--- testing-x86_64/538dfce27f41.patch	                        (rev 0)
+++ testing-x86_64/538dfce27f41.patch	2012-02-12 01:18:18 UTC (rev 149984)
@@ -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;
+

Copied: gmp/repos/testing-x86_64/PKGBUILD (from rev 149983, gmp/trunk/PKGBUILD)
===================================================================
--- testing-x86_64/PKGBUILD	                        (rev 0)
+++ testing-x86_64/PKGBUILD	2012-02-12 01:18:18 UTC (rev 149984)
@@ -0,0 +1,37 @@
+# $Id$
+# Maintainer: Allan McRae <allan at archlinux.org>
+# Maintainer: Jan de Groot <jgc at archlinux.org>
+
+pkgname=gmp
+pkgver=5.0.4
+pkgrel=1
+pkgdesc="A free library for arbitrary precision arithmetic"
+arch=('i686' 'x86_64')
+url="http://gmplib.org/"
+depends=('gcc-libs' 'sh')
+license=('LGPL3')
+options=(!libtool)
+install=gmp.install
+source=(ftp://ftp.gnu.org/gnu/gmp/gmp-${pkgver}.tar.xz{,.sig})
+md5sums=('0881f4ff2617226c673fc534ac39d448'
+         'f9e448fff9eaeccdde6ee1f1df00c988')
+
+build() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  
+  [ "${CARCH}" = "i686" ] && export ABI="32"
+  ./configure --build=${CHOST} \
+    --prefix=/usr --infodir=/usr/share/info \
+    --enable-cxx
+  make
+}
+
+check() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make check
+}
+
+package() {
+  cd "${srcdir}/${pkgname}-${pkgver}"
+  make DESTDIR="${pkgdir}" install
+}

Copied: gmp/repos/testing-x86_64/gmp.install (from rev 149983, gmp/trunk/gmp.install)
===================================================================
--- testing-x86_64/gmp.install	                        (rev 0)
+++ testing-x86_64/gmp.install	2012-02-12 01:18:18 UTC (rev 149984)
@@ -0,0 +1,20 @@
+info_dir=usr/share/info
+info_files=(gmp.info gmp.info-1 gmp.info-2)
+
+post_install() {
+  [ -x usr/bin/install-info ] || return 0
+  for f in ${info_files[@]}; do
+    install-info ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}
+
+post_upgrade() {
+  post_install $1
+}
+
+pre_remove() {
+  [ -x usr/bin/install-info ] || return 0
+  for f in ${info_files[@]}; do
+    install-info --delete ${info_dir}/$f.gz ${info_dir}/dir 2> /dev/null
+  done
+}



More information about the arch-commits mailing list