Skip to content

Commit

Permalink
mail-client/thunderbird: force stderr for ewarn in llvm_check_deps()
Browse files Browse the repository at this point in the history
Closes: https://bugs.gentoo.org/695668
Package-Manager: Portage-2.3.78, Repoman-2.3.17
Signed-off-by: Thomas Deutschmann <[email protected]>
  • Loading branch information
Whissi committed Oct 31, 2019
1 parent d3d68c8 commit 01e2210
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions mail-client/thunderbird/thunderbird-68.2.1.ebuild
Original file line number Diff line number Diff line change
Expand Up @@ -182,37 +182,36 @@ fi

llvm_check_deps() {
if ! has_version --host-root "sys-devel/clang:${LLVM_SLOT}" ; then
ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
ewarn "sys-devel/clang:${LLVM_SLOT} is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
return 1
fi

if use pgo ; then
if ! has usersandbox $FEATURES ; then
eerror "You must enable usersandbox as X server can not run as root!"
fi
fi

if use clang ; then
if ! has_version --host-root "=sys-devel/lld-${LLVM_SLOT}*" ; then
ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
ewarn "=sys-devel/lld-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
return 1
fi

if use pgo ; then
if ! has_version --host-root "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}*" ; then
ewarn "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..."
ewarn "=sys-libs/compiler-rt-sanitizers-${LLVM_SLOT}* is missing! Cannot use LLVM slot ${LLVM_SLOT} ..." >&2
return 1
fi
fi
fi

# <EAPI 7 workaround, #695668
einfo "Will use LLVM slot ${LLVM_SLOT}!" >&2
}

pkg_setup() {
moz_pkgsetup

if use pgo ; then
if ! has usersandbox $FEATURES ; then
die "You must enable usersandbox as X server can not run as root!"
fi
fi

# Avoid PGO profiling problems due to enviroment leakage
# These should *always* be cleaned up anyway
unset DBUS_SESSION_BUS_ADDRESS \
Expand Down

0 comments on commit 01e2210

Please sign in to comment.