diff options
author | Mike Frysinger <vapier@gentoo.org> | 2014-08-04 01:30:06 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2014-08-04 01:30:06 +0000 |
commit | aa63df0c731eea35726fcad0db657d877158f659 (patch) | |
tree | 567c13a391a9daf0313ddbc2178254a6c1465c11 /sys-devel | |
parent | Zero copy for infiniband psm userspace driver. ACPI: Disable Windows 8 compa... (diff) | |
download | gentoo-2-aa63df0c731eea35726fcad0db657d877158f659.tar.gz gentoo-2-aa63df0c731eea35726fcad0db657d877158f659.tar.bz2 gentoo-2-aa63df0c731eea35726fcad0db657d877158f659.zip |
Install gdb datafiles for cross-gdbs too as they need their own python/xml/etc... files since they can be different versions than the native gdb.
(Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key D2E96200)
Diffstat (limited to 'sys-devel')
-rw-r--r-- | sys-devel/gdb/ChangeLog | 8 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-7.8.ebuild | 11 | ||||
-rw-r--r-- | sys-devel/gdb/gdb-9999.ebuild | 11 |
3 files changed, 25 insertions, 5 deletions
diff --git a/sys-devel/gdb/ChangeLog b/sys-devel/gdb/ChangeLog index dbc401e937e6..c586f53b91a0 100644 --- a/sys-devel/gdb/ChangeLog +++ b/sys-devel/gdb/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for sys-devel/gdb # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.272 2014/08/01 09:46:02 armin76 Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/ChangeLog,v 1.273 2014/08/04 01:30:06 vapier Exp $ + + 04 Aug 2014; Mike Frysinger <vapier@gentoo.org> gdb-7.8.ebuild, + gdb-9999.ebuild: + Install gdb datafiles for cross-gdbs too as they need their own + python/xml/etc... files since they can be different versions than the native + gdb. 01 Aug 2014; Raúl Porcel <armin76@gentoo.org> gdb-7.6.2.ebuild: sparc stable wrt #501528 diff --git a/sys-devel/gdb/gdb-7.8.ebuild b/sys-devel/gdb/gdb-7.8.ebuild index e7a288694985..6ad82efcdcfb 100644 --- a/sys-devel/gdb/gdb-7.8.ebuild +++ b/sys-devel/gdb/gdb-7.8.ebuild @@ -1,6 +1,6 @@ # 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-7.8.ebuild,v 1.1 2014/07/30 12:42:27 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-7.8.ebuild,v 1.2 2014/08/04 01:30:06 vapier Exp $ EAPI="4" PYTHON_COMPAT=( python{2_7,3_3,3_4} ) @@ -105,6 +105,7 @@ src_configure() { is_cross && myconf+=( --with-sysroot="${sysroot}" --includedir="${sysroot}/usr/include" + --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" ) if use server && ! use client ; then @@ -157,7 +158,13 @@ src_install() { # Don't install docs when building a cross-gdb if [[ ${CTARGET} != ${CHOST} ]] ; then - rm -r "${ED}"/usr/share + rm -r "${ED}"/usr/share/{doc,info,locale} + 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: diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild index 9b27de69eaaf..475ec20a833f 100644 --- a/sys-devel/gdb/gdb-9999.ebuild +++ b/sys-devel/gdb/gdb-9999.ebuild @@ -1,6 +1,6 @@ # 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.28 2014/07/30 12:42:27 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-devel/gdb/gdb-9999.ebuild,v 1.29 2014/08/04 01:30:06 vapier Exp $ EAPI="4" PYTHON_COMPAT=( python{2_7,3_3,3_4} ) @@ -105,6 +105,7 @@ src_configure() { is_cross && myconf+=( --with-sysroot="${sysroot}" --includedir="${sysroot}/usr/include" + --with-gdb-datadir="\${datadir}/gdb/${CTARGET}" ) if use server && ! use client ; then @@ -157,7 +158,13 @@ src_install() { # Don't install docs when building a cross-gdb if [[ ${CTARGET} != ${CHOST} ]] ; then - rm -r "${ED}"/usr/share + rm -r "${ED}"/usr/share/{doc,info,locale} + 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: |