diff options
author | Gregory M. Tuner <gmt@be-evil.net> | 2014-03-09 03:21:22 -0700 |
---|---|---|
committer | Gregory M. Tuner <gmt@be-evil.net> | 2014-03-09 03:21:22 -0700 |
commit | 4fc214c412ad34963267a7974bf05741d52f9f9d (patch) | |
tree | 7c92d9b4496990d4f92283697500e338a9a572b1 /sys-devel | |
parent | media-video/vlc-2.1.4-r1: revbump/merge (diff) | |
download | gmt-4fc214c412ad34963267a7974bf05741d52f9f9d.tar.gz gmt-4fc214c412ad34963267a7974bf05741d52f9f9d.tar.bz2 gmt-4fc214c412ad34963267a7974bf05741d52f9f9d.zip |
sys-devel/gdb-7.7-r1: revbump/merge
Signed-off-by: Gregory M. Tuner <gmt@be-evil.net>
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gdb/Manifest | 2 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-7.7-r1.ebuild | 205 |
2 files changed, 207 insertions, 0 deletions
diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest index 9f8ea04..dfa2921 100644 --- a/sys-devel/gdb/Manifest +++ b/sys-devel/gdb/Manifest @@ -1,5 +1,7 @@ DIST gdb-7.6.2-patches-1.tar.xz 14136 SHA256 aeb45e64c4d1f70cf97cd89e66dfe72d219b140e583f602720f29b5fa6ea5145 SHA512 d56e8a613ca0f33ebe203aa85a39881b10a0a15c56ea51c7633b6f032628e207d31d1adfc8f0b7e83754da729baead0acbc83893f1d480c41ce02cad38b6b4ff WHIRLPOOL e9f5482619653c54ad95f4c9eb5310320345ef3b825e373b629b320b9d11f6acfe88e5d713faf98927da77f05d5a37edef61bfce09a4a3990c20135945930a2c DIST gdb-7.6.2.tar.bz2 24269334 SHA256 2f6a0e2ce1c66c9dedeb7f58a8d1298ad602ddcdaf15d23104e1f7832b96d0e8 SHA512 e72e9c2abb58cc08c38841380270fe783f26baf62798171d21cf0843e6c9a81d285f424dc6229ea7b1c6c957d999c8aa75c2bd15076817abb9caab28c4eb7666 WHIRLPOOL bff0c9b33401b5efdf9c87408b4e4ee635509b536f371b4104895844a86256451d684412d0fab6dfb8e5ea2108ac2e4e383a33f2966ed2a32c4dbbbf54a280f4 +DIST gdb-7.7.tar.bz2 24846320 SHA256 0404d1c6ee6b3ddd811722b5197944758d37b4591c216030effbac204f5a6c23 SHA512 42c8d312c0ca1042d1df7e115c541abc7453c20813b3f4f1fe52c62bc04b85d9116539d245e6404fa556260ba13f78f9a2ac35424eb7fd8ef9954cdbfc9581e0 WHIRLPOOL 8f1610e7f2023a5f273c15cdca6da40e22527d61f694e841c55c696d14e55d6abc3aa4144ffb995fe78448e69c50ea7ac9854aaab1ef2e2b8d551b975d35e8b7 EBUILD gdb-7.6.2-r1.ebuild 5751 SHA256 6f008a9921c7e4e3701fd48ecad04af5b0c6fae85671527ddf070e428624956a SHA512 4fc344563717d8a954933bf002d3e21d3eddb6679075f77eaf6aff278e4b46b211c67d3b0a3d4c5043e4449380bbef0212ca2850e62b8850e3acfac4aa8abad0 WHIRLPOOL 7f1fdbe2ddaa4800edbcf0859845f72a0b1b962c88df81d8fae415866f205f22f72a81de6a1ad729be5d426681d358a82e27b4352053dbd15d61d577833e224a +EBUILD gdb-7.7-r1.ebuild 5705 SHA256 01327019e912f13a00e3bf382f5acd59783b153663791883605dde0ce815d8b4 SHA512 6ee762e892c3bf7a26dc9ff38853a86506edb057c3b7cdf3b256cd0e87cd51b528e86d8db137fa680bf469dc5ba8d99f46cb3a65ced3a630f500ba65f791c75f WHIRLPOOL ef5cb235886a36dd21e420df22ce316584244a434fdd5955bc47c7f48aa803f2d5e855957b73db978dc3a679f4f017137842bf72935a6fea4769cde01b6c8f12 MISC ChangeLog 33517 SHA256 d9b62b1e1831bd75504e63bc4bf7b5dd8ea2443fd95c22ed3a918c22bf18881d SHA512 43d9b579687f76624f5e650b40149f389feb9a706bf7f123698a8a20498978609e3b61ae2e76567438e62262599b5735109604912c248f9db34311eaaf0fabac WHIRLPOOL 2464e729d603faa3d91425c9749686ae4f8feab5c197c9eb4122d604774d58c8476fc2212228cd48924b91175946929a84dbbd2fe9a536ed910ef75bcaf15967 MISC metadata.xml 552 SHA256 e86791dadf315a7a079e460854bcc4a28d7c69a93694efc85014b325824b81cf SHA512 bb4901b011b63137fb7e359ff657fbe8aa2bd7d36a78be397c163a0bd37486a32bddf4929ab5a2a3b7b7d52f3c2edd69ce18d4bb5e2f56b45d43bb59cb54f686 WHIRLPOOL 214e51279eed4230ed8cba15e42581213428ff06c32ad7832b17c1af6c2eae351a843aae51d78a99486b5bbfea2369faa4aaa4b99cae1ce7a41da5748d8e2211 diff --git a/sys-devel/gdb/gdb-7.7-r1.ebuild b/sys-devel/gdb/gdb-7.7-r1.ebuild new file mode 100644 index 0000000..6b95ce3 --- /dev/null +++ b/sys-devel/gdb/gdb-7.7-r1.ebuild @@ -0,0 +1,205 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: $ + +EAPI="4" + +inherit flag-o-matic eutils + +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="~amd64" +fi +IUSE="+client expat multitarget nls +python +server test vanilla zlib" + +RDEPEND="!dev-util/gdbserver + >=sys-libs/ncurses-5.2-r2 + sys-libs/readline + expat? ( dev-libs/expat ) + python? ( =dev-lang/python-2* ) + 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} + +src_prepare() { + [[ -n ${RPM} ]] && rpm_spec_epatch "${WORKDIR}"/gdb.spec + use vanilla || [[ -n ${PATCH_VER} ]] && EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch + strip-linguas -u bfd/po opcodes/po + if [[ ${CHOST} == *-darwin* ]] ; then + # make sure we have a python-config that matches our install, + # such that the python check doesn't fail just because the + # gdb-provided copy isn't quite what our python installed + # version is + rm -f "${S}"/gdb/python/python-config.py || die + pushd "${S}"/gdb/python > /dev/null || die + ln -s "${EROOT}"/usr/bin/$(eselect python show --python2)-config \ + python-config.py || die + popd > /dev/null || die + fi +} + +gdb_branding() { + printf "Gentoo ${PV} " + if ! use vanilla && [[ -n ${PATCH_VER} ]] ; then + printf "p${PATCH_VER}" + else + printf "vanilla" + fi +} + +src_configure() { + local py_cflags=$("$(eselect python show --python2)-config" --cflags) + append-cflags ${py_cflags} + append-cxxflags ${py_cflags} + + strip-unsupported-flags + + local sysroot="${EPREFIX}"/usr/${CTARGET} + local myconf=( + --with-pkgversion="$(gdb_branding)" + --with-bugurl='http://bugs.gentoo.org/' + --disable-werror + $(is_cross && echo \ + --with-sysroot="${sysroot}" \ + --includedir="${sysroot}/usr/include") + # Disable modules that are in a combined binutils/gdb tree. #490566 + --disable-{binutils,etc,gas,gold,gprof,ld} + ) + + 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_enable nls) + $(use multitarget && echo --enable-targets=all) + $(use_with python python "${EPREFIX}/usr/bin/python2") + $(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 +} |