build: require glib 2.56

When using glib < 2.55.1 there was a bug in GLib triggering a huge
amount of memory leaks in the normal ModemManager runtime. This has
caused multiple issues in multiple setups, and so the best way to make
sure it no longer happens is to require 2.56.

The 2.56.0 glib version is also the one provided by Ubuntu 18.04 LTS,
and so we can now say that this LTS release is the last one we support
in newer MM releases. The previous Ubuntu 16.04 LTS is already out of
the standard 5-year support.
This commit is contained in:
Aleksander Morgado
2021-04-29 20:54:13 +02:00
parent 25a1b28fbf
commit 0a7bfcfb42

View File

@@ -123,10 +123,8 @@ dnl-----------------------------------------------------------------------------
dnl Build dependencies dnl Build dependencies
dnl dnl
# NOTE! If using glib < 2.55.1, make sure you have backported the following patch to avoid GLIB_MIN_VERSION=2.56.0
# the daemon leaking a lot: https://gitlab.gnome.org/GNOME/glib/commit/37d9b0c6995f97ea0f744650aaf5179081f878ba GLIB_BUILD_SYMBOLS="-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_56 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_56 -DGLIB_DISABLE_DEPRECATION_WARNINGS"
GLIB_MIN_VERSION=2.48.0
GLIB_BUILD_SYMBOLS="-DGLIB_VERSION_MIN_REQUIRED=GLIB_VERSION_2_48 -DGLIB_VERSION_MAX_ALLOWED=GLIB_VERSION_2_48 -DGLIB_DISABLE_DEPRECATION_WARNINGS"
PKG_CHECK_MODULES(MM, PKG_CHECK_MODULES(MM,
glib-2.0 >= $GLIB_MIN_VERSION glib-2.0 >= $GLIB_MIN_VERSION