commit: 760453f9f047e4e6c474e51c954cc415bc7418d6
Author: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
AuthorDate: Sun Aug 25 21:26:21 2019 +0000
Commit: Sergei Trofimovich <slyfox <AT> gentoo <DOT> org>
CommitDate: Sun Aug 25 21:29:12 2019 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=760453f9
toolchain.eclass: cleanup create_revdep_rebuild_entry()
>From #gentoo-toolchain:
"""
<+[Arfrever]> It will cause that empty /etc/revdep-rebuild directory
will be installed by gcc. Please move dodir to after
'is_crosscompile || return 0'.
<+[Arfrever]> ${revdep_rebuild_file} should be quoted.
"""
Reported-by: Arfrever Frehtes Taifersar Arahesis
Signed-off-by: Sergei Trofimovich <slyfox <AT> gentoo.org>
eclass/toolchain.eclass | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/eclass/toolchain.eclass b/eclass/toolchain.eclass
index 156ec3d0cf8..529c12a4116 100644
--- a/eclass/toolchain.eclass
+++ b/eclass/toolchain.eclass
@@ -2140,13 +2140,13 @@ create_gcc_env_entry() {
}
create_revdep_rebuild_entry() {
- dodir /etc/revdep-rebuild
local
revdep_rebuild_base="/etc/revdep-rebuild/05cross-${CTARGET}-${GCC_CONFIG_VER}"
local revdep_rebuild_file="${ED}${revdep_rebuild_base}"
is_crosscompile || return 0
- cat <<-EOF > ${revdep_rebuild_file}
+ dodir /etc/revdep-rebuild
+ cat <<-EOF > "${revdep_rebuild_file}"
# Generated by ${CATEGORY}/${PF}
# Ignore libraries built for ${CTARGET}, https://bugs.gentoo.org/692844.
SEARCH_DIRS_MASK="${LIBPATH}"