when trying to install emerge dev-java/gradle-bin portage reports the following error: * Error: circular dependencies: (app-eselect/eselect-gradle-0.2:0/0::gentoo, ebuild scheduled for merge) depends on (dev-java/gradle-bin-7.1:7.1/7.1::gentoo, ebuild scheduled for merge) (runtime) (app-eselect/eselect-gradle-0.2:0/0::gentoo, ebuild scheduled for merge) (buildtime) This circular error can be break, asworkaround, with # emerge -1 app-eselect/eselect-gradle --nodeps # emerge dev-java/gradle-bin I think that the solution is change app-eselect/eselect-gradle package dependencies, from RDEPEND=" app-admin/eselect >dev-java/gradle-bin-6.3 " to RDEPEND="app-admin/eselect" PDEPEND=">dev-java/gradle-bin-6.3" Reproducible: Always
Thanks for reporting. The gradle RDEPEND was a last minute addition to avoid /usr/bin/gradle file collisions between eselect-gradle and the, now gone, gradle-bin-6.3 ebuild. Eventually it occured to me the gradle RDEPEND does not really prevent this collision and that a hard blocker may be the only solution.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c8f09be0bec15256df87a888c50e53531fdafcca commit c8f09be0bec15256df87a888c50e53531fdafcca Author: Florian Schmaus <flow@gentoo.org> AuthorDate: 2021-06-28 06:11:29 +0000 Commit: Florian Schmaus <flow@gentoo.org> CommitDate: 2021-06-28 09:08:59 +0000 app-eselect/eselect-gradle: fix RDEPEND I was somehow under the impression that gradle-bin-6.3 from ::gentoo also installs /usr/bin/gradle, just as eselect-gradle. But this turned out to be not the case. So we can drop the dependency constraint from RDEPEND and resolve the circular dependency. Closes: https://bugs.gentoo.org/798885 Signed-off-by: Florian Schmaus <flow@gentoo.org> .../{eselect-gradle-0.2.ebuild => eselect-gradle-0.2-r1.ebuild} | 5 +---- app-eselect/eselect-gradle/eselect-gradle-9999.ebuild | 5 +---- 2 files changed, 2 insertions(+), 8 deletions(-)