Skip to content

Commit

Permalink
llvm.eclass: Do not prepend /usr/bin to PATH, #622866
Browse files Browse the repository at this point in the history
  • Loading branch information
mgorny committed Aug 12, 2017
1 parent 672d788 commit 070c394
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion eclass/llvm.eclass
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,13 @@ llvm_pkg_setup() {
debug-print-function ${FUNCNAME} "${@}"

if [[ ${MERGE_TYPE} != binary ]]; then
export PATH=$(get_llvm_prefix ${LLVM_MAX_SLOT})/bin:${PATH}
local llvm_prefix=$(get_llvm_prefix "${LLVM_MAX_SLOT}")

# do not prepend /usr/bin, it's not necessary and breaks other
# prepends, https://bugs.gentoo.org/622866
if [[ ${llvm_prefix} != ${EPREFIX}/usr ]]; then
export PATH=${llvm_prefix}/bin:${PATH}
fi
fi
}

Expand Down

0 comments on commit 070c394

Please sign in to comment.