Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 329167 - dev-db/mongodb missing dependency on net-libs/libpcap
Summary: dev-db/mongodb missing dependency on net-libs/libpcap
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Lance Albertson (RETIRED)
Depends on:
Reported: 2010-07-20 21:37 UTC by Sheldon Hearn
Modified: 2011-04-13 15:04 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Note You need to log in before you can comment on or make changes to this bug.
Description Sheldon Hearn 2010-07-20 21:37:17 UTC
The mongosniff utility in dev-db/mongodb-1.4.4 links against libpcap, but the ebuild doesn't declare the dependency.

It is thus possible to break mongosniff by uninstalling libpcap, after using "emerge --depclean net-libs/libpcap" to confirm that nothing depends on it.

Reproducible: Always

Steps to Reproduce:
1. emerge --oneshot net-libs/libpcap
2. emerge mongodb
3. ldd $(which mongosniff) | grep libpcap

Actual Results:  
The ldd output for mongosniff indicates a dependency on libpcap.

Expected Results:  
No dependency on libcap.

Either mongodb needs a pcap USE flag that controls whether mongosniff is built, or the package needs an unconditional dependency on net-libs/libpcap.
Comment 1 Ultrabug gentoo-dev 2011-04-13 15:04:51 UTC
Hi Sheldon and thanks for reporting this issue.

You're right indeed and we preferred to add the dependency unconditionally since mongosniff is quite useful. You'll find this fixed in the new versions in tree.

+*mongodb-1.8.1 (13 Apr 2011)
+*mongodb-1.6.5 (13 Apr 2011)
+  13 Apr 2011; Ultrabug <> -mongodb-1.2.4.ebuild,
+  -files/mongodb-1.2-modify-post-strip.patch,
+  -files/mongodb-1.2-modify-testing.patch, -mongodb-1.4.4.ebuild,
+  -files/mongodb-1.4-modify-post-strip.patch,
+  -files/mongodb-1.4-modify-testing.patch, -mongodb-1.5.5.ebuild,
+  -mongodb-1.6.0.ebuild, -files/mongodb-1.6.0-fix-scons.patch,
+  +mongodb-1.6.5.ebuild, +files/mongodb-1.6-fix-scons.patch,
+  +mongodb-1.8.1.ebuild, +files/mongodb-1.8-fix-scons.patch,
+  +files/mongos.confd, +files/mongos.initd, files/mongodb.confd,
+  files/mongodb.initd:
+  Mongodb rework/bump. Fix bugs #329167, #334081, #337085, #337593, #337973,
+  #338039, #340032, #356731. Many thanks to Johan Bergström for his help and
+  testing. Drop old versions.