toolchain.eclass: fix gdb autoload path, bug #572480
authorSergei Trofimovich <slyfox@gentoo.org>
Wed, 21 Aug 2019 18:25:02 +0000 (19:25 +0100)
committerSergei Trofimovich <slyfox@gentoo.org>
Wed, 21 Aug 2019 18:28:20 +0000 (19:28 +0100)
Reported-and-fixed-by: Hristo Venev
Bug: https://bugs.gentoo.org/572480
Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
eclass/toolchain.eclass

index d7f6f1993652fb818b56d79755de3d3043e9bc25..06503b28f29b8879450cec3fa12cd3b3e0c1d592 100644 (file)
@@ -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%/*}