Gentoo Archives: gentoo-commits

From: Patrick McLean <chutzpah@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Fri, 15 Mar 2019 00:34:21
Message-Id: 1552610035.f0250f181166b46e1c438da988611911519695a1.chutzpah@gentoo
1 commit: f0250f181166b46e1c438da988611911519695a1
2 Author: Patrick McLean <patrick.mclean <AT> sony <DOT> com>
3 AuthorDate: Fri Mar 15 00:29:01 2019 +0000
4 Commit: Patrick McLean <chutzpah <AT> gentoo <DOT> org>
5 CommitDate: Fri Mar 15 00:33:55 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f0250f18
7
8 linux-mod.eclass: support DEBUG_INFO_{SPLIT,DWARF4} bug #653286
9
10 When CONFIG_DEBUG_INFO_SPLIT and/or CONFIG_DEBUG_INFO_DWARF4 are set,
11 the kernel build system tries to create a null.dwo file in the root of
12 the kernel source directory. This adds an addpredict to prevent this
13 from failing due to a sandbox failure.
14
15 Acked-by: Thomas Deutschmann <whissi <AT> gentoo.org>
16 Closes: https://bugs.gentoo.org/653286
17 Signed-off-by: Patrick McLean <chutzpah <AT> gentoo.org>
18
19 eclass/linux-mod.eclass | 4 ++++
20 1 file changed, 4 insertions(+)
21
22 diff --git a/eclass/linux-mod.eclass b/eclass/linux-mod.eclass
23 index 920790b8db9..de005967a36 100644
24 --- a/eclass/linux-mod.eclass
25 +++ b/eclass/linux-mod.eclass
26 @@ -638,6 +638,8 @@ linux-mod_src_compile() {
27 set_arch_to_kernel
28 ABI="${KERNEL_ABI}"
29
30 + [[ -n ${KERNEL_DIR} ]] && addpredict "${KERNEL_DIR}/null.dwo"
31 +
32 BUILD_TARGETS=${BUILD_TARGETS:-clean module}
33 strip_modulenames;
34 cd "${S}"
35 @@ -702,6 +704,8 @@ linux-mod_src_install() {
36
37 local modulename libdir srcdir objdir i n
38
39 + [[ -n ${KERNEL_DIR} ]] && addpredict "${KERNEL_DIR}/null.dwo"
40 +
41 strip_modulenames;
42 for i in ${MODULE_NAMES}
43 do