The UPower package provides an interface for enumerating power devices, listening to device events and querying history and statistics. Any application or service on the system can access the org.freedesktop.UPower service via the system message bus.
This package is known to build and work properly using an LFS-11.1 platform.
Download (HTTP): https://gitlab.freedesktop.org/upower/upower/uploads/177df5b9f9b76f25a2ad9da41aa0c1fa/upower-0.99.13.tar.xz
Download MD5 sum: 0c945817c12a7967d2c5edf7138fcf80
Download size: 438 KB
Estimated disk space required: 15 MB (with tests)
Estimated build time: 0.1 SBU (using parallelism=4, add 0.8 SBU for tests)
libgudev-237, libusb-1.0.25, and Polkit-0.120
GTK-Doc-1.33.2, PyGObject-3.42.0, dbusmock-0.25.0, umockdev-0.17.6 (for part of the test suite), and libimobiledevice
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/upower
Enable the following options in the kernel configuration and recompile the kernel if necessary:
General Setup --->
[*] Namespaces support ---> [CONFIG_NAMESPACES]
[*] User namespace [CONFIG_USER_NS]
Install UPower by running the following commands:
./configure --prefix=/usr \ --sysconfdir=/etc \ --localstatedir=/var \ --enable-deprecated \ --disable-static && make
To test the results, issue: make check. Some checks may not pass due to missing files. Test suite should be run from a local GUI session started with dbus-launch.
Now, as the root
user:
make install
--enable-deprecated
: This
switch enables deprecated functionality which is still needed by
some applications.
--disable-static
: This
switch prevents installation of static versions of the libraries.
--enable-gtk-doc
: Use this parameter if
GTK-Doc is installed and you wish
to rebuild and install the API documentation.
Last updated on