Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-devel/gdb/
Date: Mon, 20 Jan 2020 19:38:26
Message-Id: 1579549096.abc12b4d6fc5a276cdf82cf92066a27a9b5020a6.slyfox@gentoo
1 commit: abc12b4d6fc5a276cdf82cf92066a27a9b5020a6
2 Author: Alexander Tsoy <alexander <AT> tsoy <DOT> me>
3 AuthorDate: Mon Jan 20 10:48:41 2020 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Mon Jan 20 19:38:16 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=abc12b4d
7
8 sys-devel/gdb: call python_optimize, bug #705680
9
10 Closes: https://bugs.gentoo.org/705680
11 Signed-off-by: Alexander Tsoy <alexander <AT> tsoy.me>
12 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
13
14 sys-devel/gdb/{gdb-9999.ebuild => gdb-8.3.1-r1.ebuild} | 4 ++++
15 sys-devel/gdb/gdb-9999.ebuild | 4 ++++
16 2 files changed, 8 insertions(+)
17
18 diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-8.3.1-r1.ebuild
19 similarity index 98%
20 copy from sys-devel/gdb/gdb-9999.ebuild
21 copy to sys-devel/gdb/gdb-8.3.1-r1.ebuild
22 index 9fc57491538..6188f7eb4f5 100644
23 --- a/sys-devel/gdb/gdb-9999.ebuild
24 +++ b/sys-devel/gdb/gdb-8.3.1-r1.ebuild
25 @@ -244,6 +244,10 @@ src_install() {
26 if [[ ${CHOST} == *-freebsd* ]]; then
27 rm "${ED}"/usr/bin/gcore || die
28 fi
29 +
30 + if use python; then
31 + python_optimize "${ED}"/usr/share/gdb/python/gdb
32 + fi
33 }
34
35 pkg_postinst() {
36
37 diff --git a/sys-devel/gdb/gdb-9999.ebuild b/sys-devel/gdb/gdb-9999.ebuild
38 index 9fc57491538..6188f7eb4f5 100644
39 --- a/sys-devel/gdb/gdb-9999.ebuild
40 +++ b/sys-devel/gdb/gdb-9999.ebuild
41 @@ -244,6 +244,10 @@ src_install() {
42 if [[ ${CHOST} == *-freebsd* ]]; then
43 rm "${ED}"/usr/bin/gcore || die
44 fi
45 +
46 + if use python; then
47 + python_optimize "${ED}"/usr/share/gdb/python/gdb
48 + fi
49 }
50
51 pkg_postinst() {