1 |
commit: ce86854ff88f4bd813a0d4f1387c1f9dcabb2a95 |
2 |
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Jan 7 18:50:11 2018 +0000 |
4 |
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 7 19:39:46 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ce86854f |
7 |
|
8 |
kernel-2.eclass: Migrate CROSSCOMPILE_OPTS=headers-only -> USE=headers-only |
9 |
|
10 |
CROSSCOMPILE_OPTS is a USE_EXPAND of a single item: headers-only. |
11 |
Convert it to a global USE flag instead. |
12 |
|
13 |
Mechanical ebuild rename done as: |
14 |
$ sed -e 's@crosscompile_opts_headers-only@headers-only@g' \ |
15 |
-i $(git grep -l headers-only) |
16 |
|
17 |
'headers-only' flag is used by crossdev to bootstrap stage1 compiler |
18 |
before libc is available. |
19 |
|
20 |
crossdev switched to USE=headers-only in =sys-devel/crossdev-20171230. |
21 |
|
22 |
Bug: https://bugs.gentoo.org/642712 |
23 |
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org> |
24 |
|
25 |
eclass/kernel-2.eclass | 4 ++-- |
26 |
1 file changed, 2 insertions(+), 2 deletions(-) |
27 |
|
28 |
diff --git a/eclass/kernel-2.eclass b/eclass/kernel-2.eclass |
29 |
index 018f48e7106..a42d5f5ec24 100644 |
30 |
--- a/eclass/kernel-2.eclass |
31 |
+++ b/eclass/kernel-2.eclass |
32 |
@@ -667,7 +667,7 @@ if [[ ${ETYPE} == sources ]]; then |
33 |
|
34 |
elif [[ ${ETYPE} == headers ]]; then |
35 |
DESCRIPTION="Linux system headers" |
36 |
- IUSE="crosscompile_opts_headers-only" |
37 |
+ IUSE="headers-only" |
38 |
|
39 |
# Since we should NOT honour KBUILD_OUTPUT in headers |
40 |
# lets unset it here. |
41 |
@@ -693,7 +693,7 @@ kernel_header_destdir() { |
42 |
# @DESCRIPTION: |
43 |
# set use if necessary for cross compile support |
44 |
cross_pre_c_headers() { |
45 |
- use crosscompile_opts_headers-only && [[ ${CHOST} != ${CTARGET} ]] |
46 |
+ use headers-only && [[ ${CHOST} != ${CTARGET} ]] |
47 |
} |
48 |
|
49 |
# @FUNCTION: env_setup_xmakeopts |