[Pkg-utopia-maintainers] Bug#619774: package upower has a missing dependency to pm-utils
Martin Monperrus
martin.monperrus at gmail.com
Sat Mar 26 21:47:42 UTC 2011
Package: upower
Version: 0.9.8-2
Severity: normal
upower internally uses pmutils' utilities (e.g. pm-suspend and pm-is-
supported). They are hardcoded in ./src/linux/up-backend.c (see below).
Consequently, if pm-utils is not installed, upower works incorrectly and gnome-
power-manager as well. It may be better to change the dependency to pm-utils to
mandatory ("depends" and not "recommends").
Best regards,
--Martin
grep -r pm- upower
../src/up-qos.c: /* write new values to pm-qos */
../src/up-qos.c: g_warning ("cannot write to pm-qos as file not open");
../src/linux/up-backend.c:#define UP_BACKEND_SUSPEND_COMMAND
"/usr/sbin/pm-suspend"
../src/linux/up-backend.c:#define UP_BACKEND_HIBERNATE_COMMAND
"/usr/sbin/pm-hibernate"
../src/linux/up-backend.c:#define UP_BACKEND_POWERSAVE_TRUE_COMMAND
"/usr/sbin/pm-powersave true"
../src/linux/up-backend.c:#define UP_BACKEND_POWERSAVE_FALSE_COMMAND
"/usr/sbin/pm-powersave false"
../src/linux/up-backend.c: * use pm-is-supported to test for supported sleep
states
../src/linux/up-backend.c: /* run script from pm-utils */
../src/linux/up-backend.c: command = g_strdup_printf ("/usr/bin/pm-is-
supported --%s", state);
../NEWS: - Use pm-is-supported to test if various sleep modes are supported
(Victor Lowther)
../NEWS: - Interface with pm-powersave as external vendors are using this
(Richard Hughes)
../NEWS: - Fix two issues with the pm-powersave code (Roland Dreier)
../NEWS: - Hardcode pm-powersave like we do pm-suspend and pm-hibernate (Richard
Hughes)
-- System Information:
Debian Release: wheezy/sid
APT prefers testing
APT policy: (990, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.32-5-686-bigmem (SMP w/2 CPU cores)
Locale: LANG=en_US.ISO-8859-1, LC_CTYPE=en_US.ISO-8859-1 (charmap=ISO-8859-1)
Shell: /bin/sh linked to /bin/bash
Versions of packages upower depends on:
ii dbus 1.4.6-1 simple interprocess messaging syst
ii libc6 2.11.2-11 Embedded GNU C Library: Shared lib
ii libdbus-1-3 1.4.6-1 simple interprocess messaging syst
ii libdbus-glib-1-2 0.88-2.1 simple interprocess messaging syst
ii libglib2.0-0 2.28.1-1+b1 The GLib library of C routines
ii libgudev-1.0-0 166-1 GObject-based wrapper library for
ii libimobiledevice1 1.0.4-2 Library for communicating with the
ii libplist1 1.3-2 Library for handling Apple binary
ii libpolkit-gobject-1-0 0.99-3 PolicyKit Authorization API
ii libupower-glib1 0.9.8-2 abstraction for power management -
ii libusb-1.0-0 2:1.0.8-2 userspace USB programming library
ii udev 166-1 /dev/ and hotplug management daemo
Versions of packages upower recommends:
ii pm-utils 1.4.1-6 utilities and scripts for power ma
ii policykit-1 0.99-3 framework for managing administrat
upower suggests no packages.
More information about the Pkg-utopia-maintainers
mailing list