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.3 platform.
Download (HTTP): https://gitlab.freedesktop.org/upower/upower/-/archive/v1.90.0/upower-v1.90.0.tar.bz2
Download MD5 sum: 4fba71838a9ba0db6f140418eddbe2b7
Download size: 128 KB
Estimated disk space required: 4.9 MB (add 1.3 MB for tests)
Estimated build time: less than 0.1 SBU (using parallelism=4, add 0.6 SBU for tests)
libgudev-237, libusb-1.0.26, and Polkit-122
GTK-Doc-1.33.2, libxslt-1.1.37, docbook-xsl-nons-1.79.2, PyGObject-3.42.2, dbusmock-0.28.7, umockdev-0.17.16 (for part of the test suite), and libimobiledevice
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/upower
First, remove an unneeded dependency from a test:
sed '/parse_version/d' -i src/linux/integration-test.py
Install UPower by running the following commands:
mkdir build && cd build && meson --prefix=/usr \ --buildtype=release \ -Dgtk-doc=false \ -Dman=false \ -Dsystemdsystemunitdir=no \ -Dudevrulesdir=/usr/lib/udev/rules.d \ .. && ninja
To test the results, issue: LC_ALL=C 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
-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 libxslt-1.1.37 and
docbook-xsl-nons-1.79.2 installed and wish to build the manual
pages.
-Dsystemdsystemunitdir=no
: Removes
the dependency on systemd.
-Dudevrulesdir=/usr/lib/udev/rules.d
: Tells
the build system where to install udev
rules because the information is missing in
/usr/lib/pkgconfig/libudev.pc