[igt-dev] [PATCH i-g-t] igt: Require minimum version of glib

Antonio Argenziano antonio.argenziano at intel.com
Mon Jul 16 19:50:42 UTC 2018


Patch caea9c5b3aa1191c0152d7c0f22a94efca4fd048 introduced the use of
memfd_create which has been implemented in glib 2.27 [1].

[1] https://sourceware.org/ml/libc-announce/2018/msg00000.html

Suggested-by: Michel Thierry <michel.thierry at intel.com>
Cc: Michel Thierry <michel.thierry at intel.com>
Cc: Chris Wilson <chris at chris-wilson.co.uk>
Signed-off-by: Antonio Argenziano <antonio.argenziano at intel.com>
---
 configure.ac | 2 +-
 meson.build  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/configure.ac b/configure.ac
index 195963d4..3f7a8d36 100644
--- a/configure.ac
+++ b/configure.ac
@@ -178,7 +178,7 @@ PKG_CHECK_MODULES(XRANDR, xrandr >= 1.3, AC_DEFINE(HAVE_XRANDR, 1, [Have libXran
 # for testdisplay
 PKG_CHECK_MODULES(CAIRO, [cairo >= 1.12.0])
 PKG_CHECK_MODULES(LIBUDEV, [libudev])
-PKG_CHECK_MODULES(GLIB, [glib-2.0])
+PKG_CHECK_MODULES(GLIB, [glib-2.0 >= 2.27.0])
 PKG_CHECK_MODULES(GSL, [gsl], [gsl=yes], [gsl=no])
 AM_CONDITIONAL(HAVE_GSL, [test "x$gsl" = xyes])
 
diff --git a/meson.build b/meson.build
index 8d4d75cf..4a701955 100644
--- a/meson.build
+++ b/meson.build
@@ -113,7 +113,7 @@ build_info += 'Valgrind annotations: ' + valgrindinfo
 
 cairo = dependency('cairo', version : '>1.12.0', required : true)
 libudev = dependency('libudev', required : true)
-glib = dependency('glib-2.0', required : true)
+glib = dependency('glib-2.0', version : '>=2.27.0', required : true)
 
 gsl = null_dep
 alsa = null_dep
-- 
2.16.2



More information about the igt-dev mailing list