commit: cd4f6bf307965aeed1117c053bbdd6cd14392dd9 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> AuthorDate: Wed Aug 21 18:25:02 2019 +0000 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> CommitDate: Wed Aug 21 18:28:20 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cd4f6bf3
toolchain.eclass: fix gdb autoload path, bug #572480 Reported-and-fixed-by: Hristo Venev Bug: https://bugs.gentoo.org/572480 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> eclass/toolchain.eclass | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass index d7f6f199365..06503b28f29 100644 --- a/eclass/toolchain.eclass +++ b/eclass/toolchain.eclass @@ -1961,8 +1961,8 @@ toolchain_src_install() { # for people who are testing as non-root. chown -R root:0 "${D}${LIBPATH}" 2>/dev/null - # Move pretty-printers to gdb datadir to shut ldconfig up - local py gdbdir=/usr/share/gdb/auto-load${LIBPATH/\/lib\//\/$(get_libdir)\/} + # Installing gdb pretty-printers into gdb-specific location. + local py gdbdir=/usr/share/gdb/auto-load${LIBPATH} pushd "${D}${LIBPATH}" >/dev/null for py in $(find . -name '*-gdb.py') ; do local multidir=${py%/*}
