diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-07-13 16:04:56 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-07-13 16:04:56 +0000 |
commit | 578a8b02326d05a90b7258fb9a9c50d949737163 (patch) | |
tree | 93563fbbe062b73cbef4ea4dfd01487603209a6c | |
parent | update gcc snapshots (diff) | |
download | toolchain-578a8b02326d05a90b7258fb9a9c50d949737163.tar.gz toolchain-578a8b02326d05a90b7258fb9a9c50d949737163.tar.bz2 toolchain-578a8b02326d05a90b7258fb9a9c50d949737163.zip |
update gdb snapshots
-rw-r--r-- | sys-devel/gdb/Manifest | 3 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-7.8.50.20140701.ebuild (renamed from sys-devel/gdb/gdb-7.8.50.20140617.ebuild) | 0 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-7.8.50.20140708.ebuild | 200 |
3 files changed, 202 insertions, 1 deletions
diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest index 1ffe0f9..4688e37 100644 --- a/sys-devel/gdb/Manifest +++ b/sys-devel/gdb/Manifest @@ -13,5 +13,6 @@ DIST gdb-weekly-7.6.50.20140107.tar.bz2 24988218 SHA256 d4749c5d9de5aa77cc627278 DIST gdb-weekly-7.7.50.20140527.tar.bz2 25414486 SHA256 290cef1bc94c12b12d60316560551347d55fcbb743ba7d721c097351ebece6aa SHA512 8f1d8c801b156f8cd2e686eefcddd580ec8d272bfe970e9bf1756299aabfdda1adb44311b80b2f3edb763fda37fd9402be1acac20c827b4c4c66c8dadf3ad895 WHIRLPOOL 158e1c65dd9dcddf2b6d144e5d653d883f95ff0825a9a73d86d8993b35ae73a293d8053f6488e45e4ba6eebe159ac7f660bf77a2dc8e3d890ed1cce6a01e24c7 DIST gdb-weekly-7.7.50.20140603.tar.bz2 25411073 SHA256 0b3c9baa22ca5aa627e91d0108072b800b3f8d5f6f2fe596ae5cf92837c79693 SHA512 f5fcb51a1d1af2d2b7ff4c308e122a2a73bfb4833f8878d7cb4d0cf21acea47bafcfe0b541760a468e2f5e9887c7522c89bf62d413c124619f239300224f4ad3 WHIRLPOOL 35469c381ac7e6725e6dd8b8807c980d49cdb795b9519ae4f67f53774a6cfb6c85d77cbf33b0d1817dfddffddb4d19ccca79fd12e098e58f2705ffaf4fc6f05e DIST gdb-weekly-7.7.50.20140610.tar.bz2 25454190 SHA256 cda14be3d8375a89d118c648be9a816c6c37813d5670d82b42c0eaefa523ace8 SHA512 144c7dbc7af7cde4c5d65c51c3ee7160a1f99fcccc64f68fcdcf4df73faa5ca27bcaa067d0dd9c749a520f05f404a1a2ce9fb4b7031562dadb935fd94fc4459c WHIRLPOOL 3b6e2499f75f0e51a9328b55cc4035ba3abe07b525ccc2639da4ada447bbf6380c4c8ee5486a2ccbd6090c1920699403b47947aadfc7665d4172f1125d0333cc -DIST gdb-weekly-7.8.50.20140617.tar.bz2 25454042 SHA256 02b506ed1d3ee5148184219d956170e79b3640f0199a046d9e5df85f4e1ce7fc SHA512 9d6e51da932478c1aa5df5d2e74149ea17643e68624d8b48ef884001fffbb38e7917097517a6f1c2940ed3d8c5400044966992f97ec7e0e373d0a259e293e0df WHIRLPOOL 92c115887795173a7f7dac5dcc162fb9deaa19ea33d736071477bd89b2310e436a338ffd25afe6864f3788ddf2dfeccfb4934d53462023625dba673d33193fa2 DIST gdb-weekly-7.8.50.20140624.tar.bz2 25510497 SHA256 71efc78d3d7b2579be03b85b89bd09806b4c8cf7bd34c99929a8ab3b6faaa780 SHA512 840292e1b30ea3668657a928e63ecc230a12e3253cbe276bf60d069e78bd81a5adad949aa8d59a6b47d83a7ebd9af5f4d13317e94ab53c1b4f0b1bf84076effa WHIRLPOOL 00d788cd026f2e4ce42ffab22eeb4713a359b961bbd1a16cc26dbf1dd98ae6fa050b278677155c90f6e49037deae1ebd7d5662111e8bffd03552b7bca7b52b21 +DIST gdb-weekly-7.8.50.20140701.tar.bz2 25340858 SHA256 ac4258af80b6120914b3096f768e82997dd73da752f6f502c865420fa2ff3d11 SHA512 8903924cc846818db8199779b9ec7f08d7e65cc7d227dbc609d2e55c3e72e896a3237232f7c50d8c2a802d3c40e7fdab74d1090aecd0060515fd19b4f4bcffec WHIRLPOOL 93c15aef5d8c9c9e43114845a2024e39baa2455cdb8ad3e8575eb1ae5e3e6b08d4ae0b36e290e1635a24a0bc96ad49905e3201b032806fca3dc9d6121306f564 +DIST gdb-weekly-7.8.50.20140708.tar.bz2 25339492 SHA256 cf40bd65991d82edb9594fed37c82f602c2cf4d341b63489d00f662a9d1e924f SHA512 f0d3f694815d9e6bfc3be866996cc3f736644d08d4ef81c6de4ff3a39f654d43c0436313c13a2e5fbca4025c10ca6afcdc6335e53e84313a610a4a1de07ef4c2 WHIRLPOOL b8d3e2d8ff5bfa6a359d679e8bbf413debd9488c81f5eada6610b813b27fe18fedeeec9f587d4aa74850b72db207e26fd2b21ab5e3e07652d20c4eb845f08fa7 diff --git a/sys-devel/gdb/gdb-7.8.50.20140617.ebuild b/sys-devel/gdb/gdb-7.8.50.20140701.ebuild index d3cad2c..d3cad2c 100644 --- a/sys-devel/gdb/gdb-7.8.50.20140617.ebuild +++ b/sys-devel/gdb/gdb-7.8.50.20140701.ebuild diff --git a/sys-devel/gdb/gdb-7.8.50.20140708.ebuild b/sys-devel/gdb/gdb-7.8.50.20140708.ebuild new file mode 100644 index 0000000..d3cad2c --- /dev/null +++ b/sys-devel/gdb/gdb-7.8.50.20140708.ebuild @@ -0,0 +1,200 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.25 2014/03/14 05:52:45 vapier Exp $ + +EAPI="4" +PYTHON_COMPAT=( python{2_7,3_3} ) + +inherit flag-o-matic eutils python-single-r1 + +export CTARGET=${CTARGET:-${CHOST}} +if [[ ${CTARGET} == ${CHOST} ]] ; then + if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then + export CTARGET=${CATEGORY/cross-} + fi +fi +is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; } + +RPM= +MY_PV=${PV} +case ${PV} in +*.*.*.*.*.*) + # fedora version: gdb-6.8.50.20090302-8.fc11.src.rpm + inherit versionator rpm + gvcr() { get_version_component_range "$@"; } + MY_PV=$(gvcr 1-4) + RPM="${PN}-${MY_PV}-$(gvcr 5).fc$(gvcr 6).src.rpm" + SRC_URI="mirror://fedora/development/source/SRPMS/${RPM}" + ;; +*.*.50.*) + # weekly snapshots + SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.bz2" + ;; +9999*) + # live git tree + EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git" + inherit git-2 + SRC_URI="" + ;; +*) + # Normal upstream release + SRC_URI="mirror://gnu/gdb/${P}.tar.bz2 + ftp://sourceware.org/pub/gdb/releases/${P}.tar.bz2" + ;; +esac + +PATCH_VER="" +DESCRIPTION="GNU debugger" +HOMEPAGE="http://sourceware.org/gdb/" +SRC_URI="${SRC_URI} ${PATCH_VER:+mirror://gentoo/${P}-patches-${PATCH_VER}.tar.xz}" + +LICENSE="GPL-2 LGPL-2" +SLOT="0" +if [[ ${PV} != 9999* ]] ; then + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~amd64-fbsd ~x86-fbsd ~x64-freebsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +fi +IUSE="+client expat lzma multitarget nls +python +server test vanilla zlib" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND="!dev-util/gdbserver + >=sys-libs/ncurses-5.2-r2 + sys-libs/readline + expat? ( dev-libs/expat ) + lzma? ( app-arch/xz-utils ) + python? ( ${PYTHON_DEPS} ) + zlib? ( sys-libs/zlib )" +DEPEND="${RDEPEND} + app-arch/xz-utils + virtual/yacc + test? ( dev-util/dejagnu ) + nls? ( sys-devel/gettext )" + +S=${WORKDIR}/${PN}-${MY_PV} + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_prepare() { + [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec + use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch + epatch_user + strip-linguas -u bfd/po opcodes/po +} + +gdb_branding() { + printf "Gentoo ${PV} " + if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then + printf "p${PATCH_VER}" + else + printf "vanilla" + fi +} + +src_configure() { + strip-unsupported-flags + + local myconf=( + --with-pkgversion="$(gdb_branding)" + --with-bugurl='http://bugs.gentoo.org/' + --disable-werror + # Disable modules that are in a combined binutils/gdb tree. #490566 + --disable-{binutils,etc,gas,gold,gprof,ld} + ) + local sysroot="${EPREFIX}/usr/${CTARGET}" + is_cross && myconf+=( + --with-sysroot="${sysroot}" + --includedir="${sysroot}/usr/include" + ) + + if use server && ! use client ; then + # just configure+build in the gdbserver subdir to speed things up + cd gdb/gdbserver + myconf+=( --program-transform-name='' ) + else + # gdbserver only works for native targets (CHOST==CTARGET). + # it also doesn't support all targets, so rather than duplicate + # the target list (which changes between versions), use the + # "auto" value when things are turned on. + is_cross \ + && myconf+=( --disable-gdbserver ) \ + || myconf+=( $(use_enable server gdbserver auto) ) + fi + + if ! ( use server && ! use client ) ; then + # if we are configuring in the top level, then use all + # the additional global options + myconf+=( + --enable-64-bit-bfd + --disable-install-libbfd + --disable-install-libiberty + # This only disables building in the readline subdir. + # For gdb itself, it'll use the system version. + --disable-readline + --with-system-readline + --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug + $(use_with expat) + $(use_with lzma) + $(use_enable nls) + $(use multitarget && echo --enable-targets=all) + $(use_with python python "${EPYTHON}") + $(use_with zlib) + ) + fi + + econf "${myconf[@]}" +} + +src_test() { + nonfatal emake check || ewarn "tests failed" +} + +src_install() { + use server && ! use client && cd gdb/gdbserver + default + use client && find "${ED}"/usr -name libiberty.a -delete + cd "${S}" + + # Don't install docs when building a cross-gdb + if [[ ${CTARGET} != ${CHOST} ]] ; then + rm -r "${ED}"/usr/share + return 0 + fi + # Install it by hand for now: + # http://sourceware.org/ml/gdb-patches/2011-12/msg00915.html + # Only install if it exists due to the twisted behavior (see + # notes in src_configure above). + [[ -e gdb/gdbserver/gdbreplay ]] && dobin gdb/gdbserver/gdbreplay + + if use client ; then + docinto gdb + dodoc gdb/CONTRIBUTE gdb/README gdb/MAINTAINERS \ + gdb/NEWS gdb/ChangeLog gdb/PROBLEMS + fi + docinto sim + dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} + if use server ; then + docinto gdbserver + dodoc gdb/gdbserver/{ChangeLog,README} + fi + + if [[ -n ${PATCH_VER} ]] ; then + dodoc "${WORKDIR}"/extra/gdbinit.sample + fi + + # Remove shared info pages + rm -f "${ED}"/usr/share/info/{annotate,bfd,configure,standards}.info* +} + +pkg_postinst() { + # portage sucks and doesnt unmerge files in /etc + rm -vf "${EROOT}"/etc/skel/.gdbinit + + if use prefix && [[ ${CHOST} == *-darwin* ]] ; then + ewarn "gdb is unable to get a mach task port when installed by Prefix" + ewarn "Portage, unprivileged. To make gdb fully functional you'll" + ewarn "have to perform the following steps:" + ewarn " % sudo chgrp procmod ${EPREFIX}/usr/bin/gdb" + ewarn " % sudo chmod g+s ${EPREFIX}/usr/bin/gdb" + fi +} |