summaryrefslogtreecommitdiffstats
path: root/meta/recipes-gnome/gtk+/gtk+-2.16.6/disable-gio-png-sniff-test.diff
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-gnome/gtk+/gtk+-2.16.6/disable-gio-png-sniff-test.diff')
-rw-r--r--meta/recipes-gnome/gtk+/gtk+-2.16.6/disable-gio-png-sniff-test.diff99
1 files changed, 0 insertions, 99 deletions
diff --git a/meta/recipes-gnome/gtk+/gtk+-2.16.6/disable-gio-png-sniff-test.diff b/meta/recipes-gnome/gtk+/gtk+-2.16.6/disable-gio-png-sniff-test.diff
deleted file mode 100644
index c777b8e8e3..0000000000
--- a/meta/recipes-gnome/gtk+/gtk+-2.16.6/disable-gio-png-sniff-test.diff
+++ /dev/null
@@ -1,99 +0,0 @@
1Upstream-Status: Inappropriate [embedded specific]
2
3Index: gtk+-2.14.2/configure.in
4===================================================================
5--- gtk+-2.14.2.orig/configure.in 2008-09-23 16:32:42.000000000 +0100
6+++ gtk+-2.14.2/configure.in 2008-09-23 16:37:13.000000000 +0100
7@@ -1025,48 +1025,50 @@
8 # check one of the variables here
9 AM_CONDITIONAL(INCLUDE_GDIPLUS, [test x"$INCLUDE_gdip_ico" = xyes])
10
11-if test x$gio_can_sniff = x; then
12- AC_MSG_CHECKING([if gio can sniff png])
13- gtk_save_LIBS="$LIBS"
14- gtk_save_CFLAGS="$CFLAGS"
15- LIBS="`$PKG_CONFIG --libs gio-2.0`"
16- CFLAGS="`$PKG_CONFIG --cflags gio-2.0`"
17- AC_RUN_IFELSE([AC_LANG_SOURCE([[
18- #include <gio/gio.h>
19- static const gsize data_size = 159;
20- static const guint8 data[] =
21- {
22- 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
23- 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
24- 0x08, 0x02, 0x00, 0x00, 0x00, 0x90, 0x77, 0x53, 0xde, 0x00, 0x00, 0x00,
25- 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00,
26- 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00,
27- 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74,
28- 0x49, 0x4d, 0x45, 0x07, 0xd8, 0x07, 0x0f, 0x10, 0x08, 0x15, 0x61, 0xd8,
29- 0x35, 0x37, 0x00, 0x00, 0x00, 0x19, 0x74, 0x45, 0x58, 0x74, 0x43, 0x6f,
30- 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
31- 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x47, 0x49, 0x4d, 0x50, 0x57,
32- 0x81, 0x0e, 0x17, 0x00, 0x00, 0x00, 0x0c, 0x49, 0x44, 0x41, 0x54, 0x08,
33- 0xd7, 0x63, 0xf8, 0xff, 0xff, 0x3f, 0x00, 0x05, 0xfe, 0x02, 0xfe, 0xdc,
34- 0xcc, 0x59, 0xe7, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae,
35- 0x42, 0x60, 0x82
36- };
37- int
38- main (int argc, char **argv)
39- {
40- char *content_type;
41- char *image_png;
42- content_type = g_content_type_guess (NULL, data, data_size, NULL);
43- image_png = g_content_type_from_mime_type ("image/png");
44- return !!strcmp (content_type, image_png);
45- }]])],
46- [gio_can_sniff=yes
47- AC_DEFINE(GDK_PIXBUF_USE_GIO_MIME, 1, [Define if gio can sniff image data])],
48- [gio_can_sniff=no])
49- AC_MSG_RESULT($gio_can_sniff)
50- LIBS="$gtk_save_LIBS"
51- CFLAGS="$gtk_save_CFLAGS"
52-fi
53+# Disabled due to cross-compile
54+#if test x$gio_can_sniff = x; then
55+# AC_MSG_CHECKING([if gio can sniff png])
56+# gtk_save_LIBS="$LIBS"
57+# gtk_save_CFLAGS="$CFLAGS"
58+# LIBS="`$PKG_CONFIG --libs gio-2.0`"
59+# CFLAGS="`$PKG_CONFIG --cflags gio-2.0`"
60+# AC_RUN_IFELSE([AC_LANG_SOURCE([[
61+# #include <gio/gio.h>
62+# static const gsize data_size = 159;
63+# static const guint8 data[] =
64+# {
65+# 0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d,
66+# 0x49, 0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x01,
67+# 0x08, 0x02, 0x00, 0x00, 0x00, 0x90, 0x77, 0x53, 0xde, 0x00, 0x00, 0x00,
68+# 0x01, 0x73, 0x52, 0x47, 0x42, 0x00, 0xae, 0xce, 0x1c, 0xe9, 0x00, 0x00,
69+# 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00,
70+# 0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74,
71+# 0x49, 0x4d, 0x45, 0x07, 0xd8, 0x07, 0x0f, 0x10, 0x08, 0x15, 0x61, 0xd8,
72+# 0x35, 0x37, 0x00, 0x00, 0x00, 0x19, 0x74, 0x45, 0x58, 0x74, 0x43, 0x6f,
73+# 0x6d, 0x6d, 0x65, 0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65,
74+# 0x64, 0x20, 0x77, 0x69, 0x74, 0x68, 0x20, 0x47, 0x49, 0x4d, 0x50, 0x57,
75+# 0x81, 0x0e, 0x17, 0x00, 0x00, 0x00, 0x0c, 0x49, 0x44, 0x41, 0x54, 0x08,
76+# 0xd7, 0x63, 0xf8, 0xff, 0xff, 0x3f, 0x00, 0x05, 0xfe, 0x02, 0xfe, 0xdc,
77+# 0xcc, 0x59, 0xe7, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae,
78+# 0x42, 0x60, 0x82
79+# };
80+# int
81+# main (int argc, char **argv)
82+# {
83+# char *content_type;
84+# char *image_png;
85+# content_type = g_content_type_guess (NULL, data, data_size, NULL);
86+# image_png = g_content_type_from_mime_type ("image/png");
87+# return !!strcmp (content_type, image_png);
88+# }]])],
89+# [gio_can_sniff=yes
90+# [gio_can_sniff=no])
91+# AC_MSG_RESULT($gio_can_sniff)
92+# LIBS="$gtk_save_LIBS"
93+# CFLAGS="$gtk_save_CFLAGS"
94+#fi
95+
96+AC_DEFINE(GDK_PIXBUF_USE_GIO_MIME, 1, [Define if gio can sniff image data])],
97
98 #
99 # Allow building some or all immodules included