Skip to contentSkip to conversation

libgpiod: update to v2.2

PATCH In review Bartosz Golaszewski 5 participants 11 messages Oct 24, 2024 – Oct 29, 2024 1 message not in the archive

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 libgpiod: update to v2.2

From: Bartosz Golaszewski <[email protected]>

This is a big update for libgpiod bringing in the D-Bus daemon and its command-line client. This is why the patch is pretty hefty. The majority of the line count comes from the removed patch that is now upstream but the v2.2 recipe also now contains a lot of bits and pieces that make the D-Bus daemon work both with system as well as sysvinit.

The project now packages the systemd service and udev rules that allow the manager to run under its own user in a well sandboxed environment but the sysvsinit script is carried in the recipe as I don't want to put support for legacy systems in libgpiod repo.

The patch also updates the ptests for libgpiod to run three new
test-suites: one for GLib bindings, one for the command-line D-Bus client and finally one testing some daemon corner-cases not supported by the client.

Build tested with various config options with systemd and sysvinit (the latter with glibc and musl) on 32- and 64-bit architectures.

The complete changelog since v2.1 (taken verbatim from the NEWS file) is below:

libgpiod v2.2
=============

New features:
- add GObject bindings with introspection
- add a D-Bus interface to libgpiod together with a daemon implementing it and a command-line client
- split out the common shell test code for gpio-tools into a reusable test harness for GPIO command-line tools
- add minutes as a new supported time unit for tools and allow longer periods for timeouts, line holding, etc.
- add a script for generating sdist and wheels for python bindings
- migrate C++ tests to using Catch2 v3

Improvements:
- relicense C++ bindings under LGPL-2.1-or-later in order to make the project more attractive to users with GPL-3.0 restrictions
- remove dependency on grep from tools' tests
- make shell scripts pass shellcheck treewide
- use ppoll() in tools to actually achieve the advertised microsecond granularity of timeouts
- documentation improvements
- improve typing info in python bindings
- improve __repr__() implementations in python bindings
- make reconfiguring lines more flexible in python bindings by relaxing the requirement to carry the ordering of the config entries from the request
- support casting of line.Value to bool in python bindings
- various new test-cases for improved coverage treewide
- align the test cases with the current kernel requirement for specifying direction explicitly when reconfiguring lines

Bug fixes:
- fix C++ bindings build using slibtool
- accept the new style automatic GPIO chip labels from gpio-sim in bash tests
- fix C++ tests with recent kernels which introduced stricter reconfigure behavior
- fix a use-after-free bug in python bindings
- fix passing the event clock property to line requests in python bindings
- fix a memory leak in tools
- make sure the string buffers in line-info and chip-info are big enough to not truncate the strings they hold below the size accepted by the kernel
- remove buggy and unnecessary flags sanitization from line-config
- fix python bindings installation with Makefile build
- sanitize the return values of GPIO ioctl()s which in some cases may be erroneously positive
- fix requesting lines by name with multiple entries in python bindings

---
Changes in v3:
- make dbus a runtime dependency for the 'dbus' and 'tests' PACKAGECONFIG switches
- make libgpiod-manager a runtime dependency for libgpiod-cli

Changes in v2:
- fix SRC_URI[sha256sum] value

 ...cxx-Migrate-C-tests-to-use-Catch2-v3.patch | 530 ------------------
 .../libgpiod/libgpiod-2.x/gpio-manager.init   |  76 +++
 .../libgpiod/libgpiod-2.x/run-ptest           |  43 +-
 .../libgpiod/libgpiod_2.1.3.bb                |  33 --
 .../recipes-support/libgpiod/libgpiod_2.2.bb  |  99 ++++
 5 files changed, 206 insertions(+), 575 deletions(-)
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/0001-bindings-cxx-Migrate-C-tests-to-use-Catch2-v3.patch
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/gpio-manager.init
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.1.3.bb
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb
meta-oe/recipes-support/libgpiod/libgpiod-2.x/0001-bindings-cxx-Migrate-C-tests-to-use-Catch2-v3.patch deleted +0 -530
deleted file mode 100644
index ac1eff510b..0000000000
@@ -1,530 +0,0 @@
-From 0d3e1b3923a1fac80e9d75d8b5e33cd36f4fe659 Mon Sep 17 00:00:00 2001
-From: Khem Raj <[email protected]>
-Date: Fri, 31 May 2024 09:03:22 -0700
-Subject: [PATCH] bindings: cxx: Migrate C++ tests to use Catch2 v3
-
-Catch2 v3.x has API changes which needs to be addressed
-in the tests themselves, hence this changeset is to fix
-those.
-
-Upstream-Status: Submitted [https://lore.kernel.org/linux-gpio/[email protected]/T/#u]
-Signed-off-by: Khem Raj <[email protected]>
-Cc: Bartosz Golaszewski <[email protected]>
----
- bindings/cxx/tests/Makefile.am              |  2 +-
- bindings/cxx/tests/gpiod-cxx-test-main.cpp  |  3 +--
- bindings/cxx/tests/helpers.hpp              |  8 +++---
- bindings/cxx/tests/tests-chip-info.cpp      | 30 ++++++++++-----------
- bindings/cxx/tests/tests-chip.cpp           | 14 +++++-----
- bindings/cxx/tests/tests-edge-event.cpp     |  2 +-
- bindings/cxx/tests/tests-info-event.cpp     |  2 +-
- bindings/cxx/tests/tests-line-config.cpp    |  2 +-
- bindings/cxx/tests/tests-line-info.cpp      | 22 +++++++--------
- bindings/cxx/tests/tests-line-request.cpp   | 16 +++++------
- bindings/cxx/tests/tests-line-settings.cpp  |  2 +-
- bindings/cxx/tests/tests-line.cpp           |  2 +-
- bindings/cxx/tests/tests-misc.cpp           |  2 +-
- bindings/cxx/tests/tests-request-config.cpp | 10 +++----
- configure.ac                                |  4 +--
- 15 files changed, 60 insertions(+), 61 deletions(-)
-
-diff --git a/bindings/cxx/tests/Makefile.am b/bindings/cxx/tests/Makefile.am
-index fbf80a1..d9284da 100644
---- a/bindings/cxx/tests/Makefile.am
-+++ b/bindings/cxx/tests/Makefile.am
-@@ -4,7 +4,7 @@
- AM_CXXFLAGS = -I$(top_srcdir)/bindings/cxx/ -I$(top_srcdir)/include
- AM_CXXFLAGS += -I$(top_srcdir)/tests/gpiosim/
- AM_CXXFLAGS += -Wall -Wextra -g -std=gnu++17 $(CATCH2_CFLAGS)
--AM_LDFLAGS = -pthread
-+AM_LDFLAGS = -pthread $(CATCH2_LIBS)
- LDADD = $(top_builddir)/bindings/cxx/libgpiodcxx.la
- LDADD += $(top_builddir)/tests/gpiosim/libgpiosim.la
- 
-diff --git a/bindings/cxx/tests/gpiod-cxx-test-main.cpp b/bindings/cxx/tests/gpiod-cxx-test-main.cpp
-index 11bf8e5..ec48286 100644
---- a/bindings/cxx/tests/gpiod-cxx-test-main.cpp
-+++ b/bindings/cxx/tests/gpiod-cxx-test-main.cpp
-@@ -1,5 +1,4 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2017-2021 Bartosz Golaszewski <[email protected]>
- 
--#define CATCH_CONFIG_MAIN
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
-diff --git a/bindings/cxx/tests/helpers.hpp b/bindings/cxx/tests/helpers.hpp
-index 62d9827..62bbdf5 100644
---- a/bindings/cxx/tests/helpers.hpp
-+++ b/bindings/cxx/tests/helpers.hpp
-@@ -4,13 +4,13 @@
- #ifndef __GPIOD_CXX_TEST_HELPERS_HPP__
- #define __GPIOD_CXX_TEST_HELPERS_HPP__
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <regex>
- #include <string>
- #include <sstream>
- #include <system_error>
- 
--class system_error_matcher : public Catch::MatcherBase<::std::system_error>
-+class system_error_matcher : public Catch::Matchers::MatcherBase<::std::system_error>
- {
- public:
- 	explicit system_error_matcher(int expected_errno);
-@@ -21,7 +21,7 @@ private:
- 	::std::error_condition _m_cond;
- };
- 
--class regex_matcher : public Catch::MatcherBase<::std::string>
-+class regex_matcher : public Catch::Matchers::MatcherBase<::std::string>
- {
- public:
- 	explicit regex_matcher(const ::std::string& pattern);
-@@ -33,7 +33,7 @@ private:
- 	::std::string _m_repr;
- };
- 
--template<class T> class stringify_matcher : public Catch::MatcherBase<T>
-+template<class T> class stringify_matcher : public Catch::Matchers::MatcherBase<T>
- {
- public:
- 	explicit stringify_matcher(const ::std::string& expected) : _m_expected(expected)
-diff --git a/bindings/cxx/tests/tests-chip-info.cpp b/bindings/cxx/tests/tests-chip-info.cpp
-index 717c387..2c54f53 100644
---- a/bindings/cxx/tests/tests-chip-info.cpp
-+++ b/bindings/cxx/tests/tests-chip-info.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2021-2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <gpiod.hpp>
- #include <sstream>
- 
-@@ -24,12 +24,12 @@ TEST_CASE("chip_info properties can be read", "[chip-info][chip]")
- 
- 	SECTION("get chip name")
- 	{
--		REQUIRE_THAT(info.name(), Catch::Equals(sim.name()));
-+		REQUIRE_THAT(info.name(), Catch::Matchers::Equals(sim.name()));
- 	}
- 
- 	SECTION("get chip label")
- 	{
--		REQUIRE_THAT(info.label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(info.label(), Catch::Matchers::Equals("foobar"));
- 	}
- 
- 	SECTION("get num_lines")
-@@ -52,12 +52,12 @@ TEST_CASE("chip_info can be copied and moved", "[chip-info]")
- 	{
- 		auto copy(info);
- 
--		REQUIRE_THAT(copy.name(), Catch::Equals(sim.name()));
--		REQUIRE_THAT(copy.label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(copy.name(), Catch::Matchers::Equals(sim.name()));
-+		REQUIRE_THAT(copy.label(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(copy.num_lines() == 4);
- 
--		REQUIRE_THAT(info.name(), Catch::Equals(sim.name()));
--		REQUIRE_THAT(info.label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(info.name(), Catch::Matchers::Equals(sim.name()));
-+		REQUIRE_THAT(info.label(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(info.num_lines() == 4);
- 	}
- 
-@@ -67,12 +67,12 @@ TEST_CASE("chip_info can be copied and moved", "[chip-info]")
- 
- 		copy = info;
- 
--		REQUIRE_THAT(copy.name(), Catch::Equals(sim.name()));
--		REQUIRE_THAT(copy.label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(copy.name(), Catch::Matchers::Equals(sim.name()));
-+		REQUIRE_THAT(copy.label(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(copy.num_lines() == 4);
- 
--		REQUIRE_THAT(info.name(), Catch::Equals(sim.name()));
--		REQUIRE_THAT(info.label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(info.name(), Catch::Matchers::Equals(sim.name()));
-+		REQUIRE_THAT(info.label(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(info.num_lines() == 4);
- 	}
- 
-@@ -80,8 +80,8 @@ TEST_CASE("chip_info can be copied and moved", "[chip-info]")
- 	{
- 		auto moved(std::move(info));
- 
--		REQUIRE_THAT(moved.name(), Catch::Equals(sim.name()));
--		REQUIRE_THAT(moved.label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(moved.name(), Catch::Matchers::Equals(sim.name()));
-+		REQUIRE_THAT(moved.label(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(moved.num_lines() == 4);
- 	}
- 
-@@ -91,8 +91,8 @@ TEST_CASE("chip_info can be copied and moved", "[chip-info]")
- 
- 		moved = ::std::move(info);
- 
--		REQUIRE_THAT(moved.name(), Catch::Equals(sim.name()));
--		REQUIRE_THAT(moved.label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(moved.name(), Catch::Matchers::Equals(sim.name()));
-+		REQUIRE_THAT(moved.label(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(moved.num_lines() == 4);
- 	}
- }
-diff --git a/bindings/cxx/tests/tests-chip.cpp b/bindings/cxx/tests/tests-chip.cpp
-index c5ec19b..1ab7add 100644
---- a/bindings/cxx/tests/tests-chip.cpp
-+++ b/bindings/cxx/tests/tests-chip.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2021-2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <gpiod.hpp>
- #include <sstream>
- #include <system_error>
-@@ -48,9 +48,9 @@ TEST_CASE("chip constructor works", "[chip]")
- 			.build();
- 
- 		::gpiod::chip first(sim.dev_path());
--		REQUIRE_THAT(first.get_info().label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(first.get_info().label(), Catch::Matchers::Equals("foobar"));
- 		::gpiod::chip second(::std::move(first));
--		REQUIRE_THAT(second.get_info().label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(second.get_info().label(), Catch::Matchers::Equals("foobar"));
- 	}
- }
- 
-@@ -70,9 +70,9 @@ TEST_CASE("chip operators work", "[chip]")
- 
- 		::gpiod::chip moved_chip(moved_sim.dev_path());
- 
--		REQUIRE_THAT(chip.get_info().label(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(chip.get_info().label(), Catch::Matchers::Equals("foobar"));
- 		chip = ::std::move(moved_chip);
--		REQUIRE_THAT(chip.get_info().label(), Catch::Equals("moved"));
-+		REQUIRE_THAT(chip.get_info().label(), Catch::Matchers::Equals("moved"));
- 	}
- 
- 	SECTION("boolean operator")
-@@ -94,7 +94,7 @@ TEST_CASE("chip properties can be read", "[chip]")
- 
- 	SECTION("get device path")
- 	{
--		REQUIRE_THAT(chip.path(), Catch::Equals(sim.dev_path()));
-+		REQUIRE_THAT(chip.path(), Catch::Matchers::Equals(sim.dev_path()));
- 	}
- 
- 	SECTION("get file descriptor")
-@@ -169,7 +169,7 @@ TEST_CASE("stream insertion operator works for chip", "[chip]")
- 			    "\", label=\"foobar\", num_lines=4))";
- 
- 		buf << chip;
--		REQUIRE_THAT(buf.str(), Catch::Equals(expected.str()));
-+		REQUIRE_THAT(buf.str(), Catch::Matchers::Equals(expected.str()));
- 	}
- 
- 	SECTION("closed chip")
-diff --git a/bindings/cxx/tests/tests-edge-event.cpp b/bindings/cxx/tests/tests-edge-event.cpp
-index 19a6ab3..db387be 100644
---- a/bindings/cxx/tests/tests-edge-event.cpp
-+++ b/bindings/cxx/tests/tests-edge-event.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <chrono>
- #include <gpiod.hpp>
- #include <sstream>
-diff --git a/bindings/cxx/tests/tests-info-event.cpp b/bindings/cxx/tests/tests-info-event.cpp
-index 21c0ef0..f7ae309 100644
---- a/bindings/cxx/tests/tests-info-event.cpp
-+++ b/bindings/cxx/tests/tests-info-event.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <chrono>
- #include <filesystem>
- #include <gpiod.hpp>
-diff --git a/bindings/cxx/tests/tests-line-config.cpp b/bindings/cxx/tests/tests-line-config.cpp
-index 5e439a1..2f510fb 100644
---- a/bindings/cxx/tests/tests-line-config.cpp
-+++ b/bindings/cxx/tests/tests-line-config.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <gpiod.hpp>
- 
- #include "gpiosim.hpp"
-diff --git a/bindings/cxx/tests/tests-line-info.cpp b/bindings/cxx/tests/tests-line-info.cpp
-index 21211f2..8589da3 100644
---- a/bindings/cxx/tests/tests-line-info.cpp
-+++ b/bindings/cxx/tests/tests-line-info.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <gpiod.hpp>
- #include <string>
- 
-@@ -35,9 +35,9 @@ TEST_CASE("get_line_info() works", "[chip][line-info]")
- 		auto info = chip.get_line_info(0);
- 
- 		REQUIRE(info.offset() == 0);
--		REQUIRE_THAT(info.name(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(info.name(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(info.used());
--		REQUIRE_THAT(info.consumer(), Catch::Equals("hog"));
-+		REQUIRE_THAT(info.consumer(), Catch::Matchers::Equals("hog"));
- 		REQUIRE(info.direction() == ::gpiod::line::direction::OUTPUT);
- 		REQUIRE_FALSE(info.active_low());
- 		REQUIRE(info.bias() == ::gpiod::line::bias::UNKNOWN);
-@@ -74,9 +74,9 @@ TEST_CASE("line properties can be retrieved", "[line-info]")
- 		auto info6 = chip.get_line_info(6);
- 
- 		REQUIRE(info4.offset() == 4);
--		REQUIRE_THAT(info4.name(), Catch::Equals("baz"));
-+		REQUIRE_THAT(info4.name(), Catch::Matchers::Equals("baz"));
- 		REQUIRE(info4.used());
--		REQUIRE_THAT(info4.consumer(), Catch::Equals("hog4"));
-+		REQUIRE_THAT(info4.consumer(), Catch::Matchers::Equals("hog4"));
- 		REQUIRE(info4.direction() == direction::OUTPUT);
- 		REQUIRE(info4.edge_detection() == edge::NONE);
- 		REQUIRE_FALSE(info4.active_low());
-@@ -102,10 +102,10 @@ TEST_CASE("line_info can be copied and moved")
- 	{
- 		auto copy(info);
- 		REQUIRE(copy.offset() == 2);
--		REQUIRE_THAT(copy.name(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(copy.name(), Catch::Matchers::Equals("foobar"));
- 		/* info can still be used */
- 		REQUIRE(info.offset() == 2);
--		REQUIRE_THAT(info.name(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(info.name(), Catch::Matchers::Equals("foobar"));
- 	}
- 
- 	SECTION("assignment operator works")
-@@ -113,17 +113,17 @@ TEST_CASE("line_info can be copied and moved")
- 		auto copy = chip.get_line_info(0);
- 		copy = info;
- 		REQUIRE(copy.offset() == 2);
--		REQUIRE_THAT(copy.name(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(copy.name(), Catch::Matchers::Equals("foobar"));
- 		/* info can still be used */
- 		REQUIRE(info.offset() == 2);
--		REQUIRE_THAT(info.name(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(info.name(), Catch::Matchers::Equals("foobar"));
- 	}
- 
- 	SECTION("move constructor works")
- 	{
- 		auto copy(::std::move(info));
- 		REQUIRE(copy.offset() == 2);
--		REQUIRE_THAT(copy.name(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(copy.name(), Catch::Matchers::Equals("foobar"));
- 	}
- 
- 	SECTION("move assignment operator works")
-@@ -131,7 +131,7 @@ TEST_CASE("line_info can be copied and moved")
- 		auto copy = chip.get_line_info(0);
- 		copy = ::std::move(info);
- 		REQUIRE(copy.offset() == 2);
--		REQUIRE_THAT(copy.name(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(copy.name(), Catch::Matchers::Equals("foobar"));
- 	}
- }
- 
-diff --git a/bindings/cxx/tests/tests-line-request.cpp b/bindings/cxx/tests/tests-line-request.cpp
-index 9632ae0..af8b979 100644
---- a/bindings/cxx/tests/tests-line-request.cpp
-+++ b/bindings/cxx/tests/tests-line-request.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <gpiod.hpp>
- #include <sstream>
- #include <stdexcept>
-@@ -20,7 +20,7 @@ using pull = ::gpiosim::chip::pull;
- 
- namespace {
- 
--class value_matcher : public Catch::MatcherBase<value>
-+class value_matcher : public Catch::Matchers::MatcherBase<value>
- {
- public:
- 	value_matcher(pull pull, bool active_low = false)
-@@ -117,7 +117,7 @@ TEST_CASE("consumer string is set correctly", "[line-request]")
- 		auto info = chip.get_line_info(2);
- 
- 		REQUIRE(info.used());
--		REQUIRE_THAT(info.consumer(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(info.consumer(), Catch::Matchers::Equals("foobar"));
- 	}
- 
- 	SECTION("empty consumer")
-@@ -130,7 +130,7 @@ TEST_CASE("consumer string is set correctly", "[line-request]")
- 		auto info = chip.get_line_info(2);
- 
- 		REQUIRE(info.used());
--		REQUIRE_THAT(info.consumer(), Catch::Equals("?"));
-+		REQUIRE_THAT(info.consumer(), Catch::Matchers::Equals("?"));
- 	}
- }
- 
-@@ -380,7 +380,7 @@ TEST_CASE("line_request can be moved", "[line-request]")
- 		auto moved(::std::move(request));
- 
- 		REQUIRE(moved.fd() == fd);
--		REQUIRE_THAT(moved.offsets(), Catch::Equals(offs));
-+		REQUIRE_THAT(moved.offsets(), Catch::Matchers::Equals(offs));
- 	}
- 
- 	SECTION("move assignment operator works")
-@@ -388,7 +388,7 @@ TEST_CASE("line_request can be moved", "[line-request]")
- 		another = ::std::move(request);
- 
- 		REQUIRE(another.fd() == fd);
--		REQUIRE_THAT(another.offsets(), Catch::Equals(offs));
-+		REQUIRE_THAT(another.offsets(), Catch::Matchers::Equals(offs));
- 	}
- }
- 
-@@ -484,7 +484,7 @@ TEST_CASE("line_request stream insertion operator works", "[line-request]")
- 	{
- 		buf << request;
- 
--		REQUIRE_THAT(buf.str(), Catch::Equals(expected.str()));
-+		REQUIRE_THAT(buf.str(), Catch::Matchers::Equals(expected.str()));
- 	}
- 
- 	SECTION("request released")
-@@ -493,7 +493,7 @@ TEST_CASE("line_request stream insertion operator works", "[line-request]")
- 
- 		buf << request;
- 
--		REQUIRE_THAT(buf.str(), Catch::Equals("gpiod::line_request(released)"));
-+		REQUIRE_THAT(buf.str(), Catch::Matchers::Equals("gpiod::line_request(released)"));
- 	}
- }
- 
-diff --git a/bindings/cxx/tests/tests-line-settings.cpp b/bindings/cxx/tests/tests-line-settings.cpp
-index dc821bb..2690331 100644
---- a/bindings/cxx/tests/tests-line-settings.cpp
-+++ b/bindings/cxx/tests/tests-line-settings.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <gpiod.hpp>
- 
- #include "helpers.hpp"
-diff --git a/bindings/cxx/tests/tests-line.cpp b/bindings/cxx/tests/tests-line.cpp
-index 319012a..abd0e08 100644
---- a/bindings/cxx/tests/tests-line.cpp
-+++ b/bindings/cxx/tests/tests-line.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2021-2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <gpiod.hpp>
- 
- #include "helpers.hpp"
-diff --git a/bindings/cxx/tests/tests-misc.cpp b/bindings/cxx/tests/tests-misc.cpp
-index f06dc39..33fc3fa 100644
---- a/bindings/cxx/tests/tests-misc.cpp
-+++ b/bindings/cxx/tests/tests-misc.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2021-2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <filesystem>
- #include <gpiod.hpp>
- #include <string>
-diff --git a/bindings/cxx/tests/tests-request-config.cpp b/bindings/cxx/tests/tests-request-config.cpp
-index 66eb748..d71e91b 100644
---- a/bindings/cxx/tests/tests-request-config.cpp
-+++ b/bindings/cxx/tests/tests-request-config.cpp
-@@ -1,7 +1,7 @@
- // SPDX-License-Identifier: GPL-2.0-or-later
- // SPDX-FileCopyrightText: 2021-2022 Bartosz Golaszewski <[email protected]>
- 
--#include <catch2/catch.hpp>
-+#include <catch2/catch_all.hpp>
- #include <cstddef>
- #include <gpiod.hpp>
- #include <string>
-@@ -33,7 +33,7 @@ TEST_CASE("request_config can be moved", "[request-config]")
- 	SECTION("move constructor works")
- 	{
- 		auto moved(::std::move(cfg));
--		REQUIRE_THAT(moved.consumer(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(moved.consumer(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(moved.event_buffer_size() == 64);
- 	}
- 
-@@ -43,7 +43,7 @@ TEST_CASE("request_config can be moved", "[request-config]")
- 
- 		moved = ::std::move(cfg);
- 
--		REQUIRE_THAT(moved.consumer(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(moved.consumer(), Catch::Matchers::Equals("foobar"));
- 		REQUIRE(moved.event_buffer_size() == 64);
- 	}
- }
-@@ -55,7 +55,7 @@ TEST_CASE("request_config mutators work", "[request-config]")
- 	SECTION("set consumer")
- 	{
- 		cfg.set_consumer("foobar");
--		REQUIRE_THAT(cfg.consumer(), Catch::Equals("foobar"));
-+		REQUIRE_THAT(cfg.consumer(), Catch::Matchers::Equals("foobar"));
- 	}
- 
- 	SECTION("set event_buffer_size")
-@@ -77,7 +77,7 @@ TEST_CASE("request_config stream insertion operator works", "[request-config]")
- 
- 	::std::string expected("gpiod::request_config(consumer='foobar', event_buffer_size=32)");
- 
--	REQUIRE_THAT(buf.str(), Catch::Equals(expected));
-+	REQUIRE_THAT(buf.str(), Catch::Matchers::Equals(expected));
- }
- 
- } /* namespace */
-diff --git a/configure.ac b/configure.ac
-index a2370c5..216007e 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -206,9 +206,9 @@ then
- 
- 	if test "x$with_tests" = xtrue
- 	then
--		PKG_CHECK_MODULES([CATCH2], [catch2],, [
-+		PKG_CHECK_MODULES([CATCH2], [catch2-with-main],, [
- 			AC_LANG_PUSH([C++])
--			AC_CHECK_HEADERS([catch2/catch.hpp], [], [HEADER_NOT_FOUND_CXX([catch2/catch.hpp])])
-+			AC_CHECK_HEADERS([catch2/catch_all.hpp], [], [HEADER_NOT_FOUND_CXX([catch2/catch_all.hpp])])
- 			AC_LANG_POP([C++])
- 		])
- 	fi
meta-oe/recipes-support/libgpiod/libgpiod-2.x/gpio-manager.init new file +76 -0

76 lines not on this page · raw message

meta-oe/recipes-support/libgpiod/libgpiod-2.x/run-ptest +31 -12

55 lines not on this page · raw message

meta-oe/recipes-support/libgpiod/libgpiod_2.1.3.bb deleted +0 -33
deleted file mode 100644
index 6130371e4e..0000000000
@@ -1,33 +0,0 @@
-require libgpiod.inc
-
-LICENSE = "GPL-2.0-or-later & LGPL-2.1-or-later & CC-BY-SA-4.0"
-LIC_FILES_CHKSUM = " \
-    file://LICENSES/GPL-2.0-or-later.txt;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
-    file://LICENSES/LGPL-2.1-or-later.txt;md5=4b54a1fd55a448865a0b32d41598759d \
-    file://LICENSES/CC-BY-SA-4.0.txt;md5=fba3b94d88bfb9b81369b869a1e9a20f \
-"
-
-FILESEXTRAPATHS:prepend := "${THISDIR}/${PN}-2.x:"
-
-SRC_URI += "file://0001-bindings-cxx-Migrate-C-tests-to-use-Catch2-v3.patch"
-SRC_URI[sha256sum] = "2be4c0b03e995d236c0e476e14aeb475d7b431dd1439609b6d65c540f91eaf58"
-
-# Enable all project features for ptest
-PACKAGECONFIG[tests] = "--enable-tests --enable-tools --enable-bindings-cxx --enable-gpioset-interactive,--disable-tests,kmod util-linux glib-2.0 catch2 libedit"
-PACKAGECONFIG[gpioset-interactive] = "--enable-gpioset-interactive,--disable-gpioset-interactive,libedit"
-
-PACKAGES =+ "${PN}-ptest-dev"
-FILES:${PN}-tools += "${bindir}/gpionotify"
-FILES:${PN}-ptest += "${libdir}/libgpiosim.so.*"
-FILES:${PN}-ptest-dev += "${includedir}/gpiosim.h"
-
-RDEPENDS:${PN}-ptest += " \
-    ${@bb.utils.contains('PTEST_ENABLED', '1', 'shunit2 bash', '', d)} \
-"
-RRECOMMENDS:${PN}-ptest += "kernel-module-gpio-sim kernel-module-configfs"
-
-do_install_ptest:append() {
-    install -m 0755 ${B}/bindings/cxx/tests/.libs/gpiod-cxx-test ${D}${PTEST_PATH}/tests/
-    install -m 0755 ${S}/tools/gpio-tools-test.bash ${D}${PTEST_PATH}/tests/
-    install -m 0644 ${S}/tests/gpiosim/gpiosim.h ${D}${includedir}/gpiosim.h
-}
meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb new file +99 -0

99 lines not on this page · raw message

Signature · 1 line
2.45.2
Reviewed-by Tested-by on v3 1/1
#1 lore raw

Hello all,

Quoted 71 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

This is a big update for libgpiod bringing in the D-Bus daemon and its command-line client. This is why the patch is pretty hefty. The majority of the line count comes from the removed patch that is now upstream but the v2.2 recipe also now contains a lot of bits and pieces that make the D-Bus daemon work both with system as well as sysvinit.

The project now packages the systemd service and udev rules that allow the manager to run under its own user in a well sandboxed environment but the sysvsinit script is carried in the recipe as I don't want to put support for legacy systems in libgpiod repo.

The patch also updates the ptests for libgpiod to run three new
test-suites: one for GLib bindings, one for the command-line D-Bus client and finally one testing some daemon corner-cases not supported by the client.

Build tested with various config options with systemd and sysvinit (the latter with glibc and musl) on 32- and 64-bit architectures.

The complete changelog since v2.1 (taken verbatim from the NEWS file) is below:

libgpiod v2.2
=============

New features:
- add GObject bindings with introspection
- add a D-Bus interface to libgpiod together with a daemon implementing it and a command-line client
- split out the common shell test code for gpio-tools into a reusable test harness for GPIO command-line tools
- add minutes as a new supported time unit for tools and allow longer periods for timeouts, line holding, etc.
- add a script for generating sdist and wheels for python bindings
- migrate C++ tests to using Catch2 v3

Improvements:
- relicense C++ bindings under LGPL-2.1-or-later in order to make the project more attractive to users with GPL-3.0 restrictions
- remove dependency on grep from tools' tests
- make shell scripts pass shellcheck treewide
- use ppoll() in tools to actually achieve the advertised microsecond granularity of timeouts
- documentation improvements
- improve typing info in python bindings
- improve __repr__() implementations in python bindings
- make reconfiguring lines more flexible in python bindings by relaxing the requirement to carry the ordering of the config entries from the request
- support casting of line.Value to bool in python bindings
- various new test-cases for improved coverage treewide
- align the test cases with the current kernel requirement for specifying direction explicitly when reconfiguring lines

Bug fixes:
- fix C++ bindings build using slibtool
- accept the new style automatic GPIO chip labels from gpio-sim in bash tests
- fix C++ tests with recent kernels which introduced stricter reconfigure behavior
- fix a use-after-free bug in python bindings
- fix passing the event clock property to line requests in python bindings
- fix a memory leak in tools
- make sure the string buffers in line-info and chip-info are big enough to not truncate the strings they hold below the size accepted by the kernel
- remove buggy and unnecessary flags sanitization from line-config
- fix python bindings installation with Makefile build
- sanitize the return values of GPIO ioctl()s which in some cases may be erroneously positive
- fix requesting lines by name with multiple entries in python bindings

Quoted 1 line

I admit I had to backport it to scarthgap to test (along with glib 2.80, etc), but I didn't notice any problems and I'm able to start gpio-manager (systemd service) and control it over gpiocli.

Thanks a lot Bartosz!

Quoted 19 lines

---
Changes in v3:
- make dbus a runtime dependency for the 'dbus' and 'tests' PACKAGECONFIG switches
- make libgpiod-manager a runtime dependency for libgpiod-cli

Changes in v2:
- fix SRC_URI[sha256sum] value

 ...cxx-Migrate-C-tests-to-use-Catch2-v3.patch | 530 ------------------ .../libgpiod/libgpiod-2.x/gpio-manager.init   |  76 +++ .../libgpiod/libgpiod-2.x/run-ptest           |  43 +- .../libgpiod/libgpiod_2.1.3.bb                |  33 -- .../recipes-support/libgpiod/libgpiod_2.2.bb  |  99 ++++

 5 files changed, 206 insertions(+), 575 deletions(-)

 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/0001-bindings-cxx-Migrate-C-tests-to-use-Catch2-v3.patch create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/gpio-manager.init
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.1.3.bb
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb

Signature · 3 lines
Alexander Sverdlin
Siemens AG
www.siemens.com
#2 lore raw

Thanks for testing and Review Alexander.

Quoted 110 lines · Alexander

Hello all,

Quoted 71 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

This is a big update for libgpiod bringing in the D-Bus daemon and its command-line client. This is why the patch is pretty hefty. The majority of the line count comes from the removed patch that is now upstream but the v2.2 recipe also now contains a lot of bits and pieces that make the D-Bus daemon work both with system as well as sysvinit.

The project now packages the systemd service and udev rules that allow the manager to run under its own user in a well sandboxed environment but the sysvsinit script is carried in the recipe as I don't want to put support for legacy systems in libgpiod repo.

The patch also updates the ptests for libgpiod to run three new
test-suites: one for GLib bindings, one for the command-line D-Bus client and finally one testing some daemon corner-cases not supported by the client.

Build tested with various config options with systemd and sysvinit (the latter with glibc and musl) on 32- and 64-bit architectures.

The complete changelog since v2.1 (taken verbatim from the NEWS file) is below:

libgpiod v2.2
=============

New features:
- add GObject bindings with introspection
- add a D-Bus interface to libgpiod together with a daemon implementing it and a command-line client
- split out the common shell test code for gpio-tools into a reusable test harness for GPIO command-line tools
- add minutes as a new supported time unit for tools and allow longer periods for timeouts, line holding, etc.
- add a script for generating sdist and wheels for python bindings
- migrate C++ tests to using Catch2 v3

Improvements:
- relicense C++ bindings under LGPL-2.1-or-later in order to make the project more attractive to users with GPL-3.0 restrictions
- remove dependency on grep from tools' tests
- make shell scripts pass shellcheck treewide
- use ppoll() in tools to actually achieve the advertised microsecond granularity of timeouts
- documentation improvements
- improve typing info in python bindings
- improve __repr__() implementations in python bindings
- make reconfiguring lines more flexible in python bindings by relaxing the requirement to carry the ordering of the config entries from the request
- support casting of line.Value to bool in python bindings
- various new test-cases for improved coverage treewide
- align the test cases with the current kernel requirement for specifying direction explicitly when reconfiguring lines

Bug fixes:
- fix C++ bindings build using slibtool
- accept the new style automatic GPIO chip labels from gpio-sim in bash tests
- fix C++ tests with recent kernels which introduced stricter reconfigure behavior
- fix a use-after-free bug in python bindings
- fix passing the event clock property to line requests in python bindings
- fix a memory leak in tools
- make sure the string buffers in line-info and chip-info are big enough to not truncate the strings they hold below the size accepted by the kernel
- remove buggy and unnecessary flags sanitization from line-config
- fix python bindings installation with Makefile build
- sanitize the return values of GPIO ioctl()s which in some cases may be erroneously positive
- fix requesting lines by name with multiple entries in python bindings

Quoted 1 line

I admit I had to backport it to scarthgap to test (along with glib 2.80, etc), but I didn't notice any problems and I'm able to start gpio-manager (systemd service) and control it over gpiocli.

Thanks a lot Bartosz!

Quoted 9 lines

---
Changes in v3:
- make dbus a runtime dependency for the 'dbus' and 'tests' PACKAGECONFIG switches
- make libgpiod-manager a runtime dependency for libgpiod-cli

Changes in v2:
- fix SRC_URI[sha256sum] value

Quoted 10 lines
 ...cxx-Migrate-C-tests-to-use-Catch2-v3.patch | 530 ------------------
 .../libgpiod/libgpiod-2.x/gpio-manager.init   |  76 +++
 .../libgpiod/libgpiod-2.x/run-ptest           |  43 +-
 .../libgpiod/libgpiod_2.1.3.bb                |  33 --
 .../recipes-support/libgpiod/libgpiod_2.2.bb  |  99 ++++
 5 files changed, 206 insertions(+), 575 deletions(-)
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/0001-bindings-cxx-Migrate-C-tests-to-use-Catch2-v3.patch
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/gpio-manager.init
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.1.3.bb
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb

--
Alexander Sverdlin
Siemens AG
www.siemens.com

#3 lore raw

Doesn't this upgrade break python3-gpiod (meta-oe/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb)?

In world builds I'm seeing new build failure which looks like caused by update libgpiod API:

gpiod/ext/chip.c: In function 'chip_path':
gpiod/ext/chip.c:43:37: error: implicit declaration of function 'gpiod_chip_get_path'; did you mean 'gpiod_chip_get_line'? [-Wimplicit-function-declaration]

   43 |         return PyUnicode_FromString(gpiod_chip_get_path(self->chip));
      |                                     ^~~~~~~~~~~~~~~~~~~
      |                                     gpiod_chip_get_line
gpiod/ext/chip.c:43:37: error: passing argument 1 of
'PyUnicode_FromString' makes pointer from integer without a cast
[-Wint-conversion]
   43 |         return PyUnicode_FromString(gpiod_chip_get_path(self->chip));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     int

In file included from TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/python3-gpiod/2.2.1/recipe-sysroot/usr/include/python3.13/Python.h:79,
from gpiod/ext/internal.h:8:
TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/python3-gpiod/2.2.1/recipe-sysroot/usr/include/python3.13/unicodeobject.h:130:17:
note: expected 'const char *' but argument is of type 'int'

  130 |     const char *u              /* UTF-8 encoded string */
      |     ~~~~~~~~~~~~^

gpiod/ext/chip.c: In function 'chip_fd':
gpiod/ext/chip.c:48:32: error: implicit declaration of function 'gpiod_chip_get_fd'; did you mean 'gpiod_chip_get_line'? [-Wimplicit-function-declaration]

   48 |         return PyLong_FromLong(gpiod_chip_get_fd(self->chip));
      |                                ^~~~~~~~~~~~~~~~~
      |                                gpiod_chip_get_line

gpiod/ext/chip.c: In function 'chip_get_info':
gpiod/ext/chip.c:82:16: error: implicit declaration of function 'gpiod_chip_get_info'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]

   82 |         info = gpiod_chip_get_info(self->chip);
      |                ^~~~~~~~~~~~~~~~~~~
      |                gpiod_chip_get_lines

gpiod/ext/chip.c:82:14: error: assignment to 'struct gpiod_chip_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
82 | info = gpiod_chip_get_info(self->chip);
| ^
gpiod/ext/chip.c:87:38: error: implicit declaration of function 'gpiod_chip_info_get_name'; did you mean 'gpiod_chip_open_by_name'? [-Wimplicit-function-declaration]

   87 |                                      gpiod_chip_info_get_name(info),
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                      gpiod_chip_open_by_name
gpiod/ext/chip.c:88:38: error: implicit declaration of function
'gpiod_chip_info_get_label'; did you mean 'gpiod_chip_open_by_label'?
[-Wimplicit-function-declaration]
   88 |                                      gpiod_chip_info_get_label(info),
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      gpiod_chip_open_by_label

gpiod/ext/chip.c:89:38: error: implicit declaration of function 'gpiod_chip_info_get_num_lines'; did you mean 'gpiod_chip_get_all_lines'? [-Wimplicit-function-declaration]
89 |

gpiod_chip_info_get_num_lines(info));
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      gpiod_chip_get_all_lines
gpiod/ext/chip.c:90:10: error: implicit declaration of function
'gpiod_chip_info_free'; did you mean 'gpiod_chip_iter_free'?
[-Wimplicit-function-declaration]
   90 |          gpiod_chip_info_free(info);
      |          ^~~~~~~~~~~~~~~~~~~~
      |          gpiod_chip_iter_free

gpiod/ext/chip.c: At top level:
gpiod/ext/chip.c:94:40: warning: 'struct gpiod_line_info' declared inside parameter list will not be visible outside of this definition or declaration
94 | static PyObject *make_line_info(struct gpiod_line_info *info)

      |                                        ^~~~~~~~~~~~~~~

gpiod/ext/chip.c: In function 'make_line_info':
gpiod/ext/chip.c:103:33: error: implicit declaration of function 'gpiod_line_info_get_offset'; did you mean 'gpiod_line_offset'? [-Wimplicit-function-declaration]

  103 |                                 gpiod_line_info_get_offset(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_offset
gpiod/ext/chip.c:104:33: error: implicit declaration of function
'gpiod_line_info_get_name'; did you mean 'gpiod_line_bulk_get_line'?
[-Wimplicit-function-declaration]
  104 |                                 gpiod_line_info_get_name(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_bulk_get_line
gpiod/ext/chip.c:105:33: error: implicit declaration of function
'gpiod_line_info_is_used'; did you mean 'gpiod_line_is_used'?
[-Wimplicit-function-declaration]
  105 |                                 gpiod_line_info_is_used(info) ?
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_is_used
gpiod/ext/chip.c:107:33: error: implicit declaration of function
'gpiod_line_info_get_consumer'; did you mean 'gpiod_line_consumer'?
[-Wimplicit-function-declaration]
  107 |                                 gpiod_line_info_get_consumer(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_consumer
gpiod/ext/chip.c:108:33: error: implicit declaration of function
'gpiod_line_info_get_direction'; did you mean 'gpiod_line_direction'?
[-Wimplicit-function-declaration]
  108 |                                 gpiod_line_info_get_direction(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_direction
gpiod/ext/chip.c:109:33: error: implicit declaration of function
'gpiod_line_info_is_active_low' [-Wimplicit-function-declaration]
  109 |                                 gpiod_line_info_is_active_low(info) ?
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:111:33: error: implicit declaration of function
'gpiod_line_info_get_bias'; did you mean 'gpiod_line_bulk_get_line'?
[-Wimplicit-function-declaration]
  111 |                                 gpiod_line_info_get_bias(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_bulk_get_line
gpiod/ext/chip.c:112:33: error: implicit declaration of function
'gpiod_line_info_get_drive'; did you mean 'gpiod_line_bulk_get_line'?
[-Wimplicit-function-declaration]
  112 |                                 gpiod_line_info_get_drive(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_bulk_get_line

gpiod/ext/chip.c:113:33: error: implicit declaration of function 'gpiod_line_info_get_edge_detection' [-Wimplicit-function-declaration]
113 |
gpiod_line_info_get_edge_detection(info),

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:114:33: error: implicit declaration of function
'gpiod_line_info_get_event_clock' [-Wimplicit-function-declaration]
  114 |                                 gpiod_line_info_get_event_clock(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:115:33: error: implicit declaration of function
'gpiod_line_info_is_debounced'; did you mean
'gpiod_line_is_open_source'? [-Wimplicit-function-declaration]
  115 |                                 gpiod_line_info_is_debounced(info) ?
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_is_open_source

gpiod/ext/chip.c:117:33: error: implicit declaration of function 'gpiod_line_info_get_debounce_period_us' [-Wimplicit-function-declaration]
117 |

gpiod_line_info_get_debounce_period_us(info));
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c: In function 'chip_get_line_info':
gpiod/ext/chip.c:133:24: error: implicit declaration of function 'gpiod_chip_watch_line_info'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]

  133 |                 info = gpiod_chip_watch_line_info(self->chip, offset);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        gpiod_chip_get_lines

gpiod/ext/chip.c:133:22: error: assignment to 'struct gpiod_line_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
133 | info = gpiod_chip_watch_line_info(self->chip, offset);
| ^
gpiod/ext/chip.c:135:24: error: implicit declaration of function 'gpiod_chip_get_line_info'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]

  135 |                 info = gpiod_chip_get_line_info(self->chip, offset);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
      |                        gpiod_chip_get_lines

gpiod/ext/chip.c:135:22: error: assignment to 'struct gpiod_line_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
135 | info = gpiod_chip_get_line_info(self->chip, offset);
| ^
gpiod/ext/chip.c:140:35: error: passing argument 1 of 'make_line_info' from incompatible pointer type [-Wincompatible-pointer-types]

  140 |         info_obj = make_line_info(info);
      |                                   ^~~~
      |                                   |
      |                                   struct gpiod_line_info *
gpiod/ext/chip.c:94:57: note: expected 'struct gpiod_line_info *' but
argument is of type 'struct gpiod_line_info *'
   94 | static PyObject *make_line_info(struct gpiod_line_info *info)
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
gpiod/ext/chip.c:141:9: error: implicit declaration of function
'gpiod_line_info_free'; did you mean 'gpiod_line_iter_free'?
[-Wimplicit-function-declaration]
  141 |         gpiod_line_info_free(info);
      |         ^~~~~~~~~~~~~~~~~~~~
      |         gpiod_line_iter_free

gpiod/ext/chip.c: In function 'chip_unwatch_line_info':
gpiod/ext/chip.c:156:15: error: implicit declaration of function 'gpiod_chip_unwatch_line_info'; did you mean 'chip_unwatch_line_info'? [-Wimplicit-function-declaration]

  156 |         ret = gpiod_chip_unwatch_line_info(self->chip, offset);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               chip_unwatch_line_info

gpiod/ext/chip.c: In function 'chip_read_info_event':
gpiod/ext/chip.c:176:17: error: implicit declaration of function 'gpiod_chip_read_info_event'; did you mean 'chip_read_info_event'? [-Wimplicit-function-declaration]

  176 |         event = gpiod_chip_read_info_event(self->chip);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 chip_read_info_event

gpiod/ext/chip.c:176:15: error: assignment to 'struct gpiod_info_event *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
176 | event = gpiod_chip_read_info_event(self->chip);
| ^
gpiod/ext/chip.c:181:16: error: implicit declaration of function 'gpiod_info_event_get_line_info' [-Wimplicit-function-declaration]

  181 |         info = gpiod_info_event_get_line_info(event);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c:181:14: error: assignment to 'struct gpiod_line_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
181 | info = gpiod_info_event_get_line_info(event);
| ^
gpiod/ext/chip.c:183:35: error: passing argument 1 of 'make_line_info' from incompatible pointer type [-Wincompatible-pointer-types]

  183 |         info_obj = make_line_info(info);
      |                                   ^~~~
      |                                   |
      |                                   struct gpiod_line_info *
gpiod/ext/chip.c:94:57: note: expected 'struct gpiod_line_info *' but
argument is of type 'struct gpiod_line_info *'
   94 | static PyObject *make_line_info(struct gpiod_line_info *info)
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
gpiod/ext/chip.c:185:17: error: implicit declaration of function
'gpiod_info_event_free'; did you mean 'gpiod_line_event_read'?
[-Wimplicit-function-declaration]
  185 |                 gpiod_info_event_free(event);
      |                 ^~~~~~~~~~~~~~~~~~~~~
      |                 gpiod_line_event_read
gpiod/ext/chip.c:190:33: error: implicit declaration of function
'gpiod_info_event_get_event_type' [-Wimplicit-function-declaration]
  190 |                                 gpiod_info_event_get_event_type(event),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c:191:33: error: implicit declaration of function 'gpiod_info_event_get_timestamp_ns' [-Wimplicit-function-declaration]
191 |
gpiod_info_event_get_timestamp_ns(event),

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c: In function 'chip_line_offset_from_id':
gpiod/ext/chip.c:208:18: error: implicit declaration of function 'gpiod_chip_get_line_offset_from_name' [-Wimplicit-function-declaration]

  208 |         offset = gpiod_chip_get_line_offset_from_name(self->chip, name);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c: In function 'make_request_config':
gpiod/ext/chip.c:223:19: error: implicit declaration of function
'gpiod_request_config_new' [-Wimplicit-function-declaration]
  223 |         req_cfg = gpiod_request_config_new();
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c:223:17: error: assignment to 'struct gpiod_request_config *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
223 | req_cfg = gpiod_request_config_new();
| ^
gpiod/ext/chip.c:232:25: error: implicit declaration of function 'gpiod_request_config_free' [-Wimplicit-function-declaration]

  232 |                         gpiod_request_config_free(req_cfg);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:236:17: error: implicit declaration of function
'gpiod_request_config_set_consumer' [-Wimplicit-function-declaration]
  236 |                 gpiod_request_config_set_consumer(req_cfg, consumer);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:246:17: error: implicit declaration of function
'gpiod_request_config_set_event_buffer_size'
[-Wimplicit-function-declaration]
  246 |                 gpiod_request_config_set_event_buffer_size(req_cfg,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c: In function 'chip_request_lines':
gpiod/ext/chip.c:275:19: error: implicit declaration of function 'gpiod_chip_request_lines'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]
275 | request = gpiod_chip_request_lines(self->chip,

req_cfg, line_cfg);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~
      |                   gpiod_chip_get_lines

gpiod/ext/chip.c:275:17: error: assignment to 'struct gpiod_line_request *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
275 | request = gpiod_chip_request_lines(self->chip,
req_cfg, line_cfg);
| ^
gpiod/ext/chip.c:283:25: error: implicit declaration of function 'gpiod_request_config_get_event_buffer_size' [-Wimplicit-function-declaration]
283 |

gpiod_request_config_get_event_buffer_size(req_cfg));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:282:46: error: passing argument 1 of
'Py_gpiod_MakeRequestObject' from incompatible pointer type
[-Wincompatible-pointer-types]
  282 |         req_obj = Py_gpiod_MakeRequestObject(request,
      |                                              ^~~~~~~
      |                                              |
      |                                              struct gpiod_line_request *
gpiod/ext/internal.h:14:65: note: expected 'struct gpiod_line_request
*' but argument is of type 'struct gpiod_line_request *'
   14 | PyObject *Py_gpiod_MakeRequestObject(struct gpiod_line_request *request,
      |                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~
gpiod/ext/chip.c:285:17: error: implicit declaration of function
'gpiod_line_request_release'; did you mean 'gpiod_line_request_bulk'?
[-Wimplicit-function-declaration]
  285 |                 gpiod_line_request_release(request);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 gpiod_line_request_bulk

error: command 'TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/python3-gpiod/2.2.1/recipe-sysroot-native/usr/bin/aarch64-webos-linux/aarch64-webos-linux-gcc' failed with exit code 1

Quoted 124 lines · Khem Raj via lists.openembedded.org

Thanks for testing and Review Alexander.

Quoted 106 lines · Alexander

Hello all,

Quoted 71 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

This is a big update for libgpiod bringing in the D-Bus daemon and its command-line client. This is why the patch is pretty hefty. The majority of the line count comes from the removed patch that is now upstream but the v2.2 recipe also now contains a lot of bits and pieces that make the D-Bus daemon work both with system as well as sysvinit.

The project now packages the systemd service and udev rules that allow the manager to run under its own user in a well sandboxed environment but the sysvsinit script is carried in the recipe as I don't want to put support for legacy systems in libgpiod repo.

The patch also updates the ptests for libgpiod to run three new
test-suites: one for GLib bindings, one for the command-line D-Bus client and finally one testing some daemon corner-cases not supported by the client.

Build tested with various config options with systemd and sysvinit (the latter with glibc and musl) on 32- and 64-bit architectures.

The complete changelog since v2.1 (taken verbatim from the NEWS file) is below:

libgpiod v2.2
=============

New features:
- add GObject bindings with introspection
- add a D-Bus interface to libgpiod together with a daemon implementing it and a command-line client
- split out the common shell test code for gpio-tools into a reusable test harness for GPIO command-line tools
- add minutes as a new supported time unit for tools and allow longer periods for timeouts, line holding, etc.
- add a script for generating sdist and wheels for python bindings
- migrate C++ tests to using Catch2 v3

Improvements:
- relicense C++ bindings under LGPL-2.1-or-later in order to make the project more attractive to users with GPL-3.0 restrictions
- remove dependency on grep from tools' tests
- make shell scripts pass shellcheck treewide
- use ppoll() in tools to actually achieve the advertised microsecond granularity of timeouts
- documentation improvements
- improve typing info in python bindings
- improve __repr__() implementations in python bindings
- make reconfiguring lines more flexible in python bindings by relaxing the requirement to carry the ordering of the config entries from the request
- support casting of line.Value to bool in python bindings
- various new test-cases for improved coverage treewide
- align the test cases with the current kernel requirement for specifying direction explicitly when reconfiguring lines

Bug fixes:
- fix C++ bindings build using slibtool
- accept the new style automatic GPIO chip labels from gpio-sim in bash tests
- fix C++ tests with recent kernels which introduced stricter reconfigure behavior
- fix a use-after-free bug in python bindings
- fix passing the event clock property to line requests in python bindings
- fix a memory leak in tools
- make sure the string buffers in line-info and chip-info are big enough to not truncate the strings they hold below the size accepted by the kernel
- remove buggy and unnecessary flags sanitization from line-config
- fix python bindings installation with Makefile build
- sanitize the return values of GPIO ioctl()s which in some cases may be erroneously positive
- fix requesting lines by name with multiple entries in python bindings

Quoted 1 line

I admit I had to backport it to scarthgap to test (along with glib 2.80, etc), but I didn't notice any problems and I'm able to start gpio-manager (systemd service) and control it over gpiocli.

Thanks a lot Bartosz!

Quoted 9 lines

---
Changes in v3:
- make dbus a runtime dependency for the 'dbus' and 'tests' PACKAGECONFIG switches
- make libgpiod-manager a runtime dependency for libgpiod-cli

Changes in v2:
- fix SRC_URI[sha256sum] value

Quoted 10 lines
 ...cxx-Migrate-C-tests-to-use-Catch2-v3.patch | 530 ------------------
 .../libgpiod/libgpiod-2.x/gpio-manager.init   |  76 +++
 .../libgpiod/libgpiod-2.x/run-ptest           |  43 +-
 .../libgpiod/libgpiod_2.1.3.bb                |  33 --
 .../recipes-support/libgpiod/libgpiod_2.2.bb  |  99 ++++
 5 files changed, 206 insertions(+), 575 deletions(-)
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/0001-bindings-cxx-Migrate-C-tests-to-use-Catch2-v3.patch
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod-2.x/gpio-manager.init
 delete mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.1.3.bb
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb
Quoted 4 lines

--
Alexander Sverdlin
Siemens AG
www.siemens.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#113171): https://lists.openembedded.org/g/openembedded-devel/message/113171
Mute This Topic: https://lists.openembedded.org/mt/109190169/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

#4 lore raw
Quoted 3 lines · Martin Jansa via lists.openembedded.org

Doesn't this upgrade break python3-gpiod (meta-oe/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb)?

Looks like it.
Error seen by autobuilder as well :
https://valkyrie.yoctoproject.org/#/builders/87/builds/16/steps/40/logs/stdio

Quoted 486 lines

In world builds I'm seeing new build failure which looks like caused by update libgpiod API:

gpiod/ext/chip.c: In function 'chip_path':
gpiod/ext/chip.c:43:37: error: implicit declaration of function 'gpiod_chip_get_path'; did you mean 'gpiod_chip_get_line'? [-Wimplicit-function-declaration]
43 | return

PyUnicode_FromString(gpiod_chip_get_path(self->chip));
      |                                     ^~~~~~~~~~~~~~~~~~~
      |                                     gpiod_chip_get_line

gpiod/ext/chip.c:43:37: error: passing argument 1 of 'PyUnicode_FromString' makes pointer from integer without a cast [-Wint-conversion]
43 | return

PyUnicode_FromString(gpiod_chip_get_path(self->chip));
      |                                     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                     |
      |                                     int

In file included from

TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/python3-gpiod/2.2.1/recipe-sysroot/usr/include/python3.13/Python.h:79,
from gpiod/ext/internal.h:8:

TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/python3-gpiod/2.2.1/recipe-sysroot/usr/include/python3.13/unicodeobject.h:130:17:
note: expected 'const char *' but argument is of type 'int'

  130 |     const char *u              /* UTF-8 encoded string */
      |     ~~~~~~~~~~~~^

gpiod/ext/chip.c: In function 'chip_fd':
gpiod/ext/chip.c:48:32: error: implicit declaration of function 'gpiod_chip_get_fd'; did you mean 'gpiod_chip_get_line'? [-Wimplicit-function-declaration]

   48 |         return PyLong_FromLong(gpiod_chip_get_fd(self->chip));
      |                                ^~~~~~~~~~~~~~~~~
      |                                gpiod_chip_get_line

gpiod/ext/chip.c: In function 'chip_get_info':
gpiod/ext/chip.c:82:16: error: implicit declaration of function 'gpiod_chip_get_info'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]

   82 |         info = gpiod_chip_get_info(self->chip);
      |                ^~~~~~~~~~~~~~~~~~~
      |                gpiod_chip_get_lines

gpiod/ext/chip.c:82:14: error: assignment to 'struct gpiod_chip_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
82 | info = gpiod_chip_get_info(self->chip);
| ^
gpiod/ext/chip.c:87:38: error: implicit declaration of function 'gpiod_chip_info_get_name'; did you mean 'gpiod_chip_open_by_name'? [-Wimplicit-function-declaration]
87 |
gpiod_chip_info_get_name(info),

      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                      gpiod_chip_open_by_name

gpiod/ext/chip.c:88:38: error: implicit declaration of function 'gpiod_chip_info_get_label'; did you mean 'gpiod_chip_open_by_label'? [-Wimplicit-function-declaration]
88 |
gpiod_chip_info_get_label(info),

      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      gpiod_chip_open_by_label

gpiod/ext/chip.c:89:38: error: implicit declaration of function 'gpiod_chip_info_get_num_lines'; did you mean 'gpiod_chip_get_all_lines'? [-Wimplicit-function-declaration]
89 |

gpiod_chip_info_get_num_lines(info));
      |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                      gpiod_chip_get_all_lines
gpiod/ext/chip.c:90:10: error: implicit declaration of function
'gpiod_chip_info_free'; did you mean 'gpiod_chip_iter_free'?
[-Wimplicit-function-declaration]
   90 |          gpiod_chip_info_free(info);
      |          ^~~~~~~~~~~~~~~~~~~~
      |          gpiod_chip_iter_free

gpiod/ext/chip.c: At top level:
gpiod/ext/chip.c:94:40: warning: 'struct gpiod_line_info' declared inside parameter list will not be visible outside of this definition or declaration
94 | static PyObject *make_line_info(struct gpiod_line_info *info)

      |                                        ^~~~~~~~~~~~~~~

gpiod/ext/chip.c: In function 'make_line_info':
gpiod/ext/chip.c:103:33: error: implicit declaration of function 'gpiod_line_info_get_offset'; did you mean 'gpiod_line_offset'? [-Wimplicit-function-declaration]

  103 |                                 gpiod_line_info_get_offset(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_offset
gpiod/ext/chip.c:104:33: error: implicit declaration of function
'gpiod_line_info_get_name'; did you mean 'gpiod_line_bulk_get_line'?
[-Wimplicit-function-declaration]
  104 |                                 gpiod_line_info_get_name(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_bulk_get_line
gpiod/ext/chip.c:105:33: error: implicit declaration of function
'gpiod_line_info_is_used'; did you mean 'gpiod_line_is_used'?
[-Wimplicit-function-declaration]
  105 |                                 gpiod_line_info_is_used(info) ?
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_is_used
gpiod/ext/chip.c:107:33: error: implicit declaration of function
'gpiod_line_info_get_consumer'; did you mean 'gpiod_line_consumer'?
[-Wimplicit-function-declaration]
  107 |                                 gpiod_line_info_get_consumer(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_consumer

gpiod/ext/chip.c:108:33: error: implicit declaration of function 'gpiod_line_info_get_direction'; did you mean 'gpiod_line_direction'? [-Wimplicit-function-declaration]
108 |
gpiod_line_info_get_direction(info),

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_direction

gpiod/ext/chip.c:109:33: error: implicit declaration of function 'gpiod_line_info_is_active_low' [-Wimplicit-function-declaration]
109 |
gpiod_line_info_is_active_low(info) ?

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:111:33: error: implicit declaration of function
'gpiod_line_info_get_bias'; did you mean 'gpiod_line_bulk_get_line'?
[-Wimplicit-function-declaration]
  111 |                                 gpiod_line_info_get_bias(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_bulk_get_line
gpiod/ext/chip.c:112:33: error: implicit declaration of function
'gpiod_line_info_get_drive'; did you mean 'gpiod_line_bulk_get_line'?
[-Wimplicit-function-declaration]
  112 |                                 gpiod_line_info_get_drive(info),
      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_bulk_get_line

gpiod/ext/chip.c:113:33: error: implicit declaration of function 'gpiod_line_info_get_edge_detection' [-Wimplicit-function-declaration]
113 |
gpiod_line_info_get_edge_detection(info),

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c:114:33: error: implicit declaration of function 'gpiod_line_info_get_event_clock' [-Wimplicit-function-declaration]
114 |
gpiod_line_info_get_event_clock(info),

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c:115:33: error: implicit declaration of function 'gpiod_line_info_is_debounced'; did you mean 'gpiod_line_is_open_source'? [-Wimplicit-function-declaration]
115 | gpiod_line_info_is_debounced(info)
?

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |                                 gpiod_line_is_open_source

gpiod/ext/chip.c:117:33: error: implicit declaration of function 'gpiod_line_info_get_debounce_period_us' [-Wimplicit-function-declaration]
117 |

gpiod_line_info_get_debounce_period_us(info));
      |

^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c: In function 'chip_get_line_info':
gpiod/ext/chip.c:133:24: error: implicit declaration of function 'gpiod_chip_watch_line_info'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]
133 | info = gpiod_chip_watch_line_info(self->chip,

offset);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                        gpiod_chip_get_lines

gpiod/ext/chip.c:133:22: error: assignment to 'struct gpiod_line_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
133 | info = gpiod_chip_watch_line_info(self->chip,
offset);
| ^
gpiod/ext/chip.c:135:24: error: implicit declaration of function 'gpiod_chip_get_line_info'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]
135 | info = gpiod_chip_get_line_info(self->chip,

offset);
      |                        ^~~~~~~~~~~~~~~~~~~~~~~~
      |                        gpiod_chip_get_lines

gpiod/ext/chip.c:135:22: error: assignment to 'struct gpiod_line_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
135 | info = gpiod_chip_get_line_info(self->chip,
offset);
| ^
gpiod/ext/chip.c:140:35: error: passing argument 1 of 'make_line_info' from incompatible pointer type [-Wincompatible-pointer-types]

  140 |         info_obj = make_line_info(info);
      |                                   ^~~~
      |                                   |
      |                                   struct gpiod_line_info *
gpiod/ext/chip.c:94:57: note: expected 'struct gpiod_line_info *' but
argument is of type 'struct gpiod_line_info *'
   94 | static PyObject *make_line_info(struct gpiod_line_info *info)
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
gpiod/ext/chip.c:141:9: error: implicit declaration of function
'gpiod_line_info_free'; did you mean 'gpiod_line_iter_free'?
[-Wimplicit-function-declaration]
  141 |         gpiod_line_info_free(info);
      |         ^~~~~~~~~~~~~~~~~~~~
      |         gpiod_line_iter_free

gpiod/ext/chip.c: In function 'chip_unwatch_line_info':
gpiod/ext/chip.c:156:15: error: implicit declaration of function 'gpiod_chip_unwatch_line_info'; did you mean 'chip_unwatch_line_info'? [-Wimplicit-function-declaration]

  156 |         ret = gpiod_chip_unwatch_line_info(self->chip, offset);
      |               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
      |               chip_unwatch_line_info

gpiod/ext/chip.c: In function 'chip_read_info_event':
gpiod/ext/chip.c:176:17: error: implicit declaration of function 'gpiod_chip_read_info_event'; did you mean 'chip_read_info_event'? [-Wimplicit-function-declaration]

  176 |         event = gpiod_chip_read_info_event(self->chip);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 chip_read_info_event

gpiod/ext/chip.c:176:15: error: assignment to 'struct gpiod_info_event *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
176 | event = gpiod_chip_read_info_event(self->chip);
| ^
gpiod/ext/chip.c:181:16: error: implicit declaration of function 'gpiod_info_event_get_line_info' [-Wimplicit-function-declaration]

  181 |         info = gpiod_info_event_get_line_info(event);
      |                ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c:181:14: error: assignment to 'struct gpiod_line_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
181 | info = gpiod_info_event_get_line_info(event);
| ^
gpiod/ext/chip.c:183:35: error: passing argument 1 of 'make_line_info' from incompatible pointer type [-Wincompatible-pointer-types]

  183 |         info_obj = make_line_info(info);
      |                                   ^~~~
      |                                   |
      |                                   struct gpiod_line_info *
gpiod/ext/chip.c:94:57: note: expected 'struct gpiod_line_info *' but
argument is of type 'struct gpiod_line_info *'
   94 | static PyObject *make_line_info(struct gpiod_line_info *info)
      |                                 ~~~~~~~~~~~~~~~~~~~~~~~~^~~~
gpiod/ext/chip.c:185:17: error: implicit declaration of function
'gpiod_info_event_free'; did you mean 'gpiod_line_event_read'?
[-Wimplicit-function-declaration]
  185 |                 gpiod_info_event_free(event);
      |                 ^~~~~~~~~~~~~~~~~~~~~
      |                 gpiod_line_event_read

gpiod/ext/chip.c:190:33: error: implicit declaration of function 'gpiod_info_event_get_event_type' [-Wimplicit-function-declaration]
190 |
gpiod_info_event_get_event_type(event),

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c:191:33: error: implicit declaration of function 'gpiod_info_event_get_timestamp_ns' [-Wimplicit-function-declaration]
191 |
gpiod_info_event_get_timestamp_ns(event),

      |                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c: In function 'chip_line_offset_from_id':
gpiod/ext/chip.c:208:18: error: implicit declaration of function 'gpiod_chip_get_line_offset_from_name' [-Wimplicit-function-declaration]
208 | offset = gpiod_chip_get_line_offset_from_name(self->chip,

name);
      |                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c: In function 'make_request_config':
gpiod/ext/chip.c:223:19: error: implicit declaration of function
'gpiod_request_config_new' [-Wimplicit-function-declaration]
  223 |         req_cfg = gpiod_request_config_new();
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c:223:17: error: assignment to 'struct gpiod_request_config *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
223 | req_cfg = gpiod_request_config_new();
| ^
gpiod/ext/chip.c:232:25: error: implicit declaration of function 'gpiod_request_config_free' [-Wimplicit-function-declaration]

  232 |                         gpiod_request_config_free(req_cfg);
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:236:17: error: implicit declaration of function
'gpiod_request_config_set_consumer' [-Wimplicit-function-declaration]
  236 |                 gpiod_request_config_set_consumer(req_cfg,
consumer);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:246:17: error: implicit declaration of function
'gpiod_request_config_set_event_buffer_size'
[-Wimplicit-function-declaration]
  246 |                 gpiod_request_config_set_event_buffer_size(req_cfg,
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

gpiod/ext/chip.c: In function 'chip_request_lines':
gpiod/ext/chip.c:275:19: error: implicit declaration of function 'gpiod_chip_request_lines'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]
275 | request = gpiod_chip_request_lines(self->chip,

req_cfg, line_cfg);
      |                   ^~~~~~~~~~~~~~~~~~~~~~~~
      |                   gpiod_chip_get_lines

gpiod/ext/chip.c:275:17: error: assignment to 'struct gpiod_line_request *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
275 | request = gpiod_chip_request_lines(self->chip,
req_cfg, line_cfg);
| ^
gpiod/ext/chip.c:283:25: error: implicit declaration of function 'gpiod_request_config_get_event_buffer_size' [-Wimplicit-function-declaration]
283 |

gpiod_request_config_get_event_buffer_size(req_cfg));
      |                         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
gpiod/ext/chip.c:282:46: error: passing argument 1 of
'Py_gpiod_MakeRequestObject' from incompatible pointer type
[-Wincompatible-pointer-types]
  282 |         req_obj = Py_gpiod_MakeRequestObject(request,
      |                                              ^~~~~~~
      |                                              |
      |                                              struct

gpiod_line_request *
gpiod/ext/internal.h:14:65: note: expected 'struct gpiod_line_request *' but argument is of type 'struct gpiod_line_request *'
14 | PyObject *Py_gpiod_MakeRequestObject(struct gpiod_line_request
*request,

      |

~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ gpiod/ext/chip.c:285:17: error: implicit declaration of function 'gpiod_line_request_release'; did you mean 'gpiod_line_request_bulk'? [-Wimplicit-function-declaration]

  285 |                 gpiod_line_request_release(request);
      |                 ^~~~~~~~~~~~~~~~~~~~~~~~~~
      |                 gpiod_line_request_bulk

error: command 'TOPDIR/BUILD/work/raspberrypi4_64-webos-linux/python3-gpiod/2.2.1/recipe-sysroot-native/usr/bin/aarch64-webos-linux/aarch64-webos-linux-gcc' failed with exit code 1

Quoted 12 lines · Khem Raj via lists.openembedded.org

Thanks for testing and Review Alexander.

Quoted 7 lines · Alexander

Hello all,

Quoted 3 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

This is a big update for libgpiod bringing in the D-Bus daemon and

its

Quoted 1 line
Quoted 1 line
Quoted 1 line

command-line client. This is why the patch is pretty hefty. The

majority

Quoted 1 line
Quoted 1 line
Quoted 1 line

of the line count comes from the removed patch that is now upstream

but

Quoted 1 line
Quoted 1 line
Quoted 1 line

the v2.2 recipe also now contains a lot of bits and pieces that make

the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

D-Bus daemon work both with system as well as sysvinit.

The project now packages the systemd service and udev rules that

allow

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

the manager to run under its own user in a well sandboxed environment but the sysvsinit script is carried in the recipe as I don't want to put support for legacy systems in libgpiod repo.

The patch also updates the ptests for libgpiod to run three new
test-suites: one for GLib bindings, one for the command-line D-Bus client and finally one testing some daemon corner-cases not

supported by

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

the client.

Build tested with various config options with systemd and sysvinit

(the

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

latter with glibc and musl) on 32- and 64-bit architectures.

The complete changelog since v2.1 (taken verbatim from the NEWS

file) is

Quoted 8 lines
Quoted 8 lines
Quoted 8 lines

below:

libgpiod v2.2
=============

New features:
- add GObject bindings with introspection
- add a D-Bus interface to libgpiod together with a daemon

implementing it and

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

a command-line client
- split out the common shell test code for gpio-tools into a

reusable test

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

harness for GPIO command-line tools
- add minutes as a new supported time unit for tools and allow

longer periods

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines

for timeouts, line holding, etc.
- add a script for generating sdist and wheels for python bindings
- migrate C++ tests to using Catch2 v3

Improvements:
- relicense C++ bindings under LGPL-2.1-or-later in order to make

the project

Quoted 9 lines
Quoted 9 lines
Quoted 9 lines

more attractive to users with GPL-3.0 restrictions
- remove dependency on grep from tools' tests
- make shell scripts pass shellcheck treewide
- use ppoll() in tools to actually achieve the advertised microsecond granularity of timeouts
- documentation improvements
- improve typing info in python bindings
- improve __repr__() implementations in python bindings
- make reconfiguring lines more flexible in python bindings by

relaxing the

Quoted 1 line
Quoted 1 line
Quoted 1 line

requirement to carry the ordering of the config entries from the

request

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

- support casting of line.Value to bool in python bindings
- various new test-cases for improved coverage treewide
- align the test cases with the current kernel requirement for

specifying

Quoted 5 lines
Quoted 5 lines
Quoted 5 lines

direction explicitly when reconfiguring lines

Bug fixes:
- fix C++ bindings build using slibtool
- accept the new style automatic GPIO chip labels from gpio-sim in

bash tests

Quoted 1 line
Quoted 1 line
Quoted 1 line

- fix C++ tests with recent kernels which introduced stricter

reconfigure

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

behavior
- fix a use-after-free bug in python bindings
- fix passing the event clock property to line requests in python

bindings

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

- fix a memory leak in tools
- make sure the string buffers in line-info and chip-info are big

enough to not

Quoted 1 line
Quoted 1 line
Quoted 1 line

truncate the strings they hold below the size accepted by the

kernel

Quoted 3 lines
Quoted 3 lines
Quoted 3 lines

- remove buggy and unnecessary flags sanitization from line-config
- fix python bindings installation with Makefile build
- sanitize the return values of GPIO ioctl()s which in some cases

may be

Quoted 2 lines
Quoted 2 lines
Quoted 2 lines

erroneously positive
- fix requesting lines by name with multiple entries in python

bindings

Quoted 4 lines
Quoted 4 lines
Quoted 2 lines

I admit I had to backport it to scarthgap to test (along with glib

2.80, etc),

Quoted 11 lines
Quoted 11 lines

but I didn't notice any problems and I'm able to start gpio-manager (systemd service) and control it over gpiocli.

Thanks a lot Bartosz!

Quoted 3 lines

---
Changes in v3:
- make dbus a runtime dependency for the 'dbus' and 'tests'

PACKAGECONFIG

Quoted 7 lines
Quoted 7 lines
Quoted 7 lines

switches
- make libgpiod-manager a runtime dependency for libgpiod-cli

Changes in v2:
- fix SRC_URI[sha256sum] value

 ...cxx-Migrate-C-tests-to-use-Catch2-v3.patch | 530

------------------

Quoted 6 lines
Quoted 6 lines
Quoted 6 lines
 .../libgpiod/libgpiod-2.x/gpio-manager.init   |  76 +++
 .../libgpiod/libgpiod-2.x/run-ptest           |  43 +-
 .../libgpiod/libgpiod_2.1.3.bb                |  33 --
 .../recipes-support/libgpiod/libgpiod_2.2.bb  |  99 ++++
 5 files changed, 206 insertions(+), 575 deletions(-)
 delete mode 100644

meta-oe/recipes-support/libgpiod/libgpiod-2.x/0001-bindings-cxx-Migrate-C-tests-to-use-Catch2-v3.patch

Quoted 1 line
Quoted 1 line
Quoted 1 line
 create mode 100644

meta-oe/recipes-support/libgpiod/libgpiod-2.x/gpio-manager.init

Quoted 1 line
Quoted 1 line
Quoted 1 line
 delete mode 100644 meta-oe/recipes-support/libgpiod/

libgpiod_2.1.3.bb

Quoted 9 lines
Quoted 6 lines
Quoted 1 line
 create mode 100644 meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb

--
Alexander Sverdlin
Siemens AG
www.siemens.com

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group. View/Reply Online (#113324):
https://lists.openembedded.org/g/openembedded-devel/message/113324
Mute This Topic: https://lists.openembedded.org/mt/109190169/4316185
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [ [email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Signature · 2 lines
Yoann Congal
Smile ECS - Tech expert
#5 lore raw
In reply to Martin Jansa
Quoted 4 lines · Martin Jansa

Doesn't this upgrade break python3-gpiod (meta-oe/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb)?

No. The release is fully backward compatible and python bindings v2.2.1 build fine against it.

Please note: the versioning of libgpiod and python3-gpiod is independent since v2.0.

Quoted 3 lines

In world builds I'm seeing new build failure which looks like caused by update libgpiod API:

[]

Quoted 14 lines

gpiod/ext/chip.c: In function 'chip_fd':
gpiod/ext/chip.c:48:32: error: implicit declaration of function 'gpiod_chip_get_fd'; did you mean 'gpiod_chip_get_line'? [-Wimplicit-function-declaration]

   48 |         return PyLong_FromLong(gpiod_chip_get_fd(self->chip));
      |                                ^~~~~~~~~~~~~~~~~
      |                                gpiod_chip_get_line

gpiod/ext/chip.c: In function 'chip_get_info':
gpiod/ext/chip.c:82:16: error: implicit declaration of function 'gpiod_chip_get_info'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]

   82 |         info = gpiod_chip_get_info(self->chip);
      |                ^~~~~~~~~~~~~~~~~~~
      |                gpiod_chip_get_lines
Quoted 8 lines

gpiod/ext/chip.c:82:14: error: assignment to 'struct gpiod_chip_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
82 | info = gpiod_chip_get_info(self->chip);
| ^
gpiod/ext/chip.c:87:38: error: implicit declaration of function 'gpiod_chip_info_get_name'; did you mean 'gpiod_chip_open_by_name'? [-Wimplicit-function-declaration]

What you're seeing here is caused by trying to build python bindings for libgpiod API v2 with headers from libgpiod v1.6.x. I'm not sure how you got there because the recipe sets the run-time dependency on libgpiod to version >= v2.1.

Bart

[0] https://git.openembedded.org/meta-openembedded/tree/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb#n19

#6 lore raw
Quoted 1 line

I'm not sure how you got there

bitbake python3-gpiod

it builds the 2.2 recipe:
bitbake -n python3-gpiod | grep gpiod.*do_compile
NOTE: Running task 1878 of 2433 (/OE/build/oe-core/meta-openembedded/meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb:do_compile)
NOTE: Running task 1886 of 2433 (/OE/build/oe-core/meta-openembedded/meta-oe/recipes-support/libgpiod/libgpiod_2.2.bb:do_compile_ptest_base)
NOTE: Running task 1984 of 2433 (/OE/build/oe-core/meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb:do_compile)
NOTE: Running task 2041 of 2433 (/OE/build/oe-core/meta-openembedded/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb:do_compile_ptest_base)

I don't use either libgpiod nor python3-gpiod, it's just one of new failures detected in my world builds after the libgpiod-2.2 was merged in master.

Quoted 50 lines · Bartosz Golaszewski
Quoted 4 lines · Martin Jansa

Doesn't this upgrade break python3-gpiod (meta-oe/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb)?

No. The release is fully backward compatible and python bindings v2.2.1 build fine against it.

Please note: the versioning of libgpiod and python3-gpiod is independent since v2.0.

Quoted 3 lines

In world builds I'm seeing new build failure which looks like caused by update libgpiod API:

[]

Quoted 14 lines

gpiod/ext/chip.c: In function 'chip_fd':
gpiod/ext/chip.c:48:32: error: implicit declaration of function 'gpiod_chip_get_fd'; did you mean 'gpiod_chip_get_line'? [-Wimplicit-function-declaration]

   48 |         return PyLong_FromLong(gpiod_chip_get_fd(self->chip));
      |                                ^~~~~~~~~~~~~~~~~
      |                                gpiod_chip_get_line

gpiod/ext/chip.c: In function 'chip_get_info':
gpiod/ext/chip.c:82:16: error: implicit declaration of function 'gpiod_chip_get_info'; did you mean 'gpiod_chip_get_lines'? [-Wimplicit-function-declaration]

   82 |         info = gpiod_chip_get_info(self->chip);
      |                ^~~~~~~~~~~~~~~~~~~
      |                gpiod_chip_get_lines
Quoted 8 lines

gpiod/ext/chip.c:82:14: error: assignment to 'struct gpiod_chip_info *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
82 | info = gpiod_chip_get_info(self->chip);
| ^
gpiod/ext/chip.c:87:38: error: implicit declaration of function 'gpiod_chip_info_get_name'; did you mean 'gpiod_chip_open_by_name'? [-Wimplicit-function-declaration]

What you're seeing here is caused by trying to build python bindings for libgpiod API v2 with headers from libgpiod v1.6.x. I'm not sure how you got there because the recipe sets the run-time dependency on libgpiod to version >= v2.1.

Bart

[0] https://git.openembedded.org/meta-openembedded/tree/meta-python/recipes-devtools/python/python3-gpiod_2.2.1.bb#n19

#7 lore raw
Quoted 5 lines · Martin Jansa
Quoted 2 lines

I'm not sure how you got there

bitbake python3-gpiod

There must be something more to it though as a simple 'bitbake python3-gpiod' works fine for me. Anything particular in the config?

Bart

#8 lore raw
Quoted 11 lines · Bartosz Golaszewski
Quoted 5 lines · Martin Jansa
Quoted 2 lines

I'm not sure how you got there

bitbake python3-gpiod

There must be something more to it though as a simple 'bitbake python3-gpiod' works fine for me. Anything particular in the config?

yeah it worked in AB CI and also my world build builds on different architectures but I am able to see a build
failure on one machine today which is new and runs ubuntu 20.04, I will share if I find more.

Quoted 1 line

Bart

#9 lore raw

My builds were on ubuntu-20.04 as well, nothing special in my config.

https://valkyrie.yoctoproject.org/#/builders/87/builds/16/steps/40/logs/stdio
seems to be from debian-12

Quoted 20 lines · Khem Raj
Quoted 11 lines · Bartosz Golaszewski
Quoted 5 lines · Martin Jansa
Quoted 2 lines

I'm not sure how you got there

bitbake python3-gpiod

There must be something more to it though as a simple 'bitbake python3-gpiod' works fine for me. Anything particular in the config?

yeah it worked in AB CI and also my world build builds on different architectures but I am able to see a build
failure on one machine today which is new and runs ubuntu 20.04, I will share if I find more.

Quoted 1 line

Bart

#11 lore raw
In reply to a message not in the archive

In some other world builds which do have e.g. multilib enabled it didn't get to do_compile as S is set incorrectly (should use BPN not PN, why not default BP?) for lib32-libgpiod:

ERROR: lib32-libgpiod-2.2-r0 do_populate_lic: QA Issue:
lib32-libgpiod: LIC_FILES_CHKSUM points to an invalid file:
lib32-libgpiod/2.2/sources-unpack/lib32-libgpiod-2.2/LICENSES/GPL-2.0-or-later.txt [license-checksum]

Quoted 36 lines · Martin Jansa via lists.openembedded.org

My builds were on ubuntu-20.04 as well, nothing special in my config.

https://valkyrie.yoctoproject.org/#/builders/87/builds/16/steps/40/logs/stdio
seems to be from debian-12

Quoted 10 lines · Khem Raj
Quoted 8 lines · Bartosz Golaszewski
Quoted 5 lines · Martin Jansa
Quoted 2 lines

I'm not sure how you got there

bitbake python3-gpiod

Quoted 10 lines
Quoted 3 lines

There must be something more to it though as a simple 'bitbake python3-gpiod' works fine for me. Anything particular in the config?

yeah it worked in AB CI and also my world build builds on different architectures but I am able to see a build
failure on one machine today which is new and runs ubuntu 20.04, I will share if I find more.

Quoted 1 line

Bart

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.
View/Reply Online (#113331): https://lists.openembedded.org/g/openembedded-devel/message/113331
Mute This Topic: https://lists.openembedded.org/mt/109190169/3617156
Group Owner: [email protected]
Unsubscribe: https://lists.openembedded.org/g/openembedded-devel/unsub [[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-