Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 417655 - net-misc/wicd may be pulling in unnecessary dependencies
Summary: net-misc/wicd may be pulling in unnecessary dependencies
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Thomas Kahle (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-26 15:35 UTC by William Hubbs
Modified: 2012-06-01 16:11 UTC (History)
2 users (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 William Hubbs gentoo-dev 2012-05-26 15:35:26 UTC
All,

given my use flags settings, I was surprised to find how many
dependencies wicd wants to pull in, especially since it describes itself
as lightweight. Is there a reason for all of these dependencies?


$ emerge --info
Portage 2.2.0_alpha108 (default/linux/x86/10.0, gcc-4.5.3, glibc-2.14.1-r3, 3.2.12-gentoo i686)
=================================================================
System uname: Linux-3.2.12-gentoo-i686-Intel-R-_Celeron-R-_D_CPU_3.20GHz-with-gentoo-2.1
Timestamp of tree: Sat, 26 May 2012 08:00:01 +0000
app-shells/bash:          4.2_p20
dev-lang/python:          2.7.3-r1, 3.2.3
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.1-r1
sys-apps/openrc:          9999::local
sys-apps/sandbox:         2.5
sys-devel/autoconf:       2.68
sys-devel/automake:       1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r2
sys-devel/gcc-config:     1.5-r2
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 3.1 (virtual/os-headers)
sys-libs/glibc:           2.14.1-r3
Repositories: gentoo local
Installed sets: 
ACCEPT_KEYWORDS="x86"
ACCEPT_LICENSE="* -@EULA"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--nospinner"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles news parallel-fetch parse-eapi-ebuild-head preserve-libs protect-owned sandbox sfperms sign strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync"
FFLAGS=""
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="acl alsa berkdb bzip2 cli cracklib crypt cups curl cxx dri fortran gdbm gpg gpm iconv imap ipv6 javascript modules mudflap ncurses nls nptl openmp pam pcre portaudio pppd readline sep-usr session ssl tcpd unicode usb x86 xorg zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan sheets stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" PHP_TARGETS="php5-3" PYTHON_TARGETS="python3_2 python2_7" RUBY_TARGETS="ruby18 ruby19" USERLAND="GNU" VIDEO_CARDS="fbdev glint intel mach64 mga neomagic nouveau nv r128 radeon savage sis tdfx trident vesa via vmware dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LANG, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, USE_PYTHON
Comment 1 William Hubbs gentoo-dev 2012-05-26 15:36:28 UTC
emerge -pv wicd


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

Calculating dependencies  ... done!
[ebuild  N     ] dev-libs/libnl-1.1-r3  USE="-doc" 283 kB
[ebuild  N     ] sys-power/pm-quirks-20100619  10 kB
[ebuild  N     ] media-libs/freetype-2.4.9-r1  USE="bzip2 -X -auto-hinter -bindist -debug -doc -fontforge -static-libs -utils" 1,470 kB
[ebuild  N     ] net-wireless/wireless-tools-29  USE="nls -multicall" 288 kB
[ebuild  N     ] dev-python/urwid-1.0.1  USE="-examples" 278 kB
[ebuild  N     ] app-laptop/radeontool-1.5-r3  21 kB
[ebuild  N     ] media-libs/libpng-1.5.10  USE="-apng (-neon) -static-libs" 687 kB
[ebuild  N     ] dev-python/pytz-2011e  175 kB
[ebuild  N     ] dev-python/Babel-0.9.6  1,779 kB
[ebuild  N     ] sys-power/pm-utils-1.4.1-r2  USE="alsa -debug -ntp" VIDEO_CARDS="intel radeon" 204 kB
[ebuild  N     ] net-wireless/wpa_supplicant-0.7.3-r5  USE="readline ssl -dbus -debug -eap-sim -fasteap -gnutls -madwifi (-ps3) -qt4 (-selinux) -wimax -wps" 1,600 kB
[ebuild  N     ] dev-libs/dbus-glib-0.98  USE="-debug -doc -static-libs -test" 707 kB
[ebuild  N     ] x11-misc/util-macros-1.17  76 kB
[ebuild  N     ] media-fonts/font-util-1.2.0  132 kB
[ebuild  N     ] dev-python/dbus-python-1.0.0  USE="-doc -examples -test" 570 kB
[ebuild  N     ] x11-libs/pixman-0.24.0  USE="(-altivec) (-iwmmxt) -mmx (-neon) -sse2 -static-libs" 457 kB
[ebuild  N     ] media-libs/fontconfig-2.8.0-r1  USE="-doc" 1,513 kB
[ebuild  N     ] app-admin/eselect-fontconfig-1.1  2 kB
[ebuild  N     ] media-fonts/dejavu-2.33  USE="-X -fontforge" 4,767 kB
[ebuild  N     ] virtual/ttf-fonts-1  0 kB
[ebuild  N     ] x11-libs/cairo-1.10.2-r2  USE="glib svg -X (-aqua) -debug -directfb -doc (-drm) (-gallium) -opengl (-openvg) (-qt4) -static-libs -xcb" 23,007 kB
[ebuild  N     ] dev-python/pycairo-1.10.0-r2  USE="svg -doc -examples -test" 634 kB
[ebuild  N     ] dev-libs/gobject-introspection-1.30.0-r2  USE="-doc -test" 1,045 kB
[ebuild  N     ] dev-python/pygobject-3.0.4  USE="cairo threads -examples -test" 535 kB
[ebuild  N     ] dev-python/pygobject-2.28.6-r51  USE="introspection -doc -examples -libffi -test" 730 kB
[ebuild  N    ~] net-misc/wicd-1.7.2.4-r1  USE="ncurses nls pm-utils -X -ambiance -gtk (-ioctl) -libnotify -mac4lin" 430 kB

Total: 26 packages (26 new), Size of downloads: 41,388 kB
Comment 2 Derk W te Bokkel 2012-05-27 02:26:26 UTC
well I'm not sure but I do not have gobject-introspection pulled in on my laptop

USE="-introspection"

does the radeon video use flag drag some of this in? 

I've got this set but no radeon card (intel only)

This what I have for  emerge -pv wicd

[ebuild   R    ] net-misc/wicd-1.7.2.4-r1  USE="X gtk libnotify ncurses nls pm-utils -ambiance (-ioctl) -mac4lin"

would ny emerge --info help puzzle this out? 

but I run X so I expect to see some of those items in your list anyways ..

but at least it does not pull in half of gnome or kde ..

I suspect that is what they mean by light .. 

I've used wpa-supplicant in the past as well  .. but the configuration was a bit tricky at times .. so once I discovered wicd .. I went with it instead only quirk is it only works well when it controls dhcpcd.
Comment 3 William Hubbs gentoo-dev 2012-05-27 03:29:08 UTC
Putting -introspection in my use flags cuts the dependencies in half,
which means that some packages are forcing this on, because I did not
have it turned on to begin with.

What about the rest of these? Are they all required to successfully run
wicd?

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

Calculating dependencies  ... done!
[ebuild  N     ] dev-libs/libnl-1.1-r3  USE="-doc" 283 kB
[ebuild  N     ] sys-power/pm-quirks-20100619  10 kB
[ebuild  N     ] net-wireless/wireless-tools-29  USE="nls -multicall" 288 kB
[ebuild  N     ] dev-python/urwid-1.0.1  USE="-examples" 278 kB
[ebuild  N     ] app-laptop/radeontool-1.5-r3  21 kB
[ebuild  N     ] dev-python/pytz-2011e  175 kB
[ebuild  N     ] dev-python/Babel-0.9.6  1,779 kB
[ebuild  N     ] dev-python/pygobject-2.28.6-r51  USE="-doc -examples -introspection -libffi -test" 730 kB
[ebuild  N     ] sys-power/pm-utils-1.4.1-r2  USE="alsa -debug -ntp" VIDEO_CARDS="intel radeon" 204 kB
[ebuild  N     ] net-wireless/wpa_supplicant-0.7.3-r5  USE="readline ssl -dbus -debug -eap-sim -fasteap -gnutls -madwifi (-ps3) -qt4 (-selinux) -wimax -wps" 1,600 kB
[ebuild  N     ] dev-libs/dbus-glib-0.98  USE="-debug -doc -static-libs -test" 707 kB
[ebuild  N     ] dev-python/dbus-python-1.0.0  USE="-doc -examples -test" 570 kB
[ebuild  N    ~] net-misc/wicd-1.7.2.4-r1  USE="ncurses nls pm-utils -X -ambiance -gtk (-ioctl) -libnotify -mac4lin" 430 kB

Total: 13 packages (13 new), Size of downloads: 7,070 kB
Comment 4 Derk W te Bokkel 2012-05-27 11:27:20 UTC
well wicd uses wpa_supplicant to do the actual " work ", wireless-utils gets pulled in by wicd as well ..  

note that wicd is mostly python script  .. so it uses a few python tools/libs/hooks ..

some ..  get dragged in by the pm-utils flag  for restart/reconnect behaviour on lidclose/suspend/hibernate .. some dbus stuff ..

another by the libnotify flag if active

the radeon flag also pulls in radeontools w/ pm-utils
Comment 5 Thomas Kahle (RETIRED) gentoo-dev 2012-06-01 16:11:06 UTC
The depend variables of the ebuild are actually pretty lightweight.  

Let's see what we have 

-) dbus-python, needed
-) If you want X then you need a password-dialog like ktsuss or alternatives.
-) a dhcp-client is needed
-) wireless-tools and wpa-supplicant are needed (wicd is just a wrapper around those...)
-) net-tools or eth-tool (for managing ethernet)
-) pygobject or gtk, upstream uses them. 
-) conditional on ioctl -> iwscan 
-) conditional on notification support -> libnotify
-) conditional on ncurses support -> ncurses libraries
-) conditional on pm-utils -> pm-utils

Then for USE="nls" there is a build-only dep on dev-python/Babel.

That's it.  As you can see wicd itself is pretty modest.

Cheers,
Thomas