You are not logged in.

#1 2022-07-16 13:05:43

UnluckyNinja
Member
Registered: 2022-02-14
Posts: 14

Ruby dependency loop

ruby

Name            : ruby
Version         : 3.0.4-1
Description     : An object-oriented language for quick and easy programming
Architecture    : x86_64
URL             : https://www.ruby-lang.org/en/
Licenses        : BSD  custom
Groups          : None
Provides        : None
Depends On      : gdbm  openssl  libffi  libyaml  libxcrypt  gmp  zlib  rubygems  ruby-irb
Optional Deps   : ruby-docs: Ruby documentation
                  tk: for Ruby/TK
Required By     : ruby-irb  ruby-reline  rubygems
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 13.50 MiB
Packager        : Anatol Pomozov <anatol.pomozov@gmail.com>
Build Date      : Tue 12 Apr 2022 07:39:20 PM -03
Install Date    : Tue 19 Apr 2022 03:51:27 PM -03


ruby-irb

Name            : ruby-irb
Version         : 1.4.1-1
Description     : Interactive Ruby command-line tool for REPL (Read Eval Print Loop).
Architecture    : any
URL             : https://github.com/ruby/irb
Licenses        : BSD-2
Groups          : None
Provides        : None
Depends On      : ruby  ruby-reline
Optional Deps   : None
Required By     : ruby
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 247.06 KiB
Packager        : Anatol Pomozov <anatol.pomozov@gmail.com>
Build Date      : Tue 18 Jan 2022 02:58:48 PM -03
Install Date    : Fri 11 Feb 2022 06:12:54 PM -03
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature


ruby-reline

Name            : ruby-reline
Version         : 0.3.1-1
Description     : Alternative GNU Readline or Editline implementation by pure Ruby.
Architecture    : any
URL             : https://github.com/ruby/reline
Licenses        : BSD-2
Groups          : None
Provides        : None
Depends On      : ruby
Optional Deps   : None
Required By     : ruby-irb
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 262.29 KiB
Packager        : Anatol Pomozov <anatol.pomozov@gmail.com>
Build Date      : Tue 18 Jan 2022 02:26:54 PM -03
Install Date    : Fri 11 Feb 2022 06:12:54 PM -03
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature


rubygems

Name            : rubygems
Version         : 3.3.15-1
Description     : Package management framework for Ruby
Architecture    : any
URL             : https://rubygems.org/
Licenses        : MIT
Groups          : None
Provides        : None
Depends On      : ruby
Optional Deps   : None
Required By     : ruby
Optional For    : None
Conflicts With  : None
Replaces        : None
Installed Size  : 962.21 KiB
Packager        : Anatol Pomozov <anatol.pomozov@gmail.com>
Build Date      : Fri 10 Jun 2022 01:14:49 PM -03
Install Date    : Mon 13 Jun 2022 07:52:48 PM -03
Install Reason  : Installed as a dependency for another package
Install Script  : No
Validated By    : Signature


Just realized this after checking why do I need ruby for when I tried to update my system and ruby wanted to install many new dependencies. Is this a loop or these packages are require by another one that pacman doesn't know about?

Last edited by UnluckyNinja (2022-07-16 13:06:54)

Offline

#2 2022-07-16 13:14:17

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Ruby dependency loop

A package can't be "required by another one" without pacman knowing about it: pacman knowing about it is precisely what makes packages required for another.

But yes, orphan loops can be self sustaining.  If you no longer want / need ruby, remove all of them together.

FWIW, I wrote a script that's posted on these forums somewhere specifically for detecting this sort of orphan/leaf loop of packages.  EDIT: here it is

Last edited by Trilby (2022-07-16 13:15:24)


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2022-08-25 17:08:00

webninja
Member
Registered: 2021-07-14
Posts: 2
Website

Re: Ruby dependency loop

But what if one does need ruby, and one is running into:

resolving dependencies...
looking for conflicting packages...
warning: dependency cycle detected:
warning: rubygems will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-abbrev will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-base64 will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-benchmark will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-bigdecimal will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-bundler will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-cgi will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-csv will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-date will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-delegate will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-did_you_mean will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-digest will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-drb will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-ruby2_keywords will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-irb will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-reline will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-json will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-net-http will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-uri will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-open-uri will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-stringio will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-time will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-psych will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-rdoc will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-minitest will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-power_assert will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-rake will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-rexml will be installed before its ruby dependency
warning: dependency cycle detected:
warning: ruby-test-unit will be installed before its ruby dependency

Packages (32) ruby-abbrev-0.1.0-1  ruby-base64-0.1.1-1  ruby-benchmark-0.2.0-1  ruby-bigdecimal-3.1.2-1
              ruby-bundledgems-3.0.4-7  ruby-bundler-2.3.19-1  ruby-cgi-0.3.2-1  ruby-csv-3.2.4-1  ruby-date-3.2.2-1
              ruby-delegate-0.2.0-1  ruby-did_you_mean-1.6.1-1  ruby-digest-3.1.0-1  ruby-drb-2.1.0-1  ruby-irb-1.4.1-1
              ruby-json-2.6.2-1  ruby-minitest-5.16.3-1  ruby-net-http-0.2.2-1  ruby-open-uri-0.2.0-2
              ruby-power_assert-2.0.1-1  ruby-psych-4.0.4-2  ruby-rake-13.0.6-1  ruby-rdoc-6.4.0-2  ruby-reline-0.3.1-1
              ruby-rexml-3.2.5-1  ruby-ruby2_keywords-0.0.5-1  ruby-stdlib-3.0.4-7  ruby-stringio-3.0.2-1
              ruby-test-unit-3.5.3-1  ruby-time-0.2.0-2  ruby-uri-0.11.0-2  rubygems-3.3.19-1  ruby-3.0.4-7

Total Download Size:    5.86 MiB
Total Installed Size:  24.32 MiB

:: Proceed with installation? [Y/n] ^C

Any advice?

Offline

#4 2022-08-25 17:15:05

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,442
Website

Re: Ruby dependency loop

webninja wrote:

But what if one does need ruby, and one is running into [a successful installation that would have progressed without errors had the user not used Ctrl-C to break it]

Any advice?

Yeah, one piece of advice: allow pacman to complete the installation.  There is no problem there.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

Board footer

Powered by FluxBB