diff options
author | Dave Cobbley <david.j.cobbley@linux.intel.com> | 2018-08-14 10:05:37 -0700 |
---|---|---|
committer | Brad Bishop <bradleyb@fuzziesquirrel.com> | 2018-08-22 21:26:31 -0400 |
commit | eb8dc40360f0cfef56fb6947cc817a547d6d9bc6 (patch) | |
tree | de291a73dc37168da6370e2cf16c347d1eba9df8 /import-layers/yocto-poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/fatal-loader.patch | |
parent | 9c3cf826d853102535ead04cebc2d6023eff3032 (diff) | |
download | blackbird-openbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.tar.gz blackbird-openbmc-eb8dc40360f0cfef56fb6947cc817a547d6d9bc6.zip |
[Subtree] Removing import-layers directory
As part of the move to subtrees, need to bring all the import layers
content to the top level.
Change-Id: I4a163d10898cbc6e11c27f776f60e1a470049d8f
Signed-off-by: Dave Cobbley <david.j.cobbley@linux.intel.com>
Signed-off-by: Brad Bishop <bradleyb@fuzziesquirrel.com>
Diffstat (limited to 'import-layers/yocto-poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/fatal-loader.patch')
-rw-r--r-- | import-layers/yocto-poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/fatal-loader.patch | 92 |
1 files changed, 0 insertions, 92 deletions
diff --git a/import-layers/yocto-poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/fatal-loader.patch b/import-layers/yocto-poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/fatal-loader.patch deleted file mode 100644 index 7d0d54baf..000000000 --- a/import-layers/yocto-poky/meta/recipes-gnome/gdk-pixbuf/gdk-pixbuf/fatal-loader.patch +++ /dev/null @@ -1,92 +0,0 @@ -From b6a7b30522455cab39a0b9ea8463313380146e70 Mon Sep 17 00:00:00 2001 -From: Ross Burton <ross.burton@intel.com> -Date: Tue, 1 Apr 2014 17:23:36 +0100 -Subject: [PATCH 3/4] gdk-pixbuf: add an option so that loader errors are fatal - -If an environment variable is specified set the return value from main() to -non-zero if the loader had errors (missing libraries, generally). - -Upstream-Status: Pending -Signed-off-by: Ross Burton <ross.burton@intel.com> - ---- - gdk-pixbuf/queryloaders.c | 19 +++++++++++++++---- - 1 file changed, 15 insertions(+), 4 deletions(-) - -diff --git a/gdk-pixbuf/queryloaders.c b/gdk-pixbuf/queryloaders.c -index a81c804..350bec8 100644 ---- a/gdk-pixbuf/queryloaders.c -+++ b/gdk-pixbuf/queryloaders.c -@@ -146,7 +146,7 @@ write_loader_info (GString *contents, const char *path, GdkPixbufFormat *info) - g_string_append_c (contents, '\n'); - } - --static void -+static gboolean - query_module (GString *contents, const char *dir, const char *file) - { - char *path; -@@ -155,6 +155,7 @@ query_module (GString *contents, const char *dir, const char *file) - void (*fill_vtable) (GdkPixbufModule *module); - gpointer fill_info_ptr; - gpointer fill_vtable_ptr; -+ gboolean ret = TRUE; - - if (g_path_is_absolute (file)) - path = g_strdup (file); -@@ -204,10 +205,13 @@ query_module (GString *contents, const char *dir, const char *file) - g_module_error()); - else - g_fprintf (stderr, "Cannot load loader %s\n", path); -+ ret = FALSE; - } - if (module) - g_module_close (module); - g_free (path); -+ -+ return ret; - } - - #ifdef G_OS_WIN32 -@@ -257,6 +261,7 @@ int main (int argc, char **argv) - GString *contents; - gchar *cache_file = NULL; - gint first_file = 1; -+ gboolean success = TRUE; - - #ifdef G_OS_WIN32 - gchar *libdir; -@@ -370,7 +375,9 @@ int main (int argc, char **argv) - } - modules = g_list_sort (modules, (GCompareFunc)strcmp); - for (l = modules; l != NULL; l = l->next) -- query_module (contents, path, l->data); -+ if (!query_module (contents, path, l->data)) -+ success = FALSE; -+ - g_list_free_full (modules, g_free); - #else - g_string_append_printf (contents, "# dynamic loading of modules not supported\n"); -@@ -385,7 +392,8 @@ int main (int argc, char **argv) - infilename = g_locale_to_utf8 (infilename, - -1, NULL, NULL, NULL); - #endif -- query_module (contents, cwd, infilename); -+ if (!query_module (contents, cwd, infilename)) -+ success = FALSE; - } - g_free (cwd); - } -@@ -401,5 +409,8 @@ int main (int argc, char **argv) - else - g_print ("%s\n", contents->str); - -- return 0; -+ if (g_getenv ("GDK_PIXBUF_FATAL_LOADER")) -+ return success ? 0 : 1; -+ else -+ return 0; - } --- -2.14.1 - |