1 |
commit: 1d5f376f8d4b3c6b249452f4242ac2bde10a6a02 |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu May 3 09:56:43 2018 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon May 7 07:43:26 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1d5f376f |
7 |
|
8 |
multilib-build.eclass: Enable EAPI 7 support |
9 |
|
10 |
Enable EAPI 7. Correct all ${ED} references to account both for |
11 |
trailing slash being present and absent. |
12 |
|
13 |
eclass/multilib-build.eclass | 22 +++++++++++----------- |
14 |
1 file changed, 11 insertions(+), 11 deletions(-) |
15 |
|
16 |
diff --git a/eclass/multilib-build.eclass b/eclass/multilib-build.eclass |
17 |
index 6356350c43b..261f0f4a170 100644 |
18 |
--- a/eclass/multilib-build.eclass |
19 |
+++ b/eclass/multilib-build.eclass |
20 |
@@ -1,4 +1,4 @@ |
21 |
-# Copyright 1999-2015 Gentoo Foundation |
22 |
+# Copyright 1999-2018 Gentoo Foundation |
23 |
# Distributed under the terms of the GNU General Public License v2 |
24 |
|
25 |
# @ECLASS: multilib-build.eclass |
26 |
@@ -20,7 +20,7 @@ if [[ ! ${_MULTILIB_BUILD} ]]; then |
27 |
|
28 |
# EAPI=4 is required for meaningful MULTILIB_USEDEP. |
29 |
case ${EAPI:-0} in |
30 |
- 4|5|6) ;; |
31 |
+ 4|5|6|7) ;; |
32 |
*) die "EAPI=${EAPI} is not supported" ;; |
33 |
esac |
34 |
|
35 |
@@ -269,8 +269,8 @@ multilib_check_headers() { |
36 |
_multilib_header_cksum() { |
37 |
set -o pipefail |
38 |
|
39 |
- if [[ -d ${ED}usr/include ]]; then |
40 |
- find "${ED}"usr/include -type f \ |
41 |
+ if [[ -d ${ED%/}/usr/include ]]; then |
42 |
+ find "${ED%/}"/usr/include -type f \ |
43 |
-exec cksum {} + | sort -k2 |
44 |
fi |
45 |
} |
46 |
@@ -390,7 +390,7 @@ multilib_prepare_wrappers() { |
47 |
|
48 |
[[ ${#} -le 1 ]] || die "${FUNCNAME}: too many arguments" |
49 |
|
50 |
- local root=${1:-${ED}} |
51 |
+ local root=${1:-${ED%/}} |
52 |
local f |
53 |
|
54 |
if [[ ${COMPLETE_MULTILIB} == yes ]]; then |
55 |
@@ -458,9 +458,9 @@ multilib_prepare_wrappers() { |
56 |
|
57 |
# Some ABIs may have install less files than others. |
58 |
if [[ -f ${root}/usr/include${f} ]]; then |
59 |
- local wrapper=${ED}/tmp/multilib-include${f} |
60 |
+ local wrapper=${ED%/}/tmp/multilib-include${f} |
61 |
|
62 |
- if [[ ! -f ${ED}/tmp/multilib-include${f} ]]; then |
63 |
+ if [[ ! -f ${ED%/}/tmp/multilib-include${f} ]]; then |
64 |
dodir "/tmp/multilib-include${dir}" |
65 |
# a generic template |
66 |
cat > "${wrapper}" <<_EOF_ || die |
67 |
@@ -518,7 +518,7 @@ _EOF_ |
68 |
|
69 |
# $CHOST shall be set by multilib_toolchain_setup |
70 |
dodir "/tmp/multilib-include/${CHOST}${dir}" |
71 |
- mv "${root}/usr/include${f}" "${ED}/tmp/multilib-include/${CHOST}${dir}/" || die |
72 |
+ mv "${root}/usr/include${f}" "${ED%/}/tmp/multilib-include/${CHOST}${dir}/" || die |
73 |
|
74 |
# Note: match a space afterwards to avoid collision potential. |
75 |
sed -e "/${MULTILIB_ABI_FLAG} /s&error.*&include <${CHOST}${f}>&" \ |
76 |
@@ -558,11 +558,11 @@ multilib_install_wrappers() { |
77 |
|
78 |
local root=${1:-${ED}} |
79 |
|
80 |
- if [[ -d "${ED}"/tmp/multilib-include ]]; then |
81 |
+ if [[ -d ${ED%/}/tmp/multilib-include ]]; then |
82 |
multibuild_merge_root \ |
83 |
- "${ED}"/tmp/multilib-include "${root}"/usr/include |
84 |
+ "${ED%/}"/tmp/multilib-include "${root}"/usr/include |
85 |
# it can fail if something else uses /tmp |
86 |
- rmdir "${ED}"/tmp &>/dev/null |
87 |
+ rmdir "${ED%/}"/tmp &>/dev/null |
88 |
fi |
89 |
} |