diff options
author | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2013-01-25 16:22:40 -0800 |
---|---|---|
committer | Diego Elio Pettenò <flameeyes@flameeyes.eu> | 2013-01-25 16:22:40 -0800 |
commit | 45eb2725e20af40caf07c81e582402eb382e6d47 (patch) | |
tree | 1838af559d92c7469f10484bfb2f8dd09e285e7d | |
parent | Avoid deleting the emerge.log, just truncate it. (diff) | |
download | flameeyes-tinderbox-45eb2725e20af40caf07c81e582402eb382e6d47.tar.gz flameeyes-tinderbox-45eb2725e20af40caf07c81e582402eb382e6d47.tar.bz2 flameeyes-tinderbox-45eb2725e20af40caf07c81e582402eb382e6d47.zip |
Try running the merge with USE=-doc first, then fall back to FEATURES=-test.
-rwxr-xr-x | emerge-wrapper.sh | 15 |
1 files 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 |