From 2e8ea65a68b08708321138ab2df1741778297632 Mon Sep 17 00:00:00 2001 From: o01eg Date: Fri, 27 Oct 2017 11:27:16 +0300 Subject: [PATCH] Test RLS state according to https://github.com/rust-lang/rust/pull/45098 --- dev-lang/rust/rust-9999-r1.ebuild | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/dev-lang/rust/rust-9999-r1.ebuild b/dev-lang/rust/rust-9999-r1.ebuild index a159424..3f73e78 100644 --- a/dev-lang/rust/rust-9999-r1.ebuild +++ b/dev-lang/rust/rust-9999-r1.ebuild @@ -65,6 +65,16 @@ src_prepare() { use amd64 && BUILD_TRIPLE=x86_64-unknown-linux-gnu use x86 && BUILD_TRIPLE=i686-unknown-linux-gnu + + if use tools; then + RLS_STATE=$(grep "rls *= *" src/tools/toolstate.toml | grep -Po '(?<=").*(?=")') + if [ "${RLS_STATE}" = "Broken" ];then + eerror "RLS is building but its state is $RLS_STATE. Consider to disable 'tools' USE-flag" + die "RLS is broken" + else + einfo "RLS state is $RLS_STATE." + fi + fi } src_unpack() {