aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAric Belsito <lluixhi@gmail.com>2017-10-04 11:53:23 -0700
committerAric Belsito <lluixhi@gmail.com>2017-10-04 11:53:23 -0700
commit8cddb98b4fe2f42bbf2d878ac2ddcf5b9a0d673f (patch)
tree60fbdc9f6ebb080c3676cd599b44cb94a0989ad4 /sys-devel/gdb
parentsys-block/thin-provisioning-tools: bump to 0.7.2 (diff)
downloadmusl-8cddb98b4fe2f42bbf2d878ac2ddcf5b9a0d673f.tar.gz
musl-8cddb98b4fe2f42bbf2d878ac2ddcf5b9a0d673f.tar.bz2
musl-8cddb98b4fe2f42bbf2d878ac2ddcf5b9a0d673f.zip
sys-devel/gdb: version bump to 8.0.1
Diffstat (limited to 'sys-devel/gdb')
-rw-r--r--sys-devel/gdb/Manifest4
-rw-r--r--sys-devel/gdb/gdb-8.0.1.ebuild251
-rw-r--r--sys-devel/gdb/gdb-8.0.ebuild7
3 files changed, 260 insertions, 2 deletions
diff --git a/sys-devel/gdb/Manifest b/sys-devel/gdb/Manifest
index 37bed60..8795d66 100644
--- a/sys-devel/gdb/Manifest
+++ b/sys-devel/gdb/Manifest
@@ -4,8 +4,10 @@ AUX gdb-linux_nat.patch 617 SHA256 dcef02741f402ad34c658a90b85667e93e1d3293fe294
AUX gdb-missing-stat_h.patch 398 SHA256 88a49f997609644866ca873653b1f7cc09f75edb33b2f32ac73c7caffa1ce8d3 SHA512 8b1d22a61cb471df7052d2215dd5d67175e1732769bde90cb992d23ef97dd7153e2ab348ec184577b9491b68184f542a3f5fe8027b280b5feb38b23353568449 WHIRLPOOL b83c3a7a1825e54f8deaf7a4068b4c1b99adb9d6c1c6ef04eef47450a12f90bcd854462703e006aa049c68fa30d7b64cbbfdca6d0f5dd578f72d6704ed23f1d2
DIST gdb-7.10.1.tar.xz 18531436 SHA256 25c72f3d41c7c8554d61cacbeacd5f40993276d2ccdec43279ac546e3993d6d5 SHA512 17a5138277a31685a5c2a841cb47ed9bc4626ea617b8ca77750513b300299f4fbbffe504958b5372de610dcb952c679cf8fa9c1bdadd380294fbf59b6e366010 WHIRLPOOL 02936f59d3f3f8a57966c72402f1da128dd8e10e686097ffdb3a2741cc0c1831ef27f97daa047fa006ff2ae9f79ae0480f6f0dc2d3f5904190a1dade0590c837
DIST gdb-7.12.1.tar.xz 19225392 SHA256 4607680b973d3ec92c30ad029f1b7dbde3876869e6b3a117d8a7e90081113186 SHA512 0ac8d0a495103611ef41167a08313a010dce6ca4c6d827cbe8558a0c1a1a8a6bfa53f1b7704251289cababbfaaf9e075550cdf741a54d6cd9ca3433d910efcd8 WHIRLPOOL 1da1d9680639531000f2518fb6e01551f7d35091065b933a25381339f7d78d64486b7ce54dd9815f7e82884133ccd6868950a15c27fb5a7b9b13243e99eba697
+DIST gdb-8.0.1.tar.xz 19583920 SHA256 3dbd5f93e36ba2815ad0efab030dcd0c7b211d7b353a40a53f4c02d7d56295e3 SHA512 5eb328910033f0918058be2f92caebf1e8dfc6caa3c730d99d621627e53de3c1b43761c2f683d53555893253c2f06768cbf56cdea051a3d291ffb6cfae87b5e1 WHIRLPOOL 4632580658f85faab596b98f4f9b3b21a48fc067f56c9ac987e4895f3bd1b430d8f78ef95965e0b78c53e69b502acdeeff5e966c3e8021e6426ce86b78807c17
DIST gdb-8.0.tar.xz 19588616 SHA256 f6a24ffe4917e67014ef9273eb8b547cb96a13e5ca74895b06d683b391f3f4ee SHA512 e4044bdd162cbf95044ec1eaa44d2fa62a33e051bdbbacbc97afd4dfb07bae1bea514381fc1966aede89d6796ef2377a15748a93d95e2ad494c8497db489e886 WHIRLPOOL 8e5f49fd8d6a57778ba80cab8768fc11426720c15d54010f9fbcac2c6d8495e7d17ea133f9006d650ed34fdb95b82ac1942d935eaa6b7218fc51d6de6e2213bb
EBUILD gdb-7.10.1.ebuild 6701 SHA256 044b11868a2119630bc870d641e7bc92d1c2ca33cffd12441b989953b0af5c68 SHA512 253c2e616793f25f55bbb9f305ed7da680c09ee9d9fec782ed0fc3e72420878c5dce77afdf31ead546795ddc65e4385ce2368f07e0ea7b487796f29f88661928 WHIRLPOOL 6c49a763888bea261564b68892c9fc2eb90dab47ab781647c18d412ef137b6d9888036e9d9984820ce08b26c6f932789de8268dcb52cfd5656c0c3f8ce3bbab1
EBUILD gdb-7.12.1.ebuild 6727 SHA256 23d753b889946aba877824a0647b30b21addd91615436c307c4de5e61c299ab7 SHA512 e6f00f5089d99f551b8f301feb4715c47e9030e6e34a7adb0f8f64a3b9dd8e9e06ecf2dcfca168542c3890683d2cc67bc69d82bbbd010fd69f98278ab1ca9576 WHIRLPOOL 274b958d4ad5219eb87c5af4414d8f43735ca2584e3d16a4813f7d704896c48b7cb1d3868ea29bb080a44d1e7a5b1797b77836c252b8e83233b81ae80deeae2b
-EBUILD gdb-8.0.ebuild 6729 SHA256 e558b89a553d14c1e74cd75189d3cc199bfe6c8c31709dbc31f5279ccc0ba087 SHA512 e2e6a1600cf0339719284104751c843688796cdc27d8a4ba7f5104db7025b8f18d3a603fe02b72d5123b9d1d146f86d25a136a0d166aba12980e35b0063ab49e WHIRLPOOL 2fcdab9f447139c26b9c8cb680e6418a2f9c960a09d444c59a4761939c43ebe1b5f16e3f461fd80b4edda42a57720154ff166578a042c0482592994b032d2ea5
+EBUILD gdb-8.0.1.ebuild 6970 SHA256 61b31cf5b3a8b6743d1e2180a2b49de80f278a2b0824a9642cc93fd89a5cac80 SHA512 fe6077c8b01ab13963f64de952d0cab1ac141db57bb94ce47958ce3d3c9b0031ec97809763c5d224238d66115f8dbf10420e7313a79b4811a453fe5e73db7fa2 WHIRLPOOL 90ece30395fc04a5ab0abc9d8e5144574838792b06e153edaebf2fe5a76334964d6fa206c89311dee30aef55196145ebabef3ac97985a7b1f8e37af8e5a28d1f
+EBUILD gdb-8.0.ebuild 6913 SHA256 9198b3c4f1c1c7a86063a06a182a8254a4af4fa71e9553a2c33658ba1de95602 SHA512 08f0d27933ae2613a3f1077a0d0cfe793be482cd69989a9810f4470a0725cac72b20c5e9c40dd5323385afef22ce9c404716fbd6b75b50e294227002c364f8e2 WHIRLPOOL ac2e05fbd03391b1ed9f1f43e1c0aacd1ed4253a2d2ed457d0782fceb307ef2c3a157f7edc1da70a3757950048e74e6191365a56a349d4f6882ec87af2f712dd
MISC metadata.xml 914 SHA256 b7651e2c8051c8b35a3c1080d50f1ba811ea40c42e8fb8e2eefd80a2b12832ae SHA512 515a5bcd6c70fc87309cd4e3822d83e1b8fdf52e58cbf331df0c38b9096ad2410dfdad14aed100ea0a53457f57ecdf2b61b910b6a52765219815e1872872ee0c WHIRLPOOL 237a1084550bbce7ddee98681b87fdcd6207c1f6cc40ff1aad1f623a5cd47f1ba3f3c6ae8558399264d52ada246b22cef53f59e2392c376e89524d50623d9524
diff --git a/sys-devel/gdb/gdb-8.0.1.ebuild b/sys-devel/gdb/gdb-8.0.1.ebuild
new file mode 100644
index 0000000..4067591
--- /dev/null
+++ b/sys-devel/gdb/gdb-8.0.1.ebuild
@@ -0,0 +1,251 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
+
+inherit flag-o-matic eutils python-single-r1
+
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY} == cross-* ]] ; then
+ export CTARGET=${CATEGORY#cross-}
+ fi
+fi
+is_cross() { [[ ${CHOST} != ${CTARGET} ]] ; }
+
+RPM=
+MY_PV=${PV}
+case ${PV} in
+9999*)
+ # live git tree
+ EGIT_REPO_URI="git://sourceware.org/git/binutils-gdb.git"
+ inherit git-2
+ SRC_URI=""
+ ;;
+*.*.50.2???????)
+ # weekly snapshots
+ SRC_URI="ftp://sourceware.org/pub/gdb/snapshots/current/gdb-weekly-${PV}.tar.xz"
+ ;;
+*.*.*.*.*.*)
+ # fedora versions; note we swap the rpm & fedora core versions.
+ # gdb-6.8.50.20090302-8.fc11.src.rpm -> gdb-6.8.50.20090302.11.8.ebuild
+ # gdb-7.9-11.fc23.src.rpm -> gdb-7.9.23.11.ebuild
+ inherit versionator rpm
+ gvcr() { get_version_component_range "$@"; }
+ parse_fedora_ver() {
+ set -- $(get_version_components)
+ MY_PV=$(gvcr 1-$(( $# - 2 )))
+ RPM="${PN}-${MY_PV}-$(gvcr $#).fc$(gvcr $(( $# - 1 ))).src.rpm"
+ }
+ parse_fedora_ver
+ SRC_URI="mirror://fedora-dev/development/rawhide/source/SRPMS/g/${RPM}"
+ ;;
+*)
+ # Normal upstream release
+ SRC_URI="mirror://gnu/gdb/${P}.tar.xz
+ ftp://sourceware.org/pub/gdb/releases/${P}.tar.xz"
+ ;;
+esac
+
+PATCH_VER=""
+DESCRIPTION="GNU debugger"
+HOMEPAGE="https://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
+ # alpha #562128
+ KEYWORDS="-alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~ppc-aix ~x64-cygwin ~amd64-fbsd ~x86-fbsd ~amd64-linux ~arm-linux ~x86-linux ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
+fi
+IUSE="+client lzma multitarget nls +python +server test vanilla xml"
+REQUIRED_USE="
+ python? ( ${PYTHON_REQUIRED_USE} )
+ || ( client server )
+"
+
+RDEPEND="server? ( !dev-util/gdbserver )
+ client? (
+ >=sys-libs/ncurses-5.2-r2:0=
+ sys-libs/readline:0=
+ lzma? ( app-arch/xz-utils )
+ python? ( ${PYTHON_DEPS} )
+ xml? ( dev-libs/expat )
+ sys-libs/zlib
+ )"
+DEPEND="${RDEPEND}
+ app-arch/xz-utils
+ sys-apps/texinfo
+ client? (
+ virtual/yacc
+ test? ( dev-util/dejagnu )
+ nls? ( sys-devel/gettext )
+ )"
+
+PATCHES=(
+ "${FILESDIR}"/${PN}-7.11-linux_nat.patch
+ "${FILESDIR}"/${PN}-7.11-missing-stat_h.patch
+)
+
+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
+
+ default
+
+ 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
+ [[ -n ${EGIT_COMMIT} ]] && printf " ${EGIT_COMMIT}"
+}
+
+src_configure() {
+ strip-unsupported-flags
+
+ local myconf=(
+ --with-pkgversion="$(gdb_branding)"
+ --with-bugurl='https://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"
+ --with-gdb-datadir="\${datadir}/gdb/${CTARGET}"
+ )
+
+ 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
+ # Disable guile for now as it requires guile-2.x #562902
+ --without-guile
+ # This only disables building in the readline subdir.
+ # For gdb itself, it'll use the system version.
+ --disable-readline
+ --with-system-readline
+ # This only disables building in the zlib subdir.
+ # For gdb itself, it'll use the system version.
+ --without-zlib
+ --with-system-zlib
+ --with-separate-debug-dir="${EPREFIX}"/usr/lib/debug
+ $(use_with xml expat)
+ $(use_with lzma)
+ $(use_enable nls)
+ $(use multitarget && echo --enable-targets=all)
+ $(use_with python python "${EPYTHON}")
+ )
+ fi
+ if use sparc-solaris || use x86-solaris ; then
+ # disable largefile support
+ # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html
+ myconf+=( --disable-largefile )
+ fi
+
+ econf "${myconf[@]}"
+}
+
+src_test() {
+ nonfatal emake check || ewarn "tests failed"
+}
+
+src_install() {
+ if use server && ! use client; then
+ cd gdb/gdbserver || die
+ fi
+ default
+ if use client; then
+ find "${ED}"/usr -name libiberty.a -delete || die
+ fi
+ cd "${S}" || die
+
+ # Delete translations that conflict with binutils-libs. #528088
+ # Note: Should figure out how to store these in an internal gdb dir.
+ if use nls ; then
+ find "${ED}" \
+ -regextype posix-extended -regex '.*/(bfd|opcodes)[.]g?mo$' \
+ -delete || die
+ fi
+
+ # Don't install docs when building a cross-gdb
+ if [[ ${CTARGET} != ${CHOST} ]] ; then
+ rm -r "${ED}"/usr/share/{doc,info,locale} || die
+ local f
+ for f in "${ED}"/usr/share/man/*/* ; do
+ if [[ ${f##*/} != ${CTARGET}-* ]] ; then
+ mv "${f}" "${f%/*}/${CTARGET}-${f##*/}" || die
+ fi
+ done
+ return 0
+ fi
+ # Install it by hand for now:
+ # https://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
+}
diff --git a/sys-devel/gdb/gdb-8.0.ebuild b/sys-devel/gdb/gdb-8.0.ebuild
index 7d7230c..68e85db 100644
--- a/sys-devel/gdb/gdb-8.0.ebuild
+++ b/sys-devel/gdb/gdb-8.0.ebuild
@@ -2,7 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
-PYTHON_COMPAT=( python{2_7,3_4,3_5} )
+PYTHON_COMPAT=( python{2_7,3_4,3_5,3_6} )
inherit flag-o-matic eutils python-single-r1
@@ -169,6 +169,11 @@ src_configure() {
$(use_with python python "${EPYTHON}")
)
fi
+ if use sparc-solaris || use x86-solaris ; then
+ # disable largefile support
+ # https://sourceware.org/ml/gdb-patches/2014-12/msg00058.html
+ myconf+=( --disable-largefile )
+ fi
econf "${myconf[@]}"
}