Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 798885 - dev-java/gradle-bin circular dependency with app-eselect/eselect-gradle
Summary: dev-java/gradle-bin circular dependency with app-eselect/eselect-gradle
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Florian Schmaus
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-06-27 11:59 UTC by Marco Genasci
Modified: 2021-06-28 09:09 UTC (History)
6 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marco Genasci 2021-06-27 11:59:21 UTC
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
Comment 1 Florian Schmaus gentoo-dev 2021-06-28 06:01:06 UTC
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.
Comment 2 Larry the Git Cow gentoo-dev 2021-06-28 09:09:48 UTC
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(-)