summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Kinard <kumba@gentoo.org>2003-05-19 22:51:14 +0000
committerJoshua Kinard <kumba@gentoo.org>2003-05-19 22:51:14 +0000
commit0eb4d0fe3140f36b30f27a3e9024f1893c80babc (patch)
tree913fe198ae22a5208be0c1dcec4b3a4867a24aee /sys-devel/gdb
parentupstream version bump, enable make test (diff)
downloadgentoo-2-0eb4d0fe3140f36b30f27a3e9024f1893c80babc.tar.gz
gentoo-2-0eb4d0fe3140f36b30f27a3e9024f1893c80babc.tar.bz2
gentoo-2-0eb4d0fe3140f36b30f27a3e9024f1893c80babc.zip
Added patch to allow proper compile on sparc; changed -sparc to ~sparc
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/ChangeLog7
-rw-r--r--sys-devel/gdb/Manifest13
-rw-r--r--sys-devel/gdb/files/gdb-5.3-sparc-nat-asm.patch16
-rw-r--r--sys-devel/gdb/gdb-5.3.ebuild13
4 files changed, 45 insertions, 4 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog
index 2b3b20644fbc..3676a9b67a08 100644
--- a/sys-devel/gdb/ChangeLog
+++ b/sys-devel/gdb/ChangeLog
@@ -1,9 +1,14 @@
# ChangeLog for sys-devel/gdb
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.19 2003/03/24 13:53:53 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.20 2003/05/19 22:50:24 kumba Exp $
+
*gdb-5.3 (21 Dec 2002)
+ 19 May 2003; Joshua Kinard <kumba@gentoo.org> gdb-5.3.ebuild:
+ Added a patch that allows gdb-5.3 to compile properly
+ on sparc and set KEYWORDS to ~sparc from -sparc
+
24 Mar 2003; Guy Martin <gmsoft@gentoo.org> gdb-5.3.ebuild :
Added patch for hppa support. Added hppa to keywords.
diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
new file mode 100644
index 000000000000..81334aaaf8c0
--- /dev/null
+++ b/sys-devel/gdb/Manifest
@@ -0,0 +1,13 @@
+MD5 be6d7adfb74f12091018e636e56073d6 ChangeLog 3479
+MD5 f741db03148c86f10f51002aa02a6951 gdb-5.1.1-r2.ebuild 1844
+MD5 fa35394889eb5b7e0b6c597ffaab552b gdb-5.2.1.ebuild 1577
+MD5 ffef7eead7c2cbb5b3cdbc732782e56c gdb-5.3.ebuild 2333
+MD5 c9906583fd4286272dff5fd2503ebe39 files/digest-gdb-5.1.1-r2 63
+MD5 263738287571b63dd7bb69d3d5d50e04 files/digest-gdb-5.2.1 64
+MD5 2e43a9ed1afd8f8047e7b752b95f0c12 files/digest-gdb-5.3 128
+MD5 734c7bb9c66275fa7982d104905234da files/gdb-5.1.1-ppc-booltypes.patch 994
+MD5 ca7cf8e4b2eba16df1842e0a453e2b32 files/gdb-5.3-hppa-01.patch 182179
+MD5 d5314bcbc29fb3ce8351caa3a501c351 files/gdb-5.3-hppa-02.patch 926
+MD5 5b0433c121b92f2a35c2106bbf45bbb9 files/gdb-5.3-hppa-03.patch 2678
+MD5 4d383b990c22a7f0ee0d4a1679b82d20 files/man.diff 607
+MD5 1de0e1b91ac150426719e904f0e1a5cd files/gdb-5.3-sparc-nat-asm.patch 521
diff --git a/sys-devel/gdb/files/gdb-5.3-sparc-nat-asm.patch b/sys-devel/gdb/files/gdb-5.3-sparc-nat-asm.patch
new file mode 100644
index 000000000000..5240df822a31
--- /dev/null
+++ b/sys-devel/gdb/files/gdb-5.3-sparc-nat-asm.patch
@@ -0,0 +1,16 @@
+--- gdb/sparc-nat.c.orig 2003-05-19 17:55:02.000000000 -0400
++++ gdb/sparc-nat.c 2003-05-19 17:55:42.000000000 -0400
+@@ -33,6 +33,13 @@
+ #include <sys/ptrace.h>
+ #include <sys/wait.h>
+ #ifdef __linux__
++/* Sadly, <sys/ucontext.h> conflicts with <asm/reg.h> on Linux. And
++ -D_GNU_SOURCE brings in <sys/ucontext.h> implicitly with <signal.h>.
++ Hack around this. */
++#undef FPU_REGS_TYPE
++#define fpu asm_reg_fpu
++#define fq asm_reg_fq
++#define fpq asm_reg_fpq
+ #include <asm/reg.h>
+ #else
+ #include <machine/reg.h>
diff --git a/sys-devel/gdb/gdb-5.3.ebuild b/sys-devel/gdb/gdb-5.3.ebuild
index 96f94a57c4f0..f5d1d57660c8 100644
--- a/sys-devel/gdb/gdb-5.3.ebuild
+++ b/sys-devel/gdb/gdb-5.3.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-5.3.ebuild,v 1.8 2003/03/24 13:53:56 gmsoft Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-5.3.ebuild,v 1.9 2003/05/19 22:50:24 kumba Exp $
IUSE="nls objc"
@@ -12,7 +12,7 @@ SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2
LICENSE="GPL-2 LGPL-2"
SLOT="0"
-KEYWORDS="x86 ppc -sparc alpha hppa"
+KEYWORDS="x86 ppc ~sparc alpha hppa"
DEPEND=">=sys-libs/ncurses-5.2-r2
nls? ( sys-devel/gettext )"
@@ -28,7 +28,14 @@ src_unpack() {
patch -p1 < ${FILESDIR}/gdb-5.3-hppa-01.patch
patch -p1 < ${FILESDIR}/gdb-5.3-hppa-02.patch
patch -p1 < ${FILESDIR}/gdb-5.3-hppa-03.patch
- fi
+ fi
+
+
+ # Fix Compile bug on sparc
+ if [ "${ARCH}" = "sparc" ]; then
+ cd ${S}
+ epatch ${FILESDIR}/${P}-sparc-nat-asm.patch
+ fi
if [ -n "`use objc`" ] ; then