File: gtk-deprecated.patch

package info (click to toggle)
mdk 1.3.1%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,016 kB
  • sloc: ansic: 22,682; sh: 6,167; lisp: 1,118; lex: 830; makefile: 582; yacc: 288; python: 124
file content (37 lines) | stat: -rw-r--r-- 921 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
Description: Fix the build with GLib 2.26 and later.
Forwarded: no
Author: Cyril Brulebois <kibi@debian.org>
Author: Peter Pentchev <roam@ringlet.net>
Last-Update: 2015-09-15

--- a/configure.ac
+++ b/configure.ac
@@ -44,7 +44,7 @@
 esac], [werr=false])
 
 if test x$werr = xtrue; then
-   AM_CFLAGS="$AM_CFLAGS -Werror"
+   AM_CFLAGS="$AM_CFLAGS -Werror -Wno-error=deprecated-declarations"
 fi
 
 dnl i18n stuff
@@ -119,7 +119,7 @@
 AM_CONDITIONAL(MAKE_GUILE, test x$wguile = xtrue)
 
 LIBS="$LIBS $GLIB_LIBS"
-AM_CFLAGS="$AM_CFLAGS $GLIB_CFLAGS -DG_DISABLE_DEPRECATED"
+AM_CFLAGS="$AM_CFLAGS $GLIB_CFLAGS"
 
 dnl Check if the gtk gui is required
 AC_ARG_ENABLE(gui,
@@ -138,10 +138,6 @@
                   gui=false])
 fi
 
-if test x$gui = xtrue; then
-AM_CFLAGS="$AM_CFLAGS -DGTK_DISABLE_DEPRECATED -DGDK_DISABLE_DEPRECATED"
-fi
-
 dnl Are we in a darwin system?
 case "${host_os}" in
  darwin*) darwin_system=true;;