On Thu, 04 Sep 2008 at 22:09:46 +0100, Simon Kelley wrote: > Fanis wrote: > >The dnsmasq-base package requires dbus which itself requires many x11 > >libraries thus making dnsmasq unsuitable for small (embedded) systems. [...] > Why does dbus depend on X11 libraries? That would appear to be the > main problem here.
It doesn't. If you're installing a small (embedded) system, tell apt not to install Recommends automatically, and you won't get X11; libdbus-1-3 Recommends dbus, dbus Recommends dbus-x11, and dbus-x11 is the package with X11 dependencies. You can do this by putting this in a file in /etc/apt/apt.conf.d, for instance: APT { Install-Recommends "false"; }; In unstable, dbus' dependency on dbus-x11 has been downgraded further, from Recommends to Suggests, so even if apt is installing Recommends automatically, you won't usually get dbus-x11 (X apps that use the D-Bus session bus are meant to depend on dbus-x11 themselves). In a fairly minimal lenny chroot with Recommends turned off, I get: reptile:/home/smcv# apt-get install dnsmasq ... The following extra packages will be installed: adduser dnsmasq-base libdbus-1-3 netbase ... Need to get 614kB of archives. After this operation, 2175kB of additional disk space will be used. compared with: reptile:/home/smcv# apt-get install dhcp3-server ... The following extra packages will be installed: dhcp3-common ... Need to get 623kB of archives. After this operation, 1348kB of additional disk space will be used. If we assume that the system already has adduser and netbase (which seems more realistic for a real server, even an embedded one) then the requirements for dnsmasq drop to: reptile:/home/smcv# apt-get install dnsmasq ... The following extra packages will be installed: dnsmasq-base libdbus-1-3 ... Need to get 411kB of archives. After this operation, 1110kB of additional disk space will be used. So, I think this can be closed (but I'll leave that to the maintainer). Regards, smcv
signature.asc
Description: Digital signature