commit:     559cf5f4b15f024e21eab5f2458effe7806da8ad
Author:     Stephen L Arnold <nerdboy <AT> gentoo <DOT> org>
AuthorDate: Wed Oct 11 21:39:20 2017 +0000
Commit:     Steve Arnold <nerdboy <AT> gentoo <DOT> org>
CommitDate: Wed Oct 11 21:40:10 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=559cf5f4

sys-devel/gdb: fix build with USE=-nls

* add f to rm -r for when locale dir is not there

Package-Manager: Portage-2.3.11, Repoman-2.3.3

 sys-devel/gdb/gdb-8.0.1.ebuild | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/sys-devel/gdb/gdb-8.0.1.ebuild b/sys-devel/gdb/gdb-8.0.1.ebuild
index 82cbc96263c..6e1aa11c9e2 100644
--- a/sys-devel/gdb/gdb-8.0.1.ebuild
+++ b/sys-devel/gdb/gdb-8.0.1.ebuild
@@ -178,7 +178,7 @@ src_test() {
 }
 
 src_install() {
-       if use server && ! use client; then 
+       if use server && ! use client; then
                cd gdb/gdbserver || die
        fi
        default
@@ -197,7 +197,7 @@ src_install() {
 
        # Don't install docs when building a cross-gdb
        if [[ ${CTARGET} != ${CHOST} ]] ; then
-               rm -r "${ED}"/usr/share/{doc,info,locale} || die
+               rm -rf "${ED}"/usr/share/{doc,info,locale} || die
                local f
                for f in "${ED}"/usr/share/man/*/* ; do
                        if [[ ${f##*/} != ${CTARGET}-* ]] ; then

Reply via email to