File qemu.glib.patch of Package qemu-7.2

From: Olaf Hering <olaf@aepfle.de>
Date: Sat, 8 Jan 2022 11:11:04 +0100
Subject: glib

Signed-off-by: Olaf Hering <olaf@aepfle.de>
---
 configure             | 2 +-
 include/glib-compat.h | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

--- a/configure
+++ b/configure
@@ -1454,25 +1454,25 @@ fi
 ##########################################
 # pkg-config probe
 
 if ! has "$pkg_config_exe"; then
   error_exit "pkg-config binary '$pkg_config_exe' not found"
 fi
 
 ##########################################
 # glib support probe
 
 # When bumping glib_req_ver, please check also whether we should increase
 # the _WIN32_WINNT setting in osdep.h according to the value from glib
-glib_req_ver=2.56
+glib_req_ver=2.48
 glib_modules=gthread-2.0
 if test "$modules" = yes; then
     glib_modules="$glib_modules gmodule-export-2.0"
 elif test "$plugins" = "yes"; then
     glib_modules="$glib_modules gmodule-no-export-2.0"
 fi
 
 for i in $glib_modules; do
     if $pkg_config --atleast-version=$glib_req_ver $i; then
         glib_cflags=$($pkg_config --cflags $i)
         glib_libs=$($pkg_config --libs $i)
     else
--- a/include/glib-compat.h
+++ b/include/glib-compat.h
@@ -10,30 +10,30 @@
  *
  * This work is licensed under the terms of the GNU GPL, version 2 or later.
  * See the COPYING file in the top-level directory.
  *
  */
 
 #ifndef QEMU_GLIB_COMPAT_H
 #define QEMU_GLIB_COMPAT_H
 
 /* Ask for warnings for anything that was marked deprecated in
  * the defined version, or before. It is a candidate for rewrite.
  */
-#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_56
+#define GLIB_VERSION_MIN_REQUIRED GLIB_VERSION_2_48
 
 /* Ask for warnings if code tries to use function that did not
  * exist in the defined version. These risk breaking builds
  */
-#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_56
+#define GLIB_VERSION_MAX_ALLOWED GLIB_VERSION_2_48
 
 #pragma GCC diagnostic push
 #pragma GCC diagnostic ignored "-Wdeprecated-declarations"
 
 #include <glib.h>
 #if defined(G_OS_UNIX)
 #include <glib-unix.h>
 #include <sys/types.h>
 #include <pwd.h>
 #endif
 
 /*
openSUSE Build Service is sponsored by