Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 601906 - dev-ml/opam: dependency cycle with jsonm, topkg, uchar, uutf
Summary: dev-ml/opam: dependency cycle with jsonm, topkg, uchar, uutf
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Team for the ML programming language family
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2016-12-07 15:24 UTC by Sergey 'L29Ah' Alirzaev
Modified: 2017-01-09 11:09 UTC (History)
0 users

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 Sergey 'L29Ah' Alirzaev 2016-12-07 15:24:09 UTC
I cannot provide a legal ordering for the following:

n   dev-ml/jsonm:0::gentoo 1.0.0 to ::installed [cycle 1]
    "Non-blocking streaming JSON codec for OCaml"
    build_options: symbols=compress -dwarf_compress -optional_tests -trace work=tidyup
    Reasons: dev-ml/opam-1.2.2-r1:0::gentoo
    In unsolvable cycle with dev-ml/jsonm:0, dev-ml/opam:0, dev-ml/topkg:0, dev-ml/uchar:0, dev-ml/uutf:0

n   dev-ml/opam:0::gentoo 1.2.2-r1 to ::installed [cycle 1]
    "A source-based package manager for OCaml"
    build_options: symbols=compress -dwarf_compress -optional_tests -trace work=tidyup
    Reasons: target, dev-ml/jsonm-1.0.0:0::gentoo, dev-ml/topkg-0.8.1:0::gentoo, dev-ml/uchar-0.0.1:0::gentoo

n   dev-ml/topkg:0::gentoo 0.8.1 to ::installed [cycle 1]
    "The transitory OCaml software packager"
    build_options: symbols=compress -dwarf_compress -optional_tests -trace work=tidyup
    Reasons: dev-ml/jsonm-1.0.0:0::gentoo, dev-ml/uutf-1.0.0:0::gentoo

n   dev-ml/uchar:0::gentoo 0.0.1 to ::installed [cycle 1]
    "Uchar compatibility library"
    ocamlopt build_options: symbols=compress -dwarf_compress -optional_tests -trace work=tidyup
    Reasons: dev-ml/jsonm-1.0.0:0::gentoo, dev-ml/uutf-1.0.0:0::gentoo

n   dev-ml/uutf:0::gentoo 1.0.0 to ::installed [cycle 1]
    "Non-blocking streaming Unicode codec for OCaml"
    -doc ocamlopt -utftrip (-test) build_options: symbols=compress -dwarf_compress -optional_tests -trace work=tidyup
    Reasons: dev-ml/jsonm-1.0.0:0::gentoo, dev-ml/opam-1.2.2-r1:0::gentoo
Comment 1 bitozoid 2016-12-20 09:08:46 UTC
I solved it by installing first jsonm-0.9.1 and uutf-0.9.4. Those two do not depend upon opam so there is no dependency cycle.

Anyway it should be fixed.
Comment 2 hfk22 2017-01-09 06:32:32 UTC
I just tried the (In reply to bitozoid from comment #1)
> I solved it by installing first jsonm-0.9.1 and uutf-0.9.4. Those two do not
> depend upon opam so there is no dependency cycle.
> 
> Anyway it should be fixed.

I just did the same and it worked for me as well.  To note, I needed to install uutf-0.9.4 first and then jsonm-0.9.1 in that order to avoid the circular dependency.  That said, until this is fixed, it really breaks ocaml installations since we can't pull from opam without going through some odd hoops.
Comment 3 Alexis Ballier gentoo-dev 2017-01-09 11:09:10 UTC
commit b198f454d812345a524f13243e39e6f977d71790
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Mon Jan 9 12:07:30 2017 +0100

    dev-ml/uchar: stop using opam-installer as it is an indirect opam dep, bug #601906
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

commit 2039c2439c4c69731caeb3be133550cd31881080
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Mon Jan 9 12:01:10 2017 +0100

    dev-ml/jsonm: stop using opam-installer as it is an opam dep, bug #601906
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1

commit 368bf1d4336df0a76cfbeed8323487405791a084
Author: Alexis Ballier <aballier@gentoo.org>
Date:   Mon Jan 9 11:56:17 2017 +0100

    dev-ml/topkg: stop using opam-installer as it is an opam dep, bug #601906
    
    Package-Manager: Portage-2.3.3, Repoman-2.3.1




This should do it I think. Please reopen if there is anything I've missed.