Compile with glib-2.36

OBS-URL: https://build.opensuse.org/package/show/filesystems/cdemu-daemon?expand=0&rev=15
This commit is contained in:
Jan Engelhardt 2013-04-13 21:04:51 +00:00 committed by Git OBS Bridge
parent 344b25f689
commit 8a6e58692f
2 changed files with 9 additions and 1 deletions

View File

@ -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

View File

@ -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