You are not logged in.

#1 2011-09-20 22:20:41

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

[solved] Package A depends on package B which depends on package A

Example: http://www.archlinux.org/packages/core/i686/openssl/
ca-certificates depend on openssl which (optionally) depends on ca-certificates.

There are more such situations. I'm curious why the dependencies are laid out like that.

Last edited by karol (2012-03-16 20:10:03)

Offline

#2 2011-09-20 22:45:04

Allan
Pacman
From: Brisbane, AU
Registered: 2007-06-09
Posts: 11,385
Website

Re: [solved] Package A depends on package B which depends on package A

Because that is what is needed.

Offline

#3 2011-09-21 02:37:03

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: [solved] Package A depends on package B which depends on package A

I don't see the problem. Generally a dependency is needed for the program to run whereas an optional dependency would be for enabling additional features. ca-certificates needs openssl but openssl does not need ca-certificates.

Offline

#4 2011-09-21 18:00:44

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: [solved] Package A depends on package B which depends on package A

AKA  -- Circular Dependencies


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#5 2011-09-21 18:03:28

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Package A depends on package B which depends on package A

Inxsible wrote:

AKA  -- Circular Dependencies

Almost, since the ones I found were optional from one side, so to speak.

Offline

#6 2011-09-21 18:14:41

olive
Member
From: Belgium
Registered: 2008-06-22
Posts: 1,490

Re: [solved] Package A depends on package B which depends on package A

Don't see the issue. ca-certificate gives a plus to openssl and cannot be run without openssl. Any addon for some software will be referenced on the same way. Abiword-plugins obviously depends on abiword; abiword optionaly depends on abiword plugins which enhance its functionality.

Offline

#7 2012-02-10 21:30:25

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Package A depends on package B which depends on package A

I have a new example: http://www.archlinux.org/packages/extra/any/rhino/

[karol@black ~]$ pacman -S rhino
resolving dependencies...
:: There are 2 providers available for java-runtime:
:: Repository extra
   1) jre7-openjdk-headless  2) openjdk6

Enter a number (default=1): 1
warning: dependency cycle detected:
warning: jre7-openjdk-headless will be installed before its rhino dependency
looking for inter-conflicts...
[karol@black ~]$ pacman -S jre7-openjdk-headless
resolving dependencies...
warning: dependency cycle detected:
warning: rhino will be installed before its jre7-openjdk-headless dependency
looking for inter-conflicts...

The packages install fine in both cases.

Offline

#8 2012-02-13 14:28:32

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: [solved] Package A depends on package B which depends on package A

The traditional way to solve circular deps are to install both in one go.

pacman -Syu rhino jre7-openjdk-headless

It just happens that pacman can in some cases, unlike most other package managers, handle circular deps on its own, as the previous post shows.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#9 2012-03-16 20:09:22

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [solved] Package A depends on package B which depends on package A

Just to close the thread, link to the integrity check report: http://mailman.archlinux.org/pipermail/ … 22698.html

Since this is a known issue, it will be presumably dealt with one way or another some day.

Offline

Board footer

Powered by FluxBB