From 8a6e58692fbc12a22f0934ccd2c4ff90fbc64b3ec6294ae2c99d7949af7c8a51 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 13 Apr 2013 21:04:51 +0000 Subject: [PATCH] Compile with glib-2.36 OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-daemon?expand=0&rev=15 --- cdemu-daemon.changes | 6 ++++++ cdemu-daemon.spec | 4 +++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cdemu-daemon.changes b/cdemu-daemon.changes index 954d467..d654980 100644 --- a/cdemu-daemon.changes +++ b/cdemu-daemon.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Sat Apr 13 21:03:26 UTC 2013 - jengelh@inai.de + +- Resolve build failure with glib 2.36 by allowing deprecated + functions for the time being (-UG_DISABLE_DEPRECATED) + ------------------------------------------------------------------- Sat Dec 22 08:23:15 UTC 2012 - jengelh@inai.de diff --git a/cdemu-daemon.spec b/cdemu-daemon.spec index 0412b05..dd3fecc 100644 --- a/cdemu-daemon.spec +++ b/cdemu-daemon.spec @@ -58,9 +58,11 @@ that can be used by clients to control it. %patch -P 1 -p1 %build +# cdemu-daemon still uses deprecated g_thread_init, so use +# G_DISABLE_DEPRECATED. cmake . -DCMAKE_INSTALL_PREFIX:PATH="%_prefix" \ -DCMAKE_INSTALL_LIBEXECDIR:PATH="%_libexecdir" \ - -DCMAKE_C_FLAGS:STRING="%optflags"; + -DCMAKE_C_FLAGS:STRING="%optflags -UG_DISABLE_DEPRECATED"; make %{?_smp_mflags}; %install