summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-03-31 21:46:55 +0000
committerMike Frysinger <vapier@gentoo.org>2007-03-31 21:46:55 +0000
commit84c1167803c929f63967609bbf0987cf33f8835b (patch)
tree2d026e2043b59665f39d21b14d04434331299ec3 /sys-devel/gdb
parentRemove line that removes COPYING file - upstream stopped installing it by def... (diff)
downloadgentoo-2-84c1167803c929f63967609bbf0987cf33f8835b.tar.gz
gentoo-2-84c1167803c929f63967609bbf0987cf33f8835b.tar.bz2
gentoo-2-84c1167803c929f63967609bbf0987cf33f8835b.zip
Fix .gdbinit checks #169609 and add stack overflow checks #144833 by Tavis Ormandy.
(Portage version: 2.1.2.2)
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/ChangeLog8
-rw-r--r--sys-devel/gdb/files/digest-gdb-6.6-r26
-rw-r--r--sys-devel/gdb/gdb-6.6-r2.ebuild82
3 files changed, 95 insertions, 1 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog
index 205167a718d8..28539860773a 100644
--- a/sys-devel/gdb/ChangeLog
+++ b/sys-devel/gdb/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-devel/gdb
# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.109 2007/03/16 17:28:56 yoswink Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.110 2007/03/31 21:46:55 vapier Exp $
+
+*gdb-6.6-r2 (31 Mar 2007)
+
+ 31 Mar 2007; Mike Frysinger <vapier@gentoo.org> +gdb-6.6-r2.ebuild:
+ Fix .gdbinit checks #169609 and add stack overflow checks #144833 by Tavis
+ Ormandy.
16 Mar 2007; Jose Luis Rivero <yoswink@gentoo.org> gdb-6.6.ebuild:
Stable on alpha wrt bug #164336
diff --git a/sys-devel/gdb/files/digest-gdb-6.6-r2 b/sys-devel/gdb/files/digest-gdb-6.6-r2
new file mode 100644
index 000000000000..d3137333818c
--- /dev/null
+++ b/sys-devel/gdb/files/digest-gdb-6.6-r2
@@ -0,0 +1,6 @@
+MD5 5c31cdd5d0a2dcd9ab182e89efef23c2 gdb-6.6-patches-1.2.tar.bz2 13381
+RMD160 abc0cbb182c617e0a2e12eb6551d35659cdcdbd0 gdb-6.6-patches-1.2.tar.bz2 13381
+SHA256 a0efb262c5a57383ea070d98ee0a67f9de463ba6867b76fab320e4cf5f366b2b gdb-6.6-patches-1.2.tar.bz2 13381
+MD5 a4df41d28dd514d64e8ccbfe125fd9a6 gdb-6.6.tar.bz2 14535755
+RMD160 6430798ba47a1913676622db9a73bf2bcfa703be gdb-6.6.tar.bz2 14535755
+SHA256 6e602987298db5ddb479bbb84ce653eabd9c304957a49552245f65cdc70d43bd gdb-6.6.tar.bz2 14535755
diff --git a/sys-devel/gdb/gdb-6.6-r2.ebuild b/sys-devel/gdb/gdb-6.6-r2.ebuild
new file mode 100644
index 000000000000..719c9031a979
--- /dev/null
+++ b/sys-devel/gdb/gdb-6.6-r2.ebuild
@@ -0,0 +1,82 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.6-r2.ebuild,v 1.1 2007/03/31 21:46:55 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
+
+PATCH_VER="1.2"
+DESCRIPTION="GNU debugger"
+HOMEPAGE="http://sources.redhat.com/gdb/"
+SRC_URI="http://ftp.gnu.org/gnu/gdb/${P}.tar.bz2
+ ftp://sources.redhat.com/pub/gdb/releases/${P}.tar.bz2
+ mirror://gentoo/${P}-patches-${PATCH_VER}.tar.bz2"
+
+LICENSE="GPL-2 LGPL-2"
+[[ ${CTARGET} != ${CHOST} ]] \
+ && SLOT="${CTARGET}" \
+ || SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
+IUSE="nls test vanilla"
+
+RDEPEND=">=sys-libs/ncurses-5.2-r2"
+DEPEND="${RDEPEND}
+ test? ( dev-util/dejagnu )
+ nls? ( sys-devel/gettext )"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+ use vanilla || EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
+ strip-linguas -u bfd/po opcodes/po
+}
+
+src_compile() {
+ replace-flags -O? -O2
+ econf \
+ --disable-werror \
+ $(use_enable nls) \
+ || die
+ emake || die
+}
+
+src_test() {
+ make check || ewarn "tests failed"
+}
+
+src_install() {
+ emake \
+ DESTDIR="${D}" \
+ libdir=/nukeme includedir=/nukeme \
+ install || die
+ rm -r "${D}"/nukeme || die
+
+ # 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/PROBLEMS
+ docinto sim
+ dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING
+
+ dodoc "${WORKDIR}"/extra/gdbinit.sample
+
+ # Remove shared info pages
+ rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info*
+}
+
+pkg_postinst() {
+ # portage sucks and doesnt unmerge files in /etc
+ rm -vf "${ROOT}"/etc/skel/.gdbinit
+}