Big fix in glibc regarding OPEN_X math functions and C++, bug #9883
authorStefan Jones <cretin@gentoo.org>
Sat, 2 Nov 2002 21:18:16 +0000 (21:18 +0000)
committerStefan Jones <cretin@gentoo.org>
Sat, 2 Nov 2002 21:18:16 +0000 (21:18 +0000)
sys-libs/glibc/files/2.2.5/glibc-2.2.5-sparc-mathinline.patch [new file with mode: 0644]
sys-libs/glibc/glibc-2.2.5-r7.ebuild

diff --git a/sys-libs/glibc/files/2.2.5/glibc-2.2.5-sparc-mathinline.patch b/sys-libs/glibc/files/2.2.5/glibc-2.2.5-sparc-mathinline.patch
new file mode 100644 (file)
index 0000000..0560a68
--- /dev/null
@@ -0,0 +1,30 @@
+--- glibc-2.2.5/sysdeps/sparc/fpu/bits/mathinline.h    2001-11-28 21:13:08.000000000 +0000
++++ glibc-2.3.1/sysdeps/sparc/fpu/bits/mathinline.h    2002-05-16 01:16:23.000000000 +0100
+@@ -1,5 +1,5 @@
+ /* Inline math functions for SPARC.
+-   Copyright (C) 1999, 2000, 2001 Free Software Foundation, Inc.
++   Copyright (C) 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
+    This file is part of the GNU C Library.
+    Contributed by Jakub Jelinek <jakub@redhat.com>.
+ 
+@@ -213,16 +213,16 @@
+ 
+ #  ifndef __NO_MATH_INLINES
+ 
+-__MATH_INLINE double fdim (double __x, double __y);
++__MATH_INLINE double fdim (double __x, double __y) __THROW;
+ __MATH_INLINE double
+-fdim (double __x, double __y)
++fdim (double __x, double __y) __THROW
+ {
+   return __x < __y ? 0 : __x - __y;
+ }
+ 
+-__MATH_INLINE float fdimf (float __x, float __y);
++__MATH_INLINE float fdimf (float __x, float __y) __THROW;
+ __MATH_INLINE float
+-fdimf (float __x, float __y)
++fdimf (float __x, float __y) __THROW
+ {
+   return __x < __y ? 0 : __x - __y;
+ }
index 0f5b77a4c57221eb3837c9fe2fe199e015b84476..6888c5265a719ee583e3e829182a12c1f141c0d9 100644 (file)
@@ -1,6 +1,6 @@
 # Copyright 1999-2002 Gentoo Technologies, Inc.
 # Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.2.5-r7.ebuild,v 1.21 2002/11/02 21:05:19 seemant Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/glibc-2.2.5-r7.ebuild,v 1.22 2002/11/02 21:18:16 cretin Exp $
 
 IUSE="nls pic build"
 
@@ -140,6 +140,11 @@ src_unpack() {
        fi
 
        # Some patches to fixup build on sparc and sparc64
+       
+       #This is a sparc mathinline.h update, fixes problems with C++ and the mathinline header, cretin@gentoo.org
+       einfo "Applying sparc-mathinline patch..."
+       cd ${S}; patch -p1 < ${FILESDIR}/${PV}/${P}-sparc-mathinline.patch > /dev/null || die
+
        if use sparc64 > /dev/null || use sparc > /dev/null
        then
                einfo "Applying sparc-misc patch..."