libmanette: upgrade 0.2.9 -> 0.2.13
PATCH 1/2 libmanette: upgrade 0.2.9 -> 0.2.13
Changelog:
0.2.13:
- Update controller mappings
0.2.12:
- Add a deadzone for Steam Deck analog sticks
- Fix build with older gobject-introspection
0.2.11:
- Port documentation to gi-docgen
- Add support for Steam Deck gamepad
- Add ManetteDeviceType and manette_device_get_device_type()
- Add manette_device_supports_mapping()
- Deprecate LIBMANETTE_* version check symbols, add MANETTE_* instead
- Add runtime version check functions
- Make hat to buttons mapping always emit button release (fixes d-pad getting stuck when quickly flipping right->left etc)
- Fix paddle keycodes
- Fix DualSense motion sensor and touchpad being recognized as gamepads
- Fix half-range axis mappings
- Build
- Depend on hidapi-hidraw
- Specify --doc-format for GIR data
- Fix build warnings
---
.../libmanette/{libmanette_0.2.9.bb => libmanette_0.2.13.bb} | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
rename meta-oe/recipes-support/libmanette/{libmanette_0.2.9.bb => libmanette_0.2.13.bb} (82%)meta-oe/recipes-support/libmanette/libmanette_0.2.13.bb renamed from meta-oe/recipes-support/libmanette/libmanette_0.2.9.bb +2 -2
@@ -5,10 +5,10 @@ HOMEPAGE = "https://gnome.pages.gitlab.gnome.org/libmanette/" LICENSE = "LGPL-2.1-only" LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" -DEPENDS = "libevdev libgudev" +DEPENDS = "libevdev libgudev hidapi" SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz" -SRC_URI[sha256sum] = "29366be5452f60a74c65fc64ffe2d74eddd4e6e6824c2cefa567a43bd92b688f" +SRC_URI[sha256sum] = "287cc2fde0de092919366af757d85e7b3a0248eb1b395344726e97955a77d8ae" inherit meson pkgconfig gobject-introspection ptest vala
PATCH 2/2 libmanette: fix ptests
The original content of the ptest package, manette-test, is a helper demo application (like evtest), and not a test suite. Also, the recipe did not provide a run-ptest script.
Fix it by installing the actual tests, and adding a run-ptest script.
Note that the test folder structure looks like a gnome desktop test suite (and the application is under the gnome umbrella), however the project doesn't provide all necessary scaffolding for gnome-desktop-test to work, so the tests are executed directly from the run-ptest script.
--- .../recipes-support/libmanette/libmanette/run-ptest | 10 ++++++++++ .../recipes-support/libmanette/libmanette_0.2.13.bb | 8 ++++++-- 2 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 meta-oe/recipes-support/libmanette/libmanette/run-ptest
meta-oe/recipes-support/libmanette/libmanette/run-ptest new file +10 -0
@@ -0,0 +1,10 @@ +#!/bin/sh +if [ -d /usr/libexec/installed-tests/manette-0.2 ]; then + cd /usr/libexec/installed-tests/manette-0.2 + for t in ./*; do + $t && echo PASS: $t || echo FAIL: $t + done + cd - +else + echo FAIL: no tests found +fi
meta-oe/recipes-support/libmanette/libmanette_0.2.13.bb +6 -2
@@ -7,10 +7,14 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=4fbd65380cdd255951079008b364516c" DEPENDS = "libevdev libgudev hidapi" -SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz" +SRC_URI = "https://download.gnome.org/sources/libmanette/0.2/libmanette-${PV}.tar.xz \ + file://run-ptest" SRC_URI[sha256sum] = "287cc2fde0de092919366af757d85e7b3a0248eb1b395344726e97955a77d8ae" inherit meson pkgconfig gobject-introspection ptest vala -FILES:${PN}-ptest =+ "${bindir}/manette-test" FILES:${PN}-dev =+ "${libdir}/girepository-1.0" +FILES:${PN}-ptest += "${libexecdir}/installed-tests" + +PACKAGECONFIG ??= "${@bb.utils.contains('PTEST_ENABLED', '1', 'test', '', d)}" +PACKAGECONFIG[test] = "-Dbuild-tests=true -Dinstall-tests=true,-Dbuild-tests=false -Dinstall-tests=false"