summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-07-09 23:44:44 +0000
committerMike Frysinger <vapier@gentoo.org>2005-07-09 23:44:44 +0000
commit6f50d603f447433e985dd9c67b4a370fdce28431 (patch)
treeb45b8388d71bb6be156dd908820e78d64b88d79f /sys-devel/gdb
parenttypo (diff)
downloadgentoo-2-6f50d603f447433e985dd9c67b4a370fdce28431.tar.gz
gentoo-2-6f50d603f447433e985dd9c67b4a370fdce28431.tar.bz2
gentoo-2-6f50d603f447433e985dd9c67b4a370fdce28431.zip
Sync with latest debian patchset.
(Portage version: 2.0.51.22-r1)
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/ChangeLog7
-rw-r--r--sys-devel/gdb/files/digest-gdb-6.3-r43
-rw-r--r--sys-devel/gdb/gdb-6.3-r4.ebuild108
3 files changed, 117 insertions, 1 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog
index f721408642cf..8af4d7cc4dc7 100644
--- a/sys-devel/gdb/ChangeLog
+++ b/sys-devel/gdb/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for sys-devel/gdb
# Copyright 1999-2005 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.77 2005/05/15 21:55:35 solar Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.78 2005/07/09 23:44:44 vapier Exp $
+
+*gdb-6.3-r4 (09 Jul 2005)
+
+ 09 Jul 2005; Mike Frysinger <vapier@gentoo.org> +gdb-6.3-r4.ebuild:
+ Sync with latest debian patchset.
*gdb-6.2.1-r1 (15 May 2005)
diff --git a/sys-devel/gdb/files/digest-gdb-6.3-r4 b/sys-devel/gdb/files/digest-gdb-6.3-r4
new file mode 100644
index 000000000000..e097257fc012
--- /dev/null
+++ b/sys-devel/gdb/files/digest-gdb-6.3-r4
@@ -0,0 +1,3 @@
+MD5 05b928f41fa5b482e49ca2c24762a0ae gdb-6.3.tar.bz2 13446729
+MD5 5537c9d1ce95293a921ff4b5a55f5e5e gdb_6.3-6.diff.gz 201861
+MD5 35e70c29e393433b3847527d808f59c2 gdb_init.txt.bz2 6247
diff --git a/sys-devel/gdb/gdb-6.3-r4.ebuild b/sys-devel/gdb/gdb-6.3-r4.ebuild
new file mode 100644
index 000000000000..566725ac10ea
--- /dev/null
+++ b/sys-devel/gdb/gdb-6.3-r4.ebuild
@@ -0,0 +1,108 @@
+# Copyright 1999-2005 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.3-r4.ebuild,v 1.1 2005/07/09 23:44:44 vapier Exp $
+
+inherit flag-o-matic eutils
+
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
+DEB_VER=6
+DESCRIPTION="GNU debugger"
+HOMEPAGE="http://sources.redhat.com/gdb/"
+SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2
+ mirror://debian/pool/main/g/gdb/gdb_${PV}-${DEB_VER}.diff.gz
+ mirror://gentoo/gdb_init.txt.bz2"
+#SRC_URI="${SRC_URI} mirror://gentoo/gdb-6.1-hppa-01.patch.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="alpha amd64 arm hppa ia64 ~mips ppc ppc64 sparc x86 ~s390"
+IUSE="nls test"
+
+RDEPEND=">=sys-libs/ncurses-5.2-r2"
+DEPEND="${RDEPEND}
+ test? ( dev-util/dejagnu )
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ mv "${WORKDIR}"/gdb_init.txt . || die
+ epatch "${WORKDIR}"/gdb_${PV}-${DEB_VER}.diff
+ for f in $(<debian/patches/series) ; do
+ EPATCH_SINGLE_MSG="Applying Debian's ${f}" \
+ epatch debian/patches/${f}
+ done
+ epatch "${FILESDIR}"/gdb-6.3-uclibc.patch
+ epatch "${FILESDIR}"/gdb-6.3-relative-paths.patch
+ #epatch "${FILESDIR}"/gdb-6.x-crash.patch
+ epatch "${FILESDIR}"/gdb-6.2.1-pass-libdir.patch
+ epatch "${FILESDIR}"/gdb-6.3-scanmem.patch
+ epatch "${FILESDIR}"/gdb-6.3-gdbinit-stat.patch
+ # sec bug 91398
+ epatch "${FILESDIR}"/bfd-malloc-wrap.patch
+
+ epatch "${FILESDIR}"/gdb-6.2.1-200-uclibc-readline-conf.patch
+ epatch "${FILESDIR}"/gdb-6.2.1-400-mips-coredump.patch
+ epatch "${FILESDIR}"/gdb-6.2.1-libiberty-pic.patch
+
+ strip-linguas -u bfd/po opcodes/po
+}
+
+src_compile() {
+ replace-flags -O? -O2
+ econf $(use_enable nls) || die
+ emake -j1 || die
+}
+
+src_test() {
+ make check || ewarn "tests failed"
+}
+
+src_install() {
+ make \
+ prefix="${D}"/usr \
+ mandir="${D}"/usr/share/man \
+ infodir="${D}"/usr/share/info \
+ libdir="${D}"/nukeme includedir="${D}"/nukeme \
+ install || die "install"
+ # The includes and libs are in binutils already
+ rm -r "${D}"/nukeme
+
+ # Don't install docs when building a cross-gdb
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ rm -r "${D}"/usr/share
+ return 0
+ fi
+
+ dodoc README
+ docinto gdb
+ dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \
+ gdb/NEWS gdb/ChangeLog* gdb/TODO
+ docinto sim
+ dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
+ docinto mmalloc
+ dodoc mmalloc/MAINTAINERS mmalloc/ChangeLog mmalloc/TODO
+
+ if use x86 ; then
+ dodir /etc/skel/
+ cp "${S}"/gdb_init.txt "${D}"/etc/skel/.gdbinit \
+ || die "install ${D}/etc/skel/.gdbinit"
+ fi
+
+ if ! has noinfo ${FEATURES} ; then
+ make -C "${S}"/gdb/doc \
+ infodir="${D}"/usr/share/info \
+ install-info || die "install doc info"
+ make -C "${S}"/bfd/doc \
+ infodir="${D}"/usr/share/info \
+ install-info || die "install bfd info"
+ fi
+}