From 039cb45db3d707d715a1febb5395dd845d7b761c Mon Sep 17 00:00:00 2001 From: Marc Ferland Date: Tue, 14 Oct 2025 13:43:37 -0400 Subject: upower: upgrade 1.90.6 -> 1.90.10 Update to latest release and add support for zsh completions. Signed-off-by: Marc Ferland Signed-off-by: Khem Raj --- meta-oe/recipes-support/upower/upower_1.90.10.bb | 55 ++++++++++++++++++++++++ meta-oe/recipes-support/upower/upower_1.90.6.bb | 53 ----------------------- 2 files changed, 55 insertions(+), 53 deletions(-) create mode 100644 meta-oe/recipes-support/upower/upower_1.90.10.bb delete mode 100644 meta-oe/recipes-support/upower/upower_1.90.6.bb (limited to 'meta-oe') diff --git a/meta-oe/recipes-support/upower/upower_1.90.10.bb b/meta-oe/recipes-support/upower/upower_1.90.10.bb new file mode 100644 index 0000000000..a7effcd7de --- /dev/null +++ b/meta-oe/recipes-support/upower/upower_1.90.10.bb @@ -0,0 +1,55 @@ +SUMMARY = "UPower is an abstraction for enumerating power devices" +DESCRIPTION = "UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics." +LICENSE = "GPL-2.0-or-later" +LIC_FILES_CHKSUM = "file://COPYING;md5=0de8fbf1d97a140d1d93b9f14dcfbf08" + +DEPENDS = " \ + intltool-native \ + libusb1 \ + libgudev \ + glib-2.0 \ + dbus-glib \ +" + +SRC_URI = "https://gitlab.freedesktop.org/${BPN}/${BPN}/-/archive/v${PV}/${BPN}-v${PV}.tar.bz2" +SRC_URI[sha256sum] = "c1baf418b685ffe4150c8a75c04da0cec70323fe094b5b257b287eea564d3f56" +S = "${UNPACKDIR}/${BPN}-v${PV}" + +UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/${BPN}/${BPN}/-/tags" +UPSTREAM_CHECK_REGEX = "v(?P\d+(\.\d+)+)" + +GIR_MESON_ENABLE_FLAG = "enabled" +GIR_MESON_DISABLE_FLAG = "disabled" +GTKDOC_MESON_OPTION = "gtk-doc" + +inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd + +PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)}" +PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist" +PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd" +PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit" + +EXTRA_OEMESON = " \ + -Dos_backend=linux \ + -Dman=false \ +" + +SYSTEMD_SERVICE:${PN} = "upower.service" +# don't start on boot by default - dbus does that on demand +SYSTEMD_AUTO_ENABLE = "disable" + +RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_dbus}" +RRECOMMENDS:${PN} += "pm-utils" +PACKAGES += "${PN}-zsh-completion" +FILES:${PN} += " \ + ${datadir}/dbus-1/ \ + ${datadir}/polkit-1/ \ + ${base_libdir}/udev/* \ +" +FILES:${PN}-zsh-completion = "${datadir}/zsh" + +do_install:append() { + # remove integration tests scripts + rm -rf ${D}${datadir}/installed-tests + rm -rf ${D}${libexecdir}/upower +} diff --git a/meta-oe/recipes-support/upower/upower_1.90.6.bb b/meta-oe/recipes-support/upower/upower_1.90.6.bb deleted file mode 100644 index d2f58d5b22..0000000000 --- a/meta-oe/recipes-support/upower/upower_1.90.6.bb +++ /dev/null @@ -1,53 +0,0 @@ -SUMMARY = "UPower is an abstraction for enumerating power devices" -DESCRIPTION = "UPower is an abstraction for enumerating power devices, listening to device events and querying history and statistics." -LICENSE = "GPL-2.0-or-later" -LIC_FILES_CHKSUM = "file://COPYING;md5=0de8fbf1d97a140d1d93b9f14dcfbf08" - -DEPENDS = " \ - intltool-native \ - libusb1 \ - libgudev \ - glib-2.0 \ - dbus-glib \ -" - -SRC_URI = "https://gitlab.freedesktop.org/${BPN}/${BPN}/-/archive/v${PV}/${BPN}-v${PV}.tar.bz2" -SRC_URI[sha256sum] = "aed4e42a21307512ad236ad58d7ee4e0196670c8524a168a0edccdc32964ea0c" -S = "${UNPACKDIR}/${BPN}-v${PV}" - -UPSTREAM_CHECK_URI = "https://gitlab.freedesktop.org/${BPN}/${BPN}/-/tags" -UPSTREAM_CHECK_REGEX = "v(?P\d+(\.\d+)+)" - -GIR_MESON_ENABLE_FLAG = "enabled" -GIR_MESON_DISABLE_FLAG = "disabled" -GTKDOC_MESON_OPTION = "gtk-doc" - -inherit meson pkgconfig gtk-doc gettext gobject-introspection systemd - -PACKAGECONFIG ??= "${@bb.utils.filter('DISTRO_FEATURES', 'systemd polkit', d)}" -PACKAGECONFIG[idevice] = "-Didevice=enabled,-Didevice=disabled,libimobiledevice libplist" -PACKAGECONFIG[systemd] = "-Dsystemdsystemunitdir=${systemd_system_unitdir},-Dsystemdsystemunitdir=no -Dudevrulesdir=${base_libdir}/udev/rules.d,systemd" -PACKAGECONFIG[polkit] = "-Dpolkit=enabled,-Dpolkit=disabled,polkit" - -EXTRA_OEMESON = " \ - -Dos_backend=linux \ - -Dman=false \ -" - -SYSTEMD_SERVICE:${PN} = "upower.service" -# don't start on boot by default - dbus does that on demand -SYSTEMD_AUTO_ENABLE = "disable" - -RDEPENDS:${PN} += "${VIRTUAL-RUNTIME_dbus}" -RRECOMMENDS:${PN} += "pm-utils" -FILES:${PN} += " \ - ${datadir}/dbus-1/ \ - ${datadir}/polkit-1/ \ - ${base_libdir}/udev/* \ -" - -do_install:append() { - # remove integration tests scripts - rm -rf ${D}${datadir}/installed-tests - rm -rf ${D}${libexecdir}/upower -} -- cgit v1.2.3-54-g00ecf