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.
Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.
Download (HTTP): https://gitlab.freedesktop.org/upower/upower/-/archive/v0.99.17/upower-v0.99.17.tar.bz2
Download MD5 sum: 74b0e4ace3f3f72321d3651e12815c41
Download size: 136 KB
Estimated disk space required: 5.0 MB (add 0.4 MB for tests)
Estimated build time: less than 0.1 SBU (using parallelism=4, add 0.4 SBU for tests)
libgudev-237, libusb-1.0.26, and Polkit-0.120
GTK-Doc-1.33.2, PyGObject-3.42.1, dbusmock-0.27.5, umockdev-0.17.10 (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:
sed '/subdir.*doc/d' -i meson.build && mkdir build && cd build && meson --prefix=/usr \ --buildtype=release \ -Dgtk-doc=false \ -Dman=false \ .. && ninja
To test the results, issue: ninja test. 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:
ninja install
sed 'subdir.*doc/d'
...: Even when passing -Dgtk-doc=false
and -Dman=false
, the build still requires
GTK-Doc. This command allows
building without it installed. Remove this switch if you have
GTK-Doc installed and you wish to
build the documentation (you will also need to remove the next two
parameters).
-Dgtk-doc=false
: Prevents
building the documentation. Remove this if you have GTK-Doc installed and wish to build the
documentation.
-Dman=false
: Prevents
building the manual pages. Remove this if you have GTK-Doc installed and wish to build the manual
pages.