[Buildroot] [PATCH 1/1] package/libgpiod: bump to version 2.2.2

Dario Binacchi dario.binacchi at amarulasolutions.com
Wed Oct 22 16:29:26 UTC 2025


The removed patch has been merged in version 2.0.

Update license file hash due to:
- relicense C++ bindings under LGPL-2.1-or-later
- make the project REUSE-compliant

Release notes:
https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/tree/NEWS

Signed-off-by: Dario Binacchi <dario.binacchi at amarulasolutions.com>
---
 .checkpackageignore                           |  1 -
 ...nfigure-switch-for-building-examples.patch | 91 -------------------
 package/libgpiod/libgpiod.hash                |  4 +-
 package/libgpiod/libgpiod.mk                  |  2 +-
 4 files changed, 3 insertions(+), 95 deletions(-)
 delete mode 100644 package/libgpiod/0001-build-add-a-configure-switch-for-building-examples.patch

diff --git a/.checkpackageignore b/.checkpackageignore
index e8c97c2d63dc..90d117dddf3c 100644
--- a/.checkpackageignore
+++ b/.checkpackageignore
@@ -562,7 +562,6 @@ package/libftdi/0002-libftdi.pc-requires-libusb-fix-static-build.patch lib_patch
 package/libfuse/0001-fix-aarch64-build.patch lib_patch.Upstream
 package/libfuse/0002-util-ulockmgr_server-c-conditionally-define-closefrom-fix-glibc-2-34.patch lib_patch.Upstream
 package/libgcrypt/0001-configure.ac-add-an-option-to-disable-tests.patch lib_patch.Upstream
-package/libgpiod/0001-build-add-a-configure-switch-for-building-examples.patch lib_patch.Upstream
 package/libgsm/0001-Misc-fixes-from-Archlinux.patch lib_patch.Upstream
 package/libgtk2/0001-reduce-dependencies.patch lib_patch.Upstream
 package/libgtk3/0001-Remove-Gdk-dependency-from-gtk-encode-symbolic-svg.patch lib_patch.Upstream
