summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAron Griffis <agriffis@gentoo.org>2002-07-06 15:44:21 +0000
committerAron Griffis <agriffis@gentoo.org>2002-07-06 15:44:21 +0000
commit3d28173cd545a73550237955c314321ebe7eb657 (patch)
treebdf2696851f296918a25fd036d8f14de300b6021 /dev-libs/gmp
parentrepoman cleanups -- everyone join in :) (diff)
downloadgentoo-2-3d28173cd545a73550237955c314321ebe7eb657.tar.gz
gentoo-2-3d28173cd545a73550237955c314321ebe7eb657.tar.bz2
gentoo-2-3d28173cd545a73550237955c314321ebe7eb657.zip
Fix gmp-4.1 with patch from maintainer to keep sawfish from crashing.
Diffstat (limited to 'dev-libs/gmp')
-rw-r--r--dev-libs/gmp/ChangeLog9
-rw-r--r--dev-libs/gmp/files/digest-gmp-4.1-r11
-rw-r--r--dev-libs/gmp/files/randraw.c.41.diff20
-rw-r--r--dev-libs/gmp/gmp-4.1-r1.ebuild42
4 files changed, 71 insertions, 1 deletions
diff --git a/dev-libs/gmp/ChangeLog b/dev-libs/gmp/ChangeLog
index 1b2e1fe5dd27..b8b2638f998c 100644
--- a/dev-libs/gmp/ChangeLog
+++ b/dev-libs/gmp/ChangeLog
@@ -1,6 +1,13 @@
# ChangeLog for dev-libs/gmp
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL
-# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.3 2002/07/05 07:04:43 raker Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/ChangeLog,v 1.4 2002/07/06 15:44:21 agriffis Exp $
+
+*gmp-4.1-r1 (06 Jul 2002)
+
+ 06 Jul 2002; Aron Griffis <agriffis@gentoo.org> gmp-4.1-r1.ebuild:
+
+ Add patch to keep sawfish from dying left and right. The patch comes from
+ http://swox.com/gmp/#STATUS
*gmp-4.1 (05 Jul 2002)
diff --git a/dev-libs/gmp/files/digest-gmp-4.1-r1 b/dev-libs/gmp/files/digest-gmp-4.1-r1
new file mode 100644
index 000000000000..ba4a0292f8d7
--- /dev/null
+++ b/dev-libs/gmp/files/digest-gmp-4.1-r1
@@ -0,0 +1 @@
+MD5 d6afbdf7e02615fa16867896ce0e03d3 gmp-4.1.tar.gz 2145387
diff --git a/dev-libs/gmp/files/randraw.c.41.diff b/dev-libs/gmp/files/randraw.c.41.diff
new file mode 100644
index 000000000000..7eb4ff06937e
--- /dev/null
+++ b/dev-libs/gmp/files/randraw.c.41.diff
@@ -0,0 +1,20 @@
+Index: randraw.c
+===================================================================
+RCS file: /home/cvsfiles/gmp/randraw.c,v
+retrieving revision 1.18
+retrieving revision 1.19
+diff -u -r1.18 -r1.19
+--- randraw.c 2002/05/14 16:59:44 1.18
++++ randraw.c 2002/06/09 08:12:03 1.19
+@@ -112,10 +112,8 @@
+ if (seedn == 0)
+ {
+ /* Seed is 0. Result is C % M. Assume table is sensibly stored,
+- with C smaller than M*/
++ with C smaller than M. */
+ *rp = c;
+-
+- ASSERT_ALWAYS (((mp_limb_t) 1 << m2exp) > c);
+
+ *seedp = c;
+ SIZ (rstate->_mp_seed) = 1;
diff --git a/dev-libs/gmp/gmp-4.1-r1.ebuild b/dev-libs/gmp/gmp-4.1-r1.ebuild
new file mode 100644
index 000000000000..75c9af438499
--- /dev/null
+++ b/dev-libs/gmp/gmp-4.1-r1.ebuild
@@ -0,0 +1,42 @@
+# Copyright 1999-2002 Gentoo Technologies, Inc.
+# Distributed under the terms of the GNU General Public License, v2 or later
+# Author Achim Gottinger <achim@gentoo.org>
+# $Header: /var/cvsroot/gentoo-x86/dev-libs/gmp/gmp-4.1-r1.ebuild,v 1.1 2002/07/06 15:44:21 agriffis Exp $
+
+DESCRIPTION="Library for arithmetic on arbitrary precision integers, rational numbers, and floating-point numbers"
+SRC_URI="ftp://prep.ai.mit.edu/gnu/gmp/${P}.tar.gz"
+HOMEPAGE="http://www.gnu.org/software/gmp/gmp.html"
+DEPEND="virtual/glibc
+ >=sys-devel/m4-1.4p"
+RDEPEND="virtual/glibc"
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ patch < ${FILESDIR}/randraw.c.41.diff
+}
+
+src_compile() {
+ ./configure \
+ --build=${CHOST} \
+ --host=${CHOST} \
+ --target=${CHOST} \
+ --prefix=/usr \
+ --infodir=/usr/share/info \
+ --mandir=/usr/share/man \
+ --sysconfdir=/etc \
+ --localstatedir=/var/state/gmp \
+ --enable-cxx \
+ --enable-mpbsd \
+ --enable-mpfr || die "configure failed"
+
+ emake || die "make failed"
+}
+
+src_install() {
+ make DESTDIR=${D} install || die
+
+ dodoc AUTHORS ChangeLog COPYING* NEWS README
+ dodoc doc/configuration doc/isa_abi_headache
+ dohtml -r doc
+}