Skip to content

Circular dependency in packaging #822

Open

Description

@vinipsmaker

Rhombus-draw depends on rhombus which depends on rhombus-draw: https://pkgs.racket-lang.org/package/rhombus-draw

This causes problems on distribution channels such as Gentoo: https://gitlab.com/gentoo-racket/gentoo-racket-overlay/-/work_items/1#note_3832163974

Activity

  1. LiberalArtist commented on Sep 14, 2026

    @LiberalArtist

    The Racket package system supports cyclic package dependencies by design. They are present even at the root of the graph, with base and racket-lib, as well as a big cycle involving racket-doc. (In contrast, module dependencies are acyclic in Racket.)

    As a distro packager, Racket packages that are part of a cycle have to be built together. Depending on your distro’s package semantics, this may mean there will not be a 1-to-1 correspondence between packages in the Racket sense and in your distro’s sense.

    Would code to find the cycles help? I can find some later.

  2. xgqt commented on Sep 14, 2026

    @xgqt

    @LiberalArtist @vinipsmaker

    Would code to find the cycles help?

    I already had some hacks to break cycles but unfortunately the generator code is quite bitrotten and I have no time to fix it.

    The algo might be getting confused with rhombus :(

    The Racket package system supports cyclic package dependencies by design.

    Offtopic: I know, I know, This is genuinely a huge nuisance that makes no sense. Oh well.

  3. xgqt commented on Sep 14, 2026

    @xgqt

    @LiberalArtist @vinipsmaker
    The algo might be getting confused with rhombus :(

    The reason why its getting stuck is because the algo can only create a package that handles 2 pkgs at once. In this case it selected rhombus-slideshow as it's co-package. Handling means creating unreadable garbage ebuilds.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions