30 Commits

Author SHA1 Message Date
Andreas Müller 98caf54fa5 upower: fix location of udev-rules with sysvinit
UPower automatically detects location of udev-rules by asking udev's pkgconfig
variable 'udev_dir' and appending 'rules.d'. This does not work for non
systemd's udev:
| Files/directories were installed but not shipped in any package:
|  /usr/rules.d
|  /usr/rules.d/95-upower-hid.rules
|  /usr/rules.d/95-upower-wup.rules

To avoid, set udevrulesdir explicitly for non-systemd builds.

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-06 20:25:34 -04:00
Andreas Müller 8253fe2a9c upower: upgrade 0.99.13 -> 0.99.17 / build with mesom
Port to meson turned into total overhaul of recipe

Version 0.99.17
---------------
Released: 2022-03-09

Bug fixes:
- Fix FD handling issues that may cause lid to not be detected

Version 0.99.16
---------------
Released: 2022-02-23

Bug fixes:
- Silence unnecessary udev event warnings
- Increase test timeout (#171)
- Explicitly link with plist
- Fix UpClient reference leak
- Fix DisplayDevice state on battery hotplug
- Fix critical action to work after it was cancelled (#172)

Version 0.99.15
---------------
Released: 2022-02-09

Bug fixes:
- Various build fixes
- Update bluetooth device alias when it changes (#169)

No info for 0.99.14

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-04-06 20:25:34 -04:00
Khem Raj 14c7d8a0d7 recipes: Update LICENSE variable to use SPDX license identifiers
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-03-04 17:41:45 -08:00
Yi Zhao 3812ee8d0c upower: add UPSTREAM_CHECK_GITTAGREGEX
Add UPSTREAM_CHECK_GITTAGREGEX to check the correct latest version.

Before the patch:
$ devtool latest-version upower
INFO: Current version: 0.99.13
INFO: Latest version: 014
INFO: Latest version's commit: 8cbaa7f70b1bc8aa96f420f9061b20e5d8839ea7

After the patch:
$ devtool latest-version upower
INFO: Current version: 0.99.13
INFO: Latest version: 0.99.13
INFO: Latest version's commit: 0f6cc0a10be22d7ddd684e1cd851e4364a440494

Signed-off-by: Yi Zhao <yi.zhao@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2022-01-05 08:17:18 -08:00
Richard Purdie b402a3076f recipes: Update SRC_URI branch and protocols
This patch updates SRC_URIs using git to include branch=master if no branch is set
and also to use protocol=https for github urls as generated by the conversion script
in OE-Core.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:49 -07:00
Andreas Müller fc186a9001 upower: upgrade 0.99.11 -> 0.99.13
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2021-11-03 06:57:48 -07:00
Martin Jansa c61dc077bb Convert to new override syntax
This is the result of automated script (0.9.1) conversion:

oe-core/scripts/contrib/convert-overrides.py .

converting the metadata to use ":" as the override character instead of "_".

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2021-08-03 10:21:25 -07:00
Jacob Kroon e921a2f251 meta-oe: Don't inherit 'features_check' in recipes that don't utilize it
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2020-06-10 20:57:01 -07:00
Denys Dmytriyenko 4c00e5fed9 recipes: rename distro_features_check to features_check
Avoid warning due to the class rename in OE-Core.

Signed-off-by: Denys Dmytriyenko <denys@ti.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-11-21 17:51:37 -08:00
Oleksandr Kravchuk b779db68a6 upower: update to 0.99.11
Signed-off-by: Oleksandr Kravchuk <open.source@oleksandr-kravchuk.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-09-16 07:10:03 -07:00
Hongxu Jia 4e50aebeae upower: remove polkit dependency
Follow upstream upower:
https://gitlab.freedesktop.org/upower/upower/commit/9a2b2633095fb901fc1931ab0c600392d68bb3b4

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-06-25 14:21:48 -07:00
Mingli Yu 9262600a52 upower: add REQUIRED_DISTRO_FEATURES for polkit
After below commits to add polkit as a required
distro feature:
97a1a55 polkit: add polkit as a required distro feature
c049e02 polkit: inherit distro_features_check

Need to add REQUIRED_DISTRO_FEATURES for polkit to
fix below error for these packages which depend on
polkit:
$ bitbake upower
ERROR: Nothing PROVIDES 'polkit' (but /build/layers/meta-openembedded/meta-oe/recipes-support/upower/upower_0.99.7.bb DEPENDS on or otherwise requires it)

Signed-off-by: Mingli Yu <Mingli.Yu@windriver.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2019-02-22 18:14:52 -08:00
Andreas Müller a5718b3032 upower: avoid scary messages in journal/syslog
When inserting/removing USB device not handled by upower
(Mouse/Keyboard/USB-Sticks..) upower spams on later kernels:

| Sep 17 15:38:46 imx6qdl-variscite-som upowerd[553]: unhandled action 'bind' on /sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2
| Sep 17 15:38:46 imx6qdl-variscite-som upowerd[553]: unhandled action 'bind' on /sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2:1.0
| Sep 17 15:38:46 imx6qdl-variscite-som upowerd[553]: unhandled action 'bind' on /sys/devices/soc0/soc/2100000.aips-bus/2184200.usb/ci_hdrc.1/usb1/1-1/1-1.2/1-1.2:1.0/0003:41>

Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Khem Raj <raj.khem@gmail.com>
2018-09-24 11:49:45 -07:00
Andreas Müller 3c468473de upower: update 0.99.5 -> 0.99.7
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
2018-04-08 17:00:06 -07:00
Andreas Müller 04a1ba6546 upower: update 0.99.4 -> 0.99.5
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-08-28 11:04:11 +02:00
Peter Kjellerstedt 0c31f55bcf Make use of the new bb.utils.filter() function
Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2017-03-07 13:30:26 +01:00
Andreas Müller 4618962101 upower: don't start on boot by default - dbus does that on demand
Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-26 08:29:11 +02:00
Jackie Huang 0a5c689b68 upower: add systemd support
* inherit systemd
* Add PACKAGECONFIG for systemd and control
  it based on DISTRO_FEATURES

Signed-off-by: Jackie Huang <jackie.huang@windriver.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-09-11 09:11:22 +02:00
Martin Jansa dc48e768f5 meta-oe: remove trailing spaces
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-22 15:56:29 +02:00
Derek Straka e22b9e01e0 upower: update to version 0.99.4
Signed-off-by: Derek Straka <derek@asterius.io>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-08-15 12:31:59 +02:00
Armin Kuster 3384b4133c upower: fix WARNING
WARNING: upower-0.9.14-r2 do_configure: Missing DEPENDS on intltool-native

Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2016-05-10 20:19:29 +02:00
Alexander Kanavin a037e09155 upower: fix gobject introspection
Signed-off-by: Alexander Kanavin <alexander.kanavin@linux.intel.com>
2016-03-14 12:15:34 +01:00
Andreas Müller 5e4894fd03 upower replace udev by libgudev in DEPENDS
fixes:
| configure: error: Package requirements (gudev-1.0 >= 147) were not met:
|
| No package 'gudev-1.0' found

Signed-off-by: Andreas Müller <schnitzeltony@googlemail.com>
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2015-09-23 15:39:42 +02:00
Martin Jansa cc037f0b1b upower: Add PACKAGECONFIG for idevice
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2013-09-17 19:14:31 +02:00
Martin Jansa a45830a39b recipes: Unify indentation
* This change is only aesthetic (unlike indentation in Python
  tasks).
* Some recipes were using tabs.
* Some were using 8 spaces.
* Some were using mix or different number of spaces.
* Make them consistently use 4 spaces everywhere.
* Yocto styleguide advises to use tabs (but the only reason to keep
  tabs is the need to update a lot of recipes). Lately this advice
  was also merged into the styleguide on the OE wiki.
* Using 4 spaces in both types of tasks is better because it's less
  error prone when someone is not sure if e.g.
  do_generate_toolchain_file() is Python or shell task and also allows
  to highlight every tab used in .bb, .inc, .bbappend, .bbclass as
  potentially bad (shouldn't be used for indenting of multiline
  variable assignments and cannot be used for Python tasks).
* Don't indent closing quote on multiline variables
  we're quite inconsistent wheater it's first character on line
  under opening quote or under first non-whitespace character in
  previous line.

Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
Acked-by: Koen Kooi <koen@dominion.thruhere.net>
2013-04-15 16:23:17 +02:00
Martin Jansa 256f95eec4 upower: use gobject-introspection-stub instead of -native which was removed in oe-core
Signed-off-by: Martin Jansa <Martin.Jansa@gmail.com>
2012-07-28 14:31:57 +02:00
Peter Tworek 240d7dd490 Add missing gobject-introspection-native dependency for upower.
Signed-off-by: Peter Tworek <tworaz666@gmail.com>
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-23 15:53:12 +01:00
Koen Kooi f5a589a8f0 upower: add pm-utils to RRECOMMENDS
This fixes:

dbus-daemon[207]: (upowerd:401): UPower-Linux-WARNING **: failed to run script: Failed to execute child process "/usr/bin/pm-is-supported" (No such file or directory)
dbus-daemon[207]: (upowerd:401): UPower-Linux-WARNING **: failed to run script: Failed to execute child process "/usr/bin/pm-is-supported" (No such file or directory)
dbus-daemon[207]: (upowerd:401): UPower-WARNING **: failed to run script: Failed to execute child process "/usr/sbin/pm-powersave" (No such file or directory)

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2012-01-12 14:26:07 +01:00
Koen Kooi 5352a4beb9 upower: update to 0.9.14
This fixes building against a recent glib-2.0

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-10-19 12:01:59 +02:00
Koen Kooi 8000c9ae5b upower: initial commit of 0.9.11
Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
2011-06-09 18:14:13 +02:00