Gentoo Archives: gentoo-commits

From: Sergei Trofimovich <slyfox@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: eclass/
Date: Sun, 25 Aug 2019 21:29:22
Message-Id: 1566768552.760453f9f047e4e6c474e51c954cc415bc7418d6.slyfox@gentoo
1 commit: 760453f9f047e4e6c474e51c954cc415bc7418d6
2 Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
3 AuthorDate: Sun Aug 25 21:26:21 2019 +0000
4 Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
5 CommitDate: Sun Aug 25 21:29:12 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=760453f9
7
8 toolchain.eclass: cleanup create_revdep_rebuild_entry()
9
10 From #gentoo-toolchain:
11 """
12 <+[Arfrever]> It will cause that empty /etc/revdep-rebuild directory
13 will be installed by gcc. Please move dodir to after
14 'is_crosscompile || return 0'.
15 <+[Arfrever]> ${revdep_rebuild_file} should be quoted.
16 """
17
18 Reported-by: Arfrever Frehtes Taifersar Arahesis
19 Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
20
21 eclass/toolchain.eclass | 4 ++--
22 1 file changed, 2 insertions(+), 2 deletions(-)
23
24 diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
25 index 156ec3d0cf8..529c12a4116 100644
26 --- a/eclass/toolchain.eclass
27 +++ b/eclass/toolchain.eclass
28 @@ -2140,13 +2140,13 @@ create_gcc_env_entry() {
29 }
30
31 create_revdep_rebuild_entry() {
32 - dodir /etc/revdep-rebuild
33 local revdep_rebuild_base="/etc/revdep-rebuild/05cross-${CTARGET}-${GCC_CONFIG_VER}"
34 local revdep_rebuild_file="${ED}${revdep_rebuild_base}"
35
36 is_crosscompile || return 0
37
38 - cat <<-EOF > ${revdep_rebuild_file}
39 + dodir /etc/revdep-rebuild
40 + cat <<-EOF > "${revdep_rebuild_file}"
41 # Generated by ${CATEGORY}/${PF}
42 # Ignore libraries built for ${CTARGET}, https://bugs.gentoo.org/692844.
43 SEARCH_DIRS_MASK="${LIBPATH}"