aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-06-17 23:04:00 +0100
committerSam James <sam@gentoo.org>2021-06-17 23:04:00 +0100
commitb9b22135a5095cbcc4c26dc9573a0e677f2637f5 (patch)
tree02edf9d1f3aaa1bc5d2087eb803d63a599becd06
parentoutput a proper error message if the bug does not exist (diff)
downloadtatt-b9b22135.tar.gz
tatt-b9b22135.tar.bz2
tatt-b9b22135.zip
tatt_functions.sh: avoid circular dependencies with USE="minimal -doc"
Emerge test dependencies with USE="minimal -doc" first. This should avoid circular dependencies at least with a lot of dev-perl/* packages. Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r--templates/tatt_functions.sh5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/tatt_functions.sh b/templates/tatt_functions.sh
index 0e95e9a..bd21e46 100644
--- a/templates/tatt_functions.sh
+++ b/templates/tatt_functions.sh
@@ -46,6 +46,11 @@ function tatt_test_pkg
{
if [ "${1:?}" == "--test" ]; then
shift
+
+ # Do a first pass to avoid circular dependencies
+ # --onlydeps should mean we're avoiding (too much) duplicate work
+ USE="minimal -doc" emerge --onlydeps -q1 --with-test-deps ${TATT_EMERGEOPTS} "${1:?}"
+
if ! emerge --onlydeps -q1 --with-test-deps ${TATT_EMERGEOPTS} "${1:?}"; then
echo "merging test dependencies of ${1} failed" >> "${TATT_REPORTFILE}"
return 1