Skip to contentSkip to conversation

build: bump required GLib version for tests to 2.74

PATCH Applied Bartosz Golaszewski 1 participant 3 messages Aug 26, 2025 – Sep 1, 2025 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 build: bump required GLib version for tests to 2.74

From: Bartosz Golaszewski <[email protected]>

Since commit c116b6f6f118 ("tests: add a test-case checking line-config memory usage") we're using a symbol - G_TEST_SUBPROCESS_DEFAULT - that's only available in GLib v2.74 and later. This version is already almost three years old so should be widely available. Bump the required version in configure.ac.

---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configure.ac +2 -2
index 9b6c862..fe96739 100644
@@ -157,8 +157,8 @@ then
 	PKG_CHECK_MODULES([MOUNT], [mount >= 2.33.1])
 
 	# For core library tests
-	PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.50])
-	PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.50])
+	PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.74])
+	PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.74])
 
 	AC_CHECK_FUNC([atexit], [], [FUNC_NOT_FOUND_LIB([atexit])])
 	AC_CHECK_FUNC([asprintf], [], [FUNC_NOT_FOUND_LIB([asprintf])])
Signature · 1 line
2.48.1
#1 lore raw
Quoted 10 lines · Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Since commit c116b6f6f118 ("tests: add a test-case checking line-config memory usage") we're using a symbol - G_TEST_SUBPROCESS_DEFAULT - that's only available in GLib v2.74 and later. This version is already almost three years old so should be widely available. Bump the required version in configure.ac.

Oh and I forgot:

Quoted 22 lines
---
 configure.ac | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
configure.ac +2 -3
index 9b6c862..fe96739 100644
@@ -157,8 +157,8 @@ then
        PKG_CHECK_MODULES([MOUNT], [mount >= 2.33.1])
 
        # For core library tests
-       PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.50])
-       PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.50])
+       PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.74])
+       PKG_CHECK_MODULES([GIO], [gio-2.0 >= 2.74])
 
        AC_CHECK_FUNC([atexit], [], [FUNC_NOT_FOUND_LIB([atexit])])
        AC_CHECK_FUNC([asprintf], [], [FUNC_NOT_FOUND_LIB([asprintf])])
--

2.48.1

author Applied
#2 lore raw
In reply to Bartosz Golaszewski

From: Bartosz Golaszewski <[email protected]>

Quoted 8 lines · Bartosz Golaszewski

Since commit c116b6f6f118 ("tests: add a test-case checking line-config memory usage") we're using a symbol - G_TEST_SUBPROCESS_DEFAULT - that's only available in GLib v2.74 and later. This version is already almost three years old so should be widely available. Bump the required version in configure.ac.

[...]

Applied, thanks!

[1/1] build: bump required GLib version for tests to 2.74

      https://git.kernel.org/brgl/libgpiod/c/5e744bf56d84947203b191a79c2e505bcf8d9900

Best regards,

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