Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:olh:xen-4.17
xen
qemu_xen.glib.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File qemu_xen.glib.patch of Package xen
From: Olaf Hering <olaf@aepfle.de> Date: Sat, 11 Sep 2021 15:43:25 +0200 Subject: glib [ 306s] ERROR: glib-2.56 gthread-2.0 is required to compile QEMU Not true. 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 @@ -2137,25 +2137,25 @@ main(void) return 0; } EOF if ! compile_prog "" "-libverbs"; then QEMU_CFLAGS="$QEMU_CFLAGS -DLEGACY_RDMA_REG_MR" fi fi ########################################## # glib support probe -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 /*
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor