From 5ca61b6780eba5865ab9d5a948b166d23cc18e28 Mon Sep 17 00:00:00 2001 From: Rasmus Thomsen Date: Sun, 16 Sep 2018 18:14:50 +0200 Subject: [PATCH] bolt: fix FTBFS with glib-2.58 resolves #2825 --- ...a276415abb4c0ae7031271c2d5703c435086.patch | 32 +++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 srcpkgs/bolt/patches/a9fda276415abb4c0ae7031271c2d5703c435086.patch diff --git a/srcpkgs/bolt/patches/a9fda276415abb4c0ae7031271c2d5703c435086.patch b/srcpkgs/bolt/patches/a9fda276415abb4c0ae7031271c2d5703c435086.patch new file mode 100644 index 00000000000..978011c5f02 --- /dev/null +++ b/srcpkgs/bolt/patches/a9fda276415abb4c0ae7031271c2d5703c435086.patch @@ -0,0 +1,32 @@ +From a9fda276415abb4c0ae7031271c2d5703c435086 Mon Sep 17 00:00:00 2001 +From: Christian Kellner +Date: Fri, 15 Jun 2018 15:43:54 +0200 +Subject: [PATCH] test: common: no enum auto cleanup for glib > 2.57 + +Newer glib (starting with 2.57) have gained support for autoptr +cleanup functions for GEnumClass and GFlagsClass, so we don't +need to define our own ones anymore. +This change was already done to bolt-enums.c, but also is needed +for the test. +--- + tests/test-common.c | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/tests/test-common.c b/tests/test-common.c +index c44d8ae..eb50a81 100644 +--- tests/test-common.c ++++ tests/test-common.c +@@ -43,8 +43,10 @@ + #include + #include /* unlinkat */ + ++#if !GLIB_CHECK_VERSION (2, 57, 0) + G_DEFINE_AUTOPTR_CLEANUP_FUNC (GEnumClass, g_type_class_unref); + G_DEFINE_AUTOPTR_CLEANUP_FUNC (GFlagsClass, g_type_class_unref); ++#endif + + static void + cleanup_dir (DIR *d) +-- +2.18.0 +