diff options
author | Andrey Grozin <grozin@gentoo.org> | 2009-07-03 12:56:35 +0000 |
---|---|---|
committer | Andrey Grozin <grozin@gentoo.org> | 2009-07-03 12:56:35 +0000 |
commit | aa8f330a9af3aa84d97e5235c79dcfd4064da5ac (patch) | |
tree | 3bd4d07c0c9500362312293be022aec3bcf1b209 /sci-libs/arprec | |
parent | x11-base/xorg-server: bump to 1.6.1.902, add a couple patches to tentatively ... (diff) | |
download | gentoo-2-aa8f330a9af3aa84d97e5235c79dcfd4064da5ac.tar.gz gentoo-2-aa8f330a9af3aa84d97e5235c79dcfd4064da5ac.tar.bz2 gentoo-2-aa8f330a9af3aa84d97e5235c79dcfd4064da5ac.zip |
Added patch for compiling by gcc-4.4 (bug #273996), thanks to Victor Ostorga <vostorga@gmail.com>
(Portage version: 2.2_rc33/cvs/Linux i686)
Diffstat (limited to 'sci-libs/arprec')
-rw-r--r-- | sci-libs/arprec/ChangeLog | 7 | ||||
-rw-r--r-- | sci-libs/arprec/arprec-2.2.2.ebuild | 7 | ||||
-rw-r--r-- | sci-libs/arprec/files/arprec-2.2.2-gcc44.patch | 59 |
3 files changed, 71 insertions, 2 deletions
diff --git a/sci-libs/arprec/ChangeLog b/sci-libs/arprec/ChangeLog index e2f61595ca4c..801db93a508f 100644 --- a/sci-libs/arprec/ChangeLog +++ b/sci-libs/arprec/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sci-libs/arprec # Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/ChangeLog,v 1.1 2009/04/13 21:48:34 grozin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/ChangeLog,v 1.2 2009/07/03 12:56:35 grozin Exp $ + + 03 Jul 2009; Andrey Grozin <grozin@gentoo.org> arprec-2.2.2.ebuild, + +files/arprec-2.2.2-gcc44.patch: + Added patch for compiling by gcc-4.4 (bug #273996), thanks to Victor + Ostorga <vostorga@gmail.com> *arprec-2.2.2 (14 Apr 2009) diff --git a/sci-libs/arprec/arprec-2.2.2.ebuild b/sci-libs/arprec/arprec-2.2.2.ebuild index 21a0b45cb7f2..01413dcaaf5e 100644 --- a/sci-libs/arprec/arprec-2.2.2.ebuild +++ b/sci-libs/arprec/arprec-2.2.2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/arprec-2.2.2.ebuild,v 1.1 2009/04/13 21:48:34 grozin Exp $ +# $Header: /var/cvsroot/gentoo-x86/sci-libs/arprec/arprec-2.2.2.ebuild,v 1.2 2009/07/03 12:56:35 grozin Exp $ EAPI=2 DESCRIPTION="Arbitrary precision float arithmetics and functions" IUSE="fortran qd" @@ -13,6 +13,11 @@ SRC_URI="http://crd.lbl.gov/~dhbailey/mpdist/${P}.tar.gz" DEPEND="qd? ( sci-libs/qd )" +src_prepare() { + # bug #273996 + epatch "${FILESDIR}"/${P}-gcc44.patch +} + src_configure() { econf $(use_enable fortran enable_fortran) \ $(use_enable qd enable_qd) diff --git a/sci-libs/arprec/files/arprec-2.2.2-gcc44.patch b/sci-libs/arprec/files/arprec-2.2.2-gcc44.patch new file mode 100644 index 000000000000..90305394c314 --- /dev/null +++ b/sci-libs/arprec/files/arprec-2.2.2-gcc44.patch @@ -0,0 +1,59 @@ +diff -NrU5 arprec-2.2.2.original/src/dotd.cpp arprec-2.2.2/src/dotd.cpp +--- arprec-2.2.2.original/src/dotd.cpp 2009-07-02 17:59:29.000000000 -0600 ++++ arprec-2.2.2/src/dotd.cpp 2009-07-02 18:00:46.000000000 -0600 +@@ -8,10 +8,11 @@ + * Copyright (c) 2002 + * + */ + #include <arprec/mp_real.h> + #include "small_inline.h" ++#include <cstdio> + + using std::cerr; + using std::endl; + + void mp_real::mpdotd(int n, int isa, const mp_real a[], +diff -NrU5 arprec-2.2.2.original/src/out.cpp arprec-2.2.2/src/out.cpp +--- arprec-2.2.2.original/src/out.cpp 2009-07-02 17:59:29.000000000 -0600 ++++ arprec-2.2.2/src/out.cpp 2009-07-02 18:09:40.000000000 -0600 +@@ -10,10 +10,11 @@ + */ + #define _CRT_SECURE_NO_DEPRECATE + #include <cassert> + #include <arprec/mp_real.h> + #include "small_inline.h" ++#include <cstdio> + + using std::cerr; + using std::endl; + + /* This routine is deprecated. +diff -NrU5 arprec-2.2.2.original/src/outc.cpp arprec-2.2.2/src/outc.cpp +--- arprec-2.2.2.original/src/outc.cpp 2009-07-02 17:59:29.000000000 -0600 ++++ arprec-2.2.2/src/outc.cpp 2009-07-02 18:07:15.000000000 -0600 +@@ -10,10 +10,11 @@ + */ + #define _CRT_SECURE_NO_DEPRECATE + #include <cassert> + #include <arprec/mp_real.h> + #include "small_inline.h" ++#include <cstdio> + + using std::cerr; + using std::endl; + + /* This routine is deprecated. +diff -NrU5 arprec-2.2.2.original/src/outx.cpp arprec-2.2.2/src/outx.cpp +--- arprec-2.2.2.original/src/outx.cpp 2009-07-02 17:59:29.000000000 -0600 ++++ arprec-2.2.2/src/outx.cpp 2009-07-02 18:11:30.000000000 -0600 +@@ -1,9 +1,10 @@ + #define _CRT_SECURE_NO_DEPRECATE + #include <arprec/mp_real.h> + #include <arprec/mp_complex.h> + #include "small_inline.h" ++#include <cstdio> + + using std::cerr; + using std::endl; + + /* This routine is deprecated. |