summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-09-16 10:27:34 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-09-16 10:27:34 +0000
commitedf15e40ca7929581208a1adf01fd8514d1344c6 (patch)
tree2b8dd3af722c6c2640d7206813dd2b5821f75b87 /dev-util/gdbserver
parentVersion bump, cleaning old versions (diff)
downloadgentoo-2-edf15e40ca7929581208a1adf01fd8514d1344c6.tar.gz
gentoo-2-edf15e40ca7929581208a1adf01fd8514d1344c6.tar.bz2
gentoo-2-edf15e40ca7929581208a1adf01fd8514d1344c6.zip
Version bump, and block newer gdb versions.
(Portage version: 2.2_rc82/cvs/Linux x86_64)
Diffstat (limited to 'dev-util/gdbserver')
-rw-r--r--dev-util/gdbserver/ChangeLog10
-rw-r--r--dev-util/gdbserver/gdbserver-7.0.ebuild6
-rw-r--r--dev-util/gdbserver/gdbserver-7.2.ebuild68
3 files changed, 80 insertions, 4 deletions
diff --git a/dev-util/gdbserver/ChangeLog b/dev-util/gdbserver/ChangeLog
index 280ed2d200e0..ab20d5a8bcae 100644
--- a/dev-util/gdbserver/ChangeLog
+++ b/dev-util/gdbserver/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-util/gdbserver
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbserver/ChangeLog,v 1.1 2009/12/16 23:06:34 flameeyes Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbserver/ChangeLog,v 1.2 2010/09/16 10:27:34 flameeyes Exp $
+
+*gdbserver-7.2 (16 Sep 2010)
+
+ 16 Sep 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ gdbserver-7.0.ebuild, +gdbserver-7.2.ebuild:
+ Version bump, and block newer gdb versions.
*gdbserver-7.0 (16 Dec 2009)
diff --git a/dev-util/gdbserver/gdbserver-7.0.ebuild b/dev-util/gdbserver/gdbserver-7.0.ebuild
index 501d86d53853..6e0511bf34ab 100644
--- a/dev-util/gdbserver/gdbserver-7.0.ebuild
+++ b/dev-util/gdbserver/gdbserver-7.0.ebuild
@@ -1,6 +1,6 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbserver/gdbserver-7.0.ebuild,v 1.1 2009/12/16 23:06:34 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbserver/gdbserver-7.0.ebuild,v 1.2 2010/09/16 10:27:34 flameeyes Exp $
inherit eutils flag-o-matic
@@ -24,6 +24,8 @@ SLOT="0"
RDEPEND=""
DEPEND="${RDEPEND}
${PATCH_VER:+!vanilla? ( || ( app-arch/xz-utils app-arch/lzma-utils ) )}"
+RDEPEND="${RDEPEND}
+ !>=sys-devel/gdb-7.2"
S="${WORKDIR}/${MY_P}/gdb/gdbserver"
diff --git a/dev-util/gdbserver/gdbserver-7.2.ebuild b/dev-util/gdbserver/gdbserver-7.2.ebuild
new file mode 100644
index 000000000000..a0875642068f
--- /dev/null
+++ b/dev-util/gdbserver/gdbserver-7.2.ebuild
@@ -0,0 +1,68 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-util/gdbserver/gdbserver-7.2.ebuild,v 1.1 2010/09/16 10:27:34 flameeyes Exp $
+
+EAPI=3
+
+inherit eutils flag-o-matic
+
+PATCH_VER="1"
+
+MY_P="gdb-${PV}"
+
+PATCH_VER="1"
+DESCRIPTION="GNU debugger"
+HOMEPAGE="http://sources.redhat.com/gdb/"
+SRC_URI="http://ftp.gnu.org/gnu/gdb/${MY_P}.tar.bz2
+ ftp://sources.redhat.com/pub/gdb/releases/${MY_P}.tar.bz2
+ ${PATCH_VER:+!vanilla? ( mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.xz )}"
+
+LICENSE="GPL-2"
+
+KEYWORDS="~amd64"
+IUSE="${PATCH_VER:+vanilla}"
+SLOT="0"
+
+RDEPEND=""
+DEPEND="${RDEPEND}
+ ${PATCH_VER:+!vanilla? ( app-arch/xz-utils )}"
+RDEPEND="${RDEPEND}
+ !>=sys-devel/gdb-7.2"
+
+S="${WORKDIR}/${MY_P}/gdb/gdbserver"
+
+src_prepare() {
+ cd "${WORKDIR}"/${MY_P}
+ use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
+}
+
+gdb_branding() {
+ printf "Gentoo ${PV} "
+ if [[ -n ${PATCH_VER} ]] && ! use vanilla; then
+ printf "p${PATCH_VER}"
+ else
+ printf "vanilla"
+ fi
+}
+
+src_configure() {
+ strip-unsupported-flags
+ econf \
+ --with-pkgversion="$(gdb_branding)" \
+ --with-bugurl='http://bugs.gentoo.org/'
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die
+ dodoc ChangeLog README || die
+}
+
+pkg_postinst() {
+ elog "To attach to a gdbserver instance you're going to need the expat"
+ elog "USE flag for gdb to be enabled on the debug host (not the target)"
+ elog "otherwise it will fail to properly attach."
+ elog ""
+ elog "Remember that to cross-debug a target with a different architecture"
+ elog "you need a gdb for the same target, which gets installed with the"
+ elog "sys-devel/crossdev package and the --ex-gdb flag."
+}