diff options
-rw-r--r-- | recipes-core/glib-2.0/files/gdummyfile_weirderror.patch | 24 | ||||
-rw-r--r-- | recipes-core/glib-2.0/glib-2.0_%.bbappend | 3 |
2 files changed, 27 insertions, 0 deletions
diff --git a/recipes-core/glib-2.0/files/gdummyfile_weirderror.patch b/recipes-core/glib-2.0/files/gdummyfile_weirderror.patch new file mode 100644 index 0000000..68e6152 --- /dev/null +++ b/recipes-core/glib-2.0/files/gdummyfile_weirderror.patch @@ -0,0 +1,24 @@ +Index: glib-2.40.0/gio/gdummyfile.c +=================================================================== +--- glib-2.40.0.orig/gio/gdummyfile.c ++++ glib-2.40.0/gio/gdummyfile.c +@@ -454,7 +454,8 @@ unescape_string (const gchar *escaped_st + result = g_malloc (escaped_string_end - escaped_string + 1); + + out = result; +- for (in = escaped_string; in < escaped_string_end; in++) ++ in = escaped_string; ++ for (; in < escaped_string_end; in++) + { + character = *in; + if (*in == '%') +@@ -551,7 +552,8 @@ _g_decode_uri (const char *uri) + + decoded->scheme = g_malloc (p - uri); + out = decoded->scheme; +- for (in = uri; in < p - 1; in++) ++ in = uri; ++ for (; in < p - 1; in++) + *out++ = g_ascii_tolower (*in); + *out = 0; + diff --git a/recipes-core/glib-2.0/glib-2.0_%.bbappend b/recipes-core/glib-2.0/glib-2.0_%.bbappend index a383441..3c98287 100644 --- a/recipes-core/glib-2.0/glib-2.0_%.bbappend +++ b/recipes-core/glib-2.0/glib-2.0_%.bbappend @@ -1,2 +1,5 @@ +SRC_URI_append_darwin = " file://gdummyfile_weirderror.patch \ + " EXTRA_OECONF_darwin = "--enable-included-printf=yes ${CORECONF}" FILES_${PN}_append_darwin = " ${libdir}/charset.alias" +FILESEXTRAPATHS_prepend := "${THISDIR}/files:" |