From d934827bf44b7cfcf6711964418148fa60877668 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 25 Nov 2020 22:39:15 +0000 Subject: gentoo resync : 25.11.2020 --- sys-devel/gdb/gdb-9999.ebuild | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'sys-devel/gdb/gdb-9999.ebuild') diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild index ada72ec65c4d..4805e0131ff3 100644 --- a/sys-devel/gdb/gdb-9999.ebuild +++ b/sys-devel/gdb/gdb-9999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 -PYTHON_COMPAT=( python{3_6,3_7,3_8} ) +PYTHON_COMPAT=( python3_{6,7,8,9} ) inherit eutils flag-o-matic python-single-r1 toolchain-funcs @@ -100,6 +100,7 @@ src_prepare() { default strip-linguas -u bfd/po opcodes/po + export CC_FOR_BUILD=$(tc-getBUILD_CC) } gdb_branding() { @@ -136,7 +137,7 @@ src_configure() { if use server && ! use client ; then # just configure+build in the gdbserver subdir to speed things up - cd gdb/gdbserver + cd gdbserver myconf+=( --program-transform-name='' ) else # gdbserver only works for native targets (CHOST==CTARGET). @@ -157,6 +158,7 @@ src_configure() { --disable-install-libiberty # Disable guile for now as it requires guile-2.x #562902 --without-guile + --enable-obsolete # This only disables building in the readline subdir. # For gdb itself, it'll use the system version. --disable-readline @@ -189,13 +191,12 @@ src_configure() { src_install() { if use server && ! use client; then - cd gdb/gdbserver || die + cd 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. @@ -220,7 +221,7 @@ src_install() { # 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 + [[ -e gdbserver/gdbreplay ]] && dobin gdbserver/gdbreplay if use client ; then docinto gdb @@ -231,7 +232,7 @@ src_install() { dodoc sim/{ChangeLog,MAINTAINERS,README-HACKING} if use server ; then docinto gdbserver - dodoc gdb/gdbserver/{ChangeLog,README} + dodoc gdbserver/{ChangeLog,README} fi if [[ -n ${PATCH_VER} ]] ; then -- cgit v1.2.3