diff --git a/package/libgpiod/0001-build-add-a-configure-switch-for-building-examples.patch b/package/libgpiod/0001-build-add-a-configure-switch-for-building-examples.patch
deleted file mode 100644
index f1a853a6f863..000000000000
--- a/package/libgpiod/0001-build-add-a-configure-switch-for-building-examples.patch
+++ /dev/null
@@ -1,91 +0,0 @@
-From 5e9e7223a3633ee82b557d21b1f18aa15becd450 Mon Sep 17 00:00:00 2001
-From: Bartosz Golaszewski <bgolaszewski at baylibre.com>
-Date: Mon, 7 Dec 2020 20:38:30 +0100
-Subject: build: add a configure switch for building examples
-
-Example code for bindings is currently always built if bindings are
-enabled. Make it conditional with a new configure switch.
-
-Signed-off-by: Bartosz Golaszewski <bgolaszewski at baylibre.com>
-Reviewed-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
-[Retrieved from:
-https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?id=5e9e7223a3633ee82b557d21b1f18aa15becd450]
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
----
- bindings/cxx/Makefile.am    |  8 +++++++-
- bindings/python/Makefile.am | 10 ++++++++--
- configure.ac                |  6 ++++++
- 3 files changed, 21 insertions(+), 3 deletions(-)
-
-diff --git a/bindings/cxx/Makefile.am b/bindings/cxx/Makefile.am
-index 5c40ceb..87463b0 100644
---- a/bindings/cxx/Makefile.am
-+++ b/bindings/cxx/Makefile.am
-@@ -18,10 +18,16 @@ include_HEADERS = gpiod.hpp
- pkgconfigdir = $(libdir)/pkgconfig
- pkgconfig_DATA = libgpiodcxx.pc
- 
--SUBDIRS = . examples
-+SUBDIRS = .
- 
- if WITH_TESTS
- 
- SUBDIRS += tests
- 
- endif
-+
-+if WITH_EXAMPLES
-+
-+SUBDIRS += examples
-+
-+endif
-diff --git a/bindings/python/Makefile.am b/bindings/python/Makefile.am
-index 124f152..5403bcb 100644
---- a/bindings/python/Makefile.am
-+++ b/bindings/python/Makefile.am
-@@ -6,8 +6,6 @@
- # Copyright (C) 2017-2018 Bartosz Golaszewski <bartekgola at gmail.com>
- #
- 
--SUBDIRS = . examples
--
- pyexec_LTLIBRARIES = gpiod.la
- 
- gpiod_la_SOURCES = gpiodmodule.c
-@@ -17,8 +15,16 @@ gpiod_la_CFLAGS += -Wall -Wextra -g -std=gnu89 $(PYTHON_CPPFLAGS)
- gpiod_la_LDFLAGS = -module -avoid-version
- gpiod_la_LIBADD = $(top_builddir)/lib/libgpiod.la $(PYTHON_LIBS)
- 
-+SUBDIRS = .
-+
- if WITH_TESTS
- 
- SUBDIRS += tests
- 
- endif
-+
-+if WITH_EXAMPLES
-+
-+SUBDIRS += examples
-+
-+endif
-diff --git a/configure.ac b/configure.ac
-index 57c99a8..90a6324 100644
---- a/configure.ac
-+++ b/configure.ac
-@@ -164,6 +164,12 @@ then
- 	fi
- fi
- 
-+AC_ARG_ENABLE([examples],
-+	[AS_HELP_STRING([--enable-examples], [enable building code examples[default=no]])],
-+	[if test "x$enableval" = xyes; then with_examples=true; fi],
-+	[with_examples=false])
-+AM_CONDITIONAL([WITH_EXAMPLES], [test "x$with_examples" = xtrue])
-+
- AC_ARG_ENABLE([bindings-cxx],
- 	[AC_HELP_STRING([--enable-bindings-cxx],
- 		[enable C++ bindings [default=no]])],
--- 
-cgit 1.2.3-1.el7
-
diff --git a/package/libgpiod/libgpiod.hash b/package/libgpiod/libgpiod.hash
index 969ff4b8fab2..24bcfafc6c73 100644
--- a/package/libgpiod/libgpiod.hash
+++ b/package/libgpiod/libgpiod.hash
@@ -1,4 +1,4 @@
 # From https://www.kernel.org/pub/software/libs/libgpiod/sha256sums.asc
-sha256  ae280f697bf035a1fb780c9972e5c81d0d2712b7ab6124fb3fba24619daa72bc  libgpiod-1.6.5.tar.xz
+sha256  7e3bff0209d75fbca2e9fcff1fd5f07cc58b543e129e08b6d4bb1e4a56cfec0d  libgpiod-2.2.2.tar.xz
 # Hash for license file
-sha256  ce64d5f7b49ea6d80fdb6d4cdee6839d1a94274f7493dc797c3b55b65ec8e9ed  COPYING
+sha256  f646ad5159efb51c1130a4b43c31f0759750b1e254d2acf510f368ee2e2085c3  COPYING
diff --git a/package/libgpiod/libgpiod.mk b/package/libgpiod/libgpiod.mk
index f669643b3941..1dee09c77db6 100644
--- a/package/libgpiod/libgpiod.mk
+++ b/package/libgpiod/libgpiod.mk
@@ -6,7 +6,7 @@
 
 # Be careful when bumping versions.
 # Dependency on kernel header versions may change.
-LIBGPIOD_VERSION = 1.6.5
+LIBGPIOD_VERSION = 2.2.2
 LIBGPIOD_SOURCE = libgpiod-$(LIBGPIOD_VERSION).tar.xz
 LIBGPIOD_SITE = https://www.kernel.org/pub/software/libs/libgpiod
 LIBGPIOD_LICENSE = LGPL-2.1+
-- 
2.43.0



More information about the buildroot mailing list