commit:     abc12b4d6fc5a276cdf82cf92066a27a9b5020a6
Author:     Alexander Tsoy <alexander <AT> tsoy <DOT> me>
AuthorDate: Mon Jan 20 10:48:41 2020 +0000
Commit:     Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Mon Jan 20 19:38:16 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abc12b4d

sys-devel/gdb: call python_optimize, bug #705680

Closes: https://bugs.gentoo.org/705680
Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>

 sys-devel/gdb/{gdb-9999.ebuild => gdb-8.3.1-r1.ebuild} | 4 ++++
 sys-devel/gdb/gdb-9999.ebuild                          | 4 ++++
 2 files changed, 8 insertions(+)

diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-8.3.1-r1.ebuild
similarity index 98%
copy from sys-devel/gdb/gdb-9999.ebuild
copy to sys-devel/gdb/gdb-8.3.1-r1.ebuild
index 9fc57491538..6188f7eb4f5 100644
--- a/sys-devel/gdb/gdb-9999.ebuild
+++ b/sys-devel/gdb/gdb-8.3.1-r1.ebuild
@@ -244,6 +244,10 @@ src_install() {
        if [[ ${CHOST} == *-freebsd* ]]; then
                rm "${ED}"/usr/bin/gcore || die
        fi
+
+       if use python; then
+               python_optimize "${ED}"/usr/share/gdb/python/gdb
+       fi
 }
 
 pkg_postinst() {

diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild
index 9fc57491538..6188f7eb4f5 100644
--- a/sys-devel/gdb/gdb-9999.ebuild
+++ b/sys-devel/gdb/gdb-9999.ebuild
@@ -244,6 +244,10 @@ src_install() {
        if [[ ${CHOST} == *-freebsd* ]]; then
                rm "${ED}"/usr/bin/gcore || die
        fi
+
+       if use python; then
+               python_optimize "${ED}"/usr/share/gdb/python/gdb
+       fi
 }
 
 pkg_postinst() {

Reply via email to