FS#75765 - [ruby] 3.0.4-11 'dependency cycle' on install

Attached to Project: Community Packages
Opened by Gene (GeneC) - Wednesday, 31 August 2022, 19:50 GMT
Last edited by Toolybird (Toolybird) - Saturday, 20 May 2023, 22:44 GMT
Task Type Bug Report
Category Packages: Testing
Status Closed
Assigned To Andreas Schleifer (Segaja)
Architecture All
Severity Very Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 1
Private No


Little issue - when installing ruby there are bunches of repeated cycle messages from pacman

40 of these:
warning: ruby-stdlib will be installed before its ruby dependency
warning: dependency cycle detected:

5 of these:
warning: dependency cycle detected:
warning: ruby-bundledgems will be installed before its ruby dependency

Might be nice not to have this if possible.

P.S. Forgive me if i miscounted :)
This task depends upon

Closed by  Toolybird (Toolybird)
Saturday, 20 May 2023, 22:44 GMT
Reason for closing:  Not a bug
Additional comments about closing:  See comments from PM.
Comment by Toolybird (Toolybird) - Wednesday, 31 August 2022, 22:13 GMT
It looks untidy but not actually a bug. They're just warnings after all. You can find other examples within current Arch. See also  FS#64003 .
Comment by Gene (GeneC) - Wednesday, 31 August 2022, 22:58 GMT
Sure - I chose 'very low' severity for that reason. But excessive warnings are kind of buggy'ish too :)

While agree this is not a functional bug; everything works presumably, nonetheless, circular deps are seldom considered optimal :)

Whether these are driven by the underlying code or the packaging thereof is opaque to me.
If the latter then I would think it could be considered a packaging buglet.
If the former, then seems like sub-optimal code design that probably should be refactored upstream - if there's a head coding chef to drive that kind of thing.

Its good that pacman warns about this.
The standard loader also has options to deal with circular lib references (--start-group/--end-group), but its not really good practice.

The other bug you mention kind of seems like ruby as well :)

Anyway however you all want to handle, or not, is fine by me.

Comment by Andreas Schleifer (Segaja) - Thursday, 01 September 2022, 18:06 GMT
This is due to upstream ruby design and there is not too much that we as packagers can do about this.

Also there is a pacman "bug" that pacman reports the same cyclic dependency multiple times, but as far as I know this was already reported to pacman and if not will be soon.
Comment by Gene (GeneC) - Thursday, 01 September 2022, 18:15 GMT
Thanks for looking into this one too Andreas. Much appreciated.
Yes good idea to have pacman skip duplicate warnings.

Thanks again.