Skip to content

build: detach the libgpiod API version from the libgpiod package version

Bartosz Golaszewski linux-gpio 1 version Applied

Status from this message: Applied, thanks!

Get series with b4
b4 am [email protected] change-id 20250901-api-version-detach-67d8e984d529

Versions newest first

  1. v1 Latest7 patches 2 repliesApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/7bindings: cxx: move misc.hpp inclusion to the correct placebindings/cxx/gpiod.hpp bindings/cxx/gpiodcxx/line-request.hpp+1 -20 replies
2/7build: define a separate API version for the core C libraryconfigure.ac+4 -00 replies
3/7core: change the behavior of gpiod_api_version()lib/misc.c+1 -10 replies
4/7tests: update library API version string testsbindings/cxx/tests/tests-misc.cpp bindings/glib/tests/tests-misc.c bindings/python/tests/tests_module.py +1 more+4 -40 replies
5/7tools: display C API *and* libgpiod package version for '-v'tools/tools-common.c+2 -10 replies
6/7dbus: manager: display C API *and* libgpiod package version for '-v'dbus/manager/gpio-manager.c+3 -20 replies
7/7dbus: gpiocli: display the libgpiod package version for --versiondbus/client/gpiocli.c+1 -10 replies

Reviews trailers per patch

None of the 7 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchErik Wierich
SeriesA-b
1/7
2/7
3/7
4/7
5/7
6/7
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH libgpiod 0/7] build: detach the libgpiod API version from the libgpiod package version

The versioning of libgpiod has become quite messy due to the rapid evolution of the project in its initial stages (which forced an ABI version change without bumping the API) and later extension with several bindings and tools kept in the same repository.

Currently the library API version and the package version are the same but we're at a stage where the core C API will most likely remain quite stable but we're still extending other features of the project, like the DBus API, tools and possibly other bindings. Bumping the C API version because we added new features to included programs makes no sense so this series proposes to detach the core C API version from the libgpiod package version (except for the major version updates but I don't expect there to be one anytime soon).

The core C API will also apply to C++ and GLib bindings as they track the C API closely. Rust and Python bindings already have their own API versions.

---
Bartosz Golaszewski (7):
bindings: cxx: move misc.hpp inclusion to the correct place
build: define a separate API version for the core C library
core: change the behavior of gpiod_api_version()
tests: update library API version string tests
tools: display C API *and* libgpiod package version for '-v'
dbus: manager: display C API *and* libgpiod package version for '-v'
dbus: gpiocli: display the libgpiod package version for --version

 bindings/cxx/gpiod.hpp                 | 1 +
 bindings/cxx/gpiodcxx/line-request.hpp | 2 --
 bindings/cxx/tests/tests-misc.cpp      | 2 +-
 bindings/glib/tests/tests-misc.c       | 2 +-
 bindings/python/tests/tests_module.py  | 2 +-
 configure.ac                           | 4 ++++
 dbus/client/gpiocli.c                  | 2 +-
 dbus/manager/gpio-manager.c            | 5 +++--
 lib/misc.c                             | 2 +-
 tests/tests-misc.c                     | 2 +-
 tools/tools-common.c                   | 3 ++-
 11 files changed, 16 insertions(+), 11 deletions(-)

---
base-commit: d0006cc3d57b0e8fe090a1596934340c34e69ab4
change-id: 20250901-api-version-detach-67d8e984d529

Best regards,

Signature · 1 line
Bartosz Golaszewski <[email protected]>