commit:     b9b22135a5095cbcc4c26dc9573a0e677f2637f5
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Thu Jun 17 22:04:00 2021 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Jun 17 22:04:00 2021 +0000
URL:        https://gitweb.gentoo.org/proj/tatt.git/commit/?id=b9b22135

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 <AT> gentoo.org>

 templates/tatt_functions.sh | 5 +++++
 1 file changed, 5 insertions(+)

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

Reply via email to