libgpiod: update to v2.3
PATCH 1/1 libgpiod: update to v2.3
Starting with this release, libgpiod now uses meson so the updates to the recipe are quite extensive. There's a new shared library:
libgpiotools, that exports symbols previously only accessible to gpio-tools that allow users to build their own high-level programs while reusing the code doing GPIO line & chip lookup. While at it: move libgpiodbus into its own package as well.
Full changelog:
New features:
- replace autotools with meson & ninja as the build system
- provide libgpiotools: a new shared library exposing a public API for line name lookup and other high-level helpers previously only available internally to gpio-tools
- add initial-state option to gpiomon to display line states before waiting for events
- provide comprehensive sphinx-based documentation for all components:
core C API, C++ bindings, Python bindings, GLib bindings, D-Bus API, gpio-tools, and libgpiotools
- extend libgpiosim with new routines allowing to use the new functionality provided in more recent versions of the gpio-sim module in the kernel
Improvements:
- make tests work with newer coreutils by removing cases checking tools' behavior on SIGINT which stopped working due to changes in behavior of the timeout tool
- decouple the libgpiod core C library API version from the global libgpiod project version as the former is now quite stable and no longer changes with every release
- extend libgpiosim self-tests
Bug fixes:
- allow modifying settings for existing offsets in a full line-config
- fix signed/unsigned type mismatch in gpiod_line_request_get_value()
- add explicit NUL-termination after strncpy() calls in core library
- fix consumer string in line_info stream operator in C++ bindings
- use get_mapped_value() for all enum mappings in line_info in C++ bindings
- move g_tree_remove() out of g_assert() in gpiodbus_id_free() to avoid resource exhaustion when assertions are disabled
- return 0 when zero events are requested in edge-event API
- fix gpionotify watching lines on the wrong chip
- reject trailing garbage in parse_period() in gpio-tools
- store interactive sleep period in a long long in gpioset to avoid overflow
- use gpiod_line_settings_free() to release settings in line-config
- fix buffer over-read bugs when translating uAPI structs to library types
- fix variable and argument types where necessary
- sanitize values returned by the kernel to avoid potential buffer overflows
- fix memory leaks in gpio-tools
- add missing return value checks in gpio-tools
- fix period parsing in gpio-tools
- use correct loop counter in error path in gpio-manager
- don't try to export the same chip object twice in gpio-manager on duplicate uevents
- use the "add"/"remove" uevents when watching for GPIO chips in the system as the "bind"/"unbind" pair is only emitted by linux for controllers which don't have a firmware node attached
- don't allow clearing hogs on active devices in tests
- don't install uneeded files
- fix a pkgconfig check in configure
- fix a return type check in test harness
- don't implicity unquote unnamed lines in gpioinfo
- remove useless variable in reconfigure example
- don't let struct line_config balloon out of control and trigger an OOM
- drop python3-config check from configure.ac
- fix potential PyDict_Next() crash in python bindings
- disable the GPIO simulator before releasing it in C++, rust and python bindings tests
- fix the way we wait for simulated chips to appear in D-Bus command-line client tests
- make read_edge_events lifetimes more explicit in rust bindings
- make waiting for info events more reliable in GLib bindings tests
- defer removal of bank entries when device is not disabled in libgpiosim
- add missing LineInfo import to __init__.py in python bindings
---
meta-oe/recipes-support/libgpiod/libgpiod.inc | 19 +-----
.../libgpiod/libgpiod_1.6.5.bb | 18 ++++-
.../{libgpiod_2.2.4.bb => libgpiod_2.3.bb} | 68 ++++++++++++-------
3 files changed, 63 insertions(+), 42 deletions(-)
rename meta-oe/recipes-support/libgpiod/{libgpiod_2.2.4.bb => libgpiod_2.3.bb} (61%)meta-oe/recipes-support/libgpiod/libgpiod.inc +1 -18
@@ -2,27 +2,19 @@ SUMMARY = "C library and tools for interacting with the linux GPIO character dev HOMEPAGE = "https://libgpiod.readthedocs.io/" RECIPE_MAINTAINER = "Bartosz Golaszewski <[email protected]>" -inherit autotools pkgconfig ptest +inherit pkgconfig ptest SRC_URI += " \ https://www.kernel.org/pub/software/libs/libgpiod/libgpiod-${PV}.tar.xz \ file://run-ptest \ " -PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx" - # Enable cxx bindings by default. PACKAGECONFIG ?= " \ cxx \ ${@bb.utils.contains('PTEST_ENABLED', '1', 'tests', '', d)} \ " -# Always build tools - they don't have any additional -# requirements over the library. -EXTRA_OECONF = "--enable-tools" - -DEPENDS += "autoconf-archive-native" - PACKAGES =+ "${PN}-tools libgpiodcxx" FILES:${PN}-tools += " \ ${bindir}/gpiodetect \
@@ -44,13 +36,4 @@ do_install:append() { do_install_ptest() { install -d ${D}${PTEST_PATH}/tests/ - - # These are the core C library tests - install -m 0755 ${B}/tests/.libs/gpiod-test ${D}${PTEST_PATH}/tests/ - - # Tools are always built so let's always install them for ptest even if - # we're not selecting libgpiod-tools. - for tool in ${FILES:${PN}-tools}; do - install ${B}/tools/.libs/$(basename $tool) ${D}${PTEST_PATH}/tests/ - done }
meta-oe/recipes-support/libgpiod/libgpiod_1.6.5.bb +17 -1
@@ -9,9 +9,16 @@ SRC_URI[sha256sum] = "ae280f697bf035a1fb780c9972e5c81d0d2712b7ab6124fb3fba24619d FILESEXTRAPATHS:prepend := "${THISDIR}/${BPN}-1.x:" -inherit python3native +inherit autotools python3native inherit_defer ${@bb.utils.contains('PACKAGECONFIG', 'python3', 'python3targetconfig', '', d)} +# Always build tools - they don't have any additional +# requirements over the library. +EXTRA_OECONF = "--enable-tools" + +DEPENDS += "autoconf-archive-native" + +PACKAGECONFIG[cxx] = "--enable-bindings-cxx,--disable-bindings-cxx" PACKAGECONFIG[tests] = "--enable-tests,--disable-tests,kmod udev glib-2.0 catch2" PACKAGECONFIG[python3] = "--enable-bindings-python,--disable-bindings-python,python3"
@@ -35,6 +42,15 @@ RDEPENDS:${PN}-ptest += " \ " do_install_ptest:append() { + # These are the core C library tests + install -m 0755 ${B}/tests/.libs/gpiod-test ${D}${PTEST_PATH}/tests/ + + # Tools are always built so let's always install them for ptest even if + # we're not selecting libgpiod-tools. + for tool in ${FILES:${PN}-tools}; do + install ${B}/tools/.libs/$(basename $tool) ${D}${PTEST_PATH}/tests/ + done + install -m 0755 ${S}/tools/gpio-tools-test ${D}${PTEST_PATH}/tests/ install -m 0755 ${S}/tools/gpio-tools-test.bats ${D}${PTEST_PATH}/tests/
meta-oe/recipes-support/libgpiod/libgpiod_2.3.bb renamed from meta-oe/recipes-support/libgpiod/libgpiod_2.2.4.bb +45 -23
122 lines not on this page · raw message
Signature · 1 line
2.47.3