diff options
author | Kevin F. Quinn <kevquinn@gentoo.org> | 2006-02-21 00:23:03 +0000 |
---|---|---|
committer | Kevin F. Quinn <kevquinn@gentoo.org> | 2006-02-21 00:23:03 +0000 |
commit | d23086f92924b9d8b0bce45e5d29bcae91fc021a (patch) | |
tree | 0047a21b7a7e83c91e829fd38d07453974b31145 /sys-devel/gdb | |
parent | Version bump by Thomas Cort <tcort@cs.ubishops.ca>. Closes bug #123214. (diff) | |
download | historical-d23086f92924b9d8b0bce45e5d29bcae91fc021a.tar.gz historical-d23086f92924b9d8b0bce45e5d29bcae91fc021a.tar.bz2 historical-d23086f92924b9d8b0bce45e5d29bcae91fc021a.zip |
Added patches from RedHat to support PIEs in gdb-6.3
Package-Manager: portage-2.0.54
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r-- | sys-devel/gdb/ChangeLog | 7 | ||||
-rw-r--r-- | sys-devel/gdb/Manifest | 14 | ||||
-rw-r--r-- | sys-devel/gdb/files/digest-gdb-6.3-r5 | 4 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-6.3-r5.ebuild | 115 |
4 files changed, 138 insertions, 2 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog index f8dd08fb3989..2305e51e10e8 100644 --- a/sys-devel/gdb/ChangeLog +++ b/sys-devel/gdb/ChangeLog @@ -1,6 +1,11 @@ # ChangeLog for sys-devel/gdb # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.85 2006/02/19 23:15:31 kumba Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.86 2006/02/21 00:23:02 kevquinn Exp $ + +*gdb-6.3-r5 (21 Feb 2006) + + 21 Feb 2006; Kevin F. Quinn <kevquinn@gentoo.org> +gdb-6.3-r5.ebuild: + Added patches from RedHat to support PIEs in gdb-6.3 19 Feb 2006; Joshua Kinard <kumba@gentoo.org> gdb-6.4.ebuild: Marked stable on mips. diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest index fbe18153a693..53cb3d5b5a9b 100644 --- a/sys-devel/gdb/Manifest +++ b/sys-devel/gdb/Manifest @@ -1,8 +1,12 @@ -MD5 68059bf2cf12a64fe7303fdc7df08120 ChangeLog 12526 +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA1 + +MD5 8e5178faf97284cc8c2ca42e49f1b36c ChangeLog 12684 MD5 d3ab2683d88b3cbecb8a9faa439703a1 files/bfd-malloc-wrap.patch 782 MD5 460629563df21e6a68b8941c07d4f30b files/digest-gdb-6.1 131 MD5 b3790be989db97b22c599572afbce109 files/digest-gdb-6.2.1 133 MD5 1bf79e32094a4c2c7cde754dd12e4d90 files/digest-gdb-6.3-r4 183 +MD5 2a83ab3f3944aa3522725da291edaeaa files/digest-gdb-6.3-r5 254 MD5 944b2661cbb8d3308ce71d31e66533ac files/digest-gdb-6.4 121 MD5 944b2661cbb8d3308ce71d31e66533ac files/digest-gdb-6.4-r1 121 MD5 944b2661cbb8d3308ce71d31e66533ac files/digest-gdb-6.4-r2 121 @@ -31,7 +35,15 @@ MD5 7ea8f83bb7b0d70e7e6d6c8cf42292d3 files/gdb-6.x-crash.patch 678 MD5 2a52c4cd9bf5e2667c6bc7312e179fa0 gdb-6.1.ebuild 1807 MD5 fb4ab4aaccb90b523c650a5f30d02281 gdb-6.2.1.ebuild 1784 MD5 20334b11833489b3bcc13c0fea645a1d gdb-6.3-r4.ebuild 2983 +MD5 92fd165fb7d5e6cdbfbd97e59135e96e gdb-6.3-r5.ebuild 3197 MD5 abe5b46c3552ca8670ffb68c048d4ffd gdb-6.4-r1.ebuild 3009 MD5 65d8f7193ad67820fe247c98322db72a gdb-6.4-r2.ebuild 3076 MD5 64854d9e61c5f0c03dae7184dafa4f08 gdb-6.4.ebuild 2995 MD5 567094e03359ffc1c95af7356395228d metadata.xml 162 +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v1.4.2.1 (GNU/Linux) + +iD8DBQFD+l9QZfNLSOUrp0sRAkDnAKDDZxPg6pD4pu3dl7D+6uEmus6GMwCfVL7p +K+dn6RDDDa1T7wq9/G5u4HY= +=7feC +-----END PGP SIGNATURE----- diff --git a/sys-devel/gdb/files/digest-gdb-6.3-r5 b/sys-devel/gdb/files/digest-gdb-6.3-r5 new file mode 100644 index 000000000000..02a55b976027 --- /dev/null +++ b/sys-devel/gdb/files/digest-gdb-6.3-r5 @@ -0,0 +1,4 @@ +MD5 afd84956aa211d2525d2c3bb4d60b79e gdb-6.3-pie-patches.tar.bz2 25195 +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-r5.ebuild b/sys-devel/gdb/gdb-6.3-r5.ebuild new file mode 100644 index 000000000000..839b0f1a13d8 --- /dev/null +++ b/sys-devel/gdb/gdb-6.3-r5.ebuild @@ -0,0 +1,115 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-6.3-r5.ebuild,v 1.1 2006/02/21 00:23:03 kevquinn 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 + !vanilla? ( mirror://debian/pool/main/g/gdb/gdb_${PV}-${DEB_VER}.diff.gz + mirror://gentoo/gdb-6.3-pie-patches.tar.bz2 ) + mirror://gentoo/gdb_init.txt.bz2" + +LICENSE="GPL-2 LGPL-2" +[[ ${CTARGET} != ${CHOST} ]] \ + && SLOT="${CTARGET}" \ + || SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86" +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}" + mv "${WORKDIR}"/gdb_init.txt . || die + + if ! use vanilla ; then + 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 + + # Support for debugging PIEs (yay!) + epatch "${WORKDIR}"/patch/gdb-6.3-pie-20050110.patch + epatch "${WORKDIR}"/patch/gdb-6.3-test-pie-20050107.patch + fi + + 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 \ + infodir="${D}"/usr/share/info \ + install-info \ + || die "install doc info" + # Remove shared info pages + rm -f "${D}"/usr/share/info/{annotate,bfd,configure,standards}.info* + fi +} |