From 45eb2725e20af40caf07c81e582402eb382e6d47 Mon Sep 17 00:00:00 2001 From: Diego Elio Pettenò Date: Fri, 25 Jan 2013 16:22:40 -0800 Subject: Try running the merge with USE=-doc first, then fall back to FEATURES=-test. --- emerge-wrapper.sh | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/emerge-wrapper.sh b/emerge-wrapper.sh index 1bd3ba1..74ac178 100755 --- a/emerge-wrapper.sh +++ b/emerge-wrapper.sh @@ -27,8 +27,8 @@ else dent_me() { :; } fi -# Don't tweet this away if we're running a non-test try -if [[ -z "${FEATURES}" ]]; then +# Don't tweet this away if we're running a second-tier try +if [[ -z "${USE}" ]]; then dent_me "$1 queued" fi @@ -42,9 +42,14 @@ if [[ $res != 0 ]]; then if ! fgrep -q ">>> emerge" /var/log/emerge.log; then # Here it means that the merge was rejected; the common case # it's a cyclic dependency that Portage cannot break, which is - # unfortunately common when enabling tests e.g. with Ruby-NG - # ebuilds. To try recovering from this, try a merge without - # test features enabled. + # unfortunately common when enabling tests or doc, usually + # with Ruby ebuilds, but no longer limited to them. To find a + # way around this, we first check for a build with USE=-doc, + # and then one with FEATURES=-test as well. This does mean + # that we skip the tests on a doc circular dependency + # unfortunately. + if [[ -z "${USE}" ]]; then + USE=-doc $0 "$@" if [[ -z "${FEATURES}" ]]; then FEATURES=-test $0 "$@" else -- cgit v1.2.3-65-gdbad