Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 315201 - Invalid/missing dependencies in net-misc/{dahdi,dahdi-tools}
Summary: Invalid/missing dependencies in net-misc/{dahdi,dahdi-tools}
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Tony Vroon (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-04-14 04:17 UTC by kfm
Modified: 2010-04-14 11:36 UTC (History)
1 user (show)

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 kfm 2010-04-14 04:17:08 UTC
As noted by Oliver Jaksch in bug 308099, net-misc/dahdi spuriously asserts net-misc/asterisk as a runtime dependency. While dahdi may only be useful when used in conjunction with asterisk, it is not the case that asterisk is a dependency (runtime or otherwise).

This results in 2 principal issues, according to some tests I carried out on a server that has no installed VoIP-related packages. Firstly, and demonstrating that asterisk is needlessly pulled in:

# ACCEPT_KEYWORDS="~amd64" emerge -p dahdi

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild  N    ] net-misc/asterisk-1.6.2.6  USE="caps -alsa -curl -dahdi -debug -freetds -iconv -jabber -keepsrc -ldap -misdn -newt -nosamples -oss -postgres -radius -snmp -span -speex -sqlite -ssl -static -vorbis"
[ebuild  N    ] net-misc/dahdi-2.2.1.1

Secondly, if we define USE="dahdi", a circular dependency inevitably occurs:

# ACCEPT_KEYWORDS="~amd64" USE="dahdi" emerge -p dahdi

These are the packages that would be merged, in order:

Calculating dependencies... done!

[nomerge      ] net-misc/dahdi-2.2.1.1
[ebuild  N    ]  net-misc/asterisk-1.6.2.6  USE="caps dahdi -alsa -curl -debug -freetds -iconv -jabber -keepsrc -ldap -misdn -newt -nosamples -oss -postgres -radius -snmp -span -speex -sqlite -ssl -static -vorbis"
[ebuild  N    ]   net-misc/dahdi-tools-2.2.0-r1
[ebuild  N    ]    net-misc/dahdi-2.2.1.1

 * Error: circular dependencies:

('ebuild', '/', 'net-misc/dahdi-tools-2.2.0-r1', 'merge') depends on
  ('ebuild', '/', 'net-misc/dahdi-2.2.1.1', 'merge') (buildtime)
('ebuild', '/', 'net-misc/dahdi-2.2.1.1', 'merge') depends on
  ('ebuild', '/', 'net-misc/asterisk-1.6.2.6', 'merge') (runtime)
('ebuild', '/', 'net-misc/asterisk-1.6.2.6', 'merge') depends on
  ('ebuild', '/', 'net-misc/dahdi-tools-2.2.0-r1', 'merge') (buildtime)

Furthemore, the xpp_fxloader script in net-misc/dahdi-tools (for the Xorcom Astribank) expects to make use of fxload in order to load the firmware. Therefore, RDEPEND="sys-apps/fxload" should be asserted. For that matter, dahdi-tools is eligible for a version bump.
Comment 1 Tony Vroon (RETIRED) gentoo-dev 2010-04-14 11:36:26 UTC
+  14 Apr 2010; <chainsaw@gentoo.org> dahdi-2.2.1.1.ebuild:
+  Remove incorrect RDEPEND on Asterisk, initially noted by Oliver Jaksch.
+  Causes circular dependencies as pointed out by Kerin "kerframil" Miller in
+  bug #315201.