Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30545 - gdb 6.0 available
Summary: gdb 6.0 available
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Stefan Jones (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-07 02:36 UTC by jani
Modified: 2003-10-17 09:56 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jani 2003-10-07 02:36:19 UTC
gdb 6.0 available
Comment 1 sekretarz 2003-10-09 14:15:23 UTC
I wrote ebuild to gdb-6.0:
-----cut------
IUSE="nls objc"

S=${WORKDIR}/${P}
DESCRIPTION="GNU debugger"
HOMEPAGE="http://sources.redhat.com/gdb/"
SRC_URI="http://mirrors.rcn.net/pub/sourceware/gdb/releases/${P}.tar.bz2"

LICENSE="GPL-2 LGPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc "

DEPEND=">=sys-libs/ncurses-5.2-r2
	nls? ( sys-devel/gettext )"

inherit flag-o-matic ccc
replace-flags -O? -O2

src_unpack() {
	unpack gdb-${PV}.tar.bz2
}

src_compile() {

	local myconf

	use nls && myconf="--enable-nls" || myconf="--disable-nls"

	econf ${myconf} || die

	make || die
}

src_install() {

	 make \
		prefix=${D}/usr \
		mandir=${D}/usr/share/man \
		infodir=${D}/usr/share/info \
		install || die

	cd gdb/doc
	make \
		infodir=${D}/usr/share/info \
		install-info || die

	cd ${S}/bfd/doc
	make \
		infodir=${D}/usr/share/info \
		install-info || die

	cd ${S}

	# These includes and libs are in binutils already
	rm -f ${D}/usr/lib/libbfd.*
	rm -r ${D}/usr/lib/libiberty.*
	rm -f ${D}/usr/lib/libopcodes.*

	rm -rf ${D}/usr/include

	dodoc COPYING* README

	docinto gdb
	dodoc gdb/CONTRIBUTE gdb/COPYING* gdb/README \
		gdb/MAINTAINERS gdb/NEWS gdb/ChangeLog* \
		gdb/TODO

	docinto sim
	dodoc sim/ChangeLog sim/MAINTAINERS sim/README-HACKING

	docinto mmalloc
	dodoc mmalloc/COPYING.LIB mmalloc/MAINTAINERS \
		mmalloc/ChangeLog mmalloc/TODO
}
------cut------
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-10-15 18:18:27 UTC
can you please attach the ebuild file instead of pasting it
Comment 3 Stefan Jones (RETIRED) gentoo-dev 2003-10-15 19:20:00 UTC
Hi, did you check if the current patches which are in gdb-5.3.90.ebuild are
valid for gdb-6.0?

I will try and do so myself ...
Comment 4 Stefan Jones (RETIRED) gentoo-dev 2003-10-17 09:56:12 UTC
Ok I have gone though the ebuild and patches.
Some non x86 patches may be missing, but according to gdb-6.0/gdb/NEWS most
of those patches were included.

I have added the ebuild to portage, many thank
Closing the bug