diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-23 15:05:39 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-11-23 15:10:41 +0000 |
commit | aaa2a70f7f1b8a299f31626d61d7ea27f29fb9e2 (patch) | |
tree | 55801fc5e8d6b132d478ac8497ac563b018b8160 /meta/recipes-gnome/gnome/gconf-3.2.3/backenddir.patch | |
parent | 5680bf11f2e5877782d0101d5b8a5ed24d1ddbce (diff) | |
download | openembedded-core-aaa2a70f7f1b8a299f31626d61d7ea27f29fb9e2.tar.gz openembedded-core-aaa2a70f7f1b8a299f31626d61d7ea27f29fb9e2.tar.bz2 openembedded-core-aaa2a70f7f1b8a299f31626d61d7ea27f29fb9e2.zip |
gconf: Ensure the correct backend directory is used
Without these changes, gconf will use the hardcoded backend directory meaning
we can see errors when building if the binary was relocated.
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-gnome/gnome/gconf-3.2.3/backenddir.patch')
-rw-r--r-- | meta/recipes-gnome/gnome/gconf-3.2.3/backenddir.patch | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/meta/recipes-gnome/gnome/gconf-3.2.3/backenddir.patch b/meta/recipes-gnome/gnome/gconf-3.2.3/backenddir.patch new file mode 100644 index 0000000000..4baf905b71 --- /dev/null +++ b/meta/recipes-gnome/gnome/gconf-3.2.3/backenddir.patch @@ -0,0 +1,43 @@ +Allow the backend directory to be specified from the environment. This is +required so we can relocate gconf-native to different paths and still +allow it to work. + +Upstream-Status: Pending + +RP 2011/11/23 + +Index: GConf-3.2.3/gconf/gconf-backend.c +=================================================================== +--- GConf-3.2.3.orig/gconf/gconf-backend.c 2011-07-01 14:01:20.000000000 +0100 ++++ GConf-3.2.3/gconf/gconf-backend.c 2011-11-23 14:56:37.141293320 +0000 +@@ -21,6 +21,7 @@ + #include <config.h> + #include "gconf-backend.h" + #include "gconf-internals.h" ++#include <stdlib.h> + #include <stdio.h> + #include <string.h> + #include <sys/stat.h> +@@ -171,6 +172,7 @@ + gchar* back; + gchar* file; + gchar* retval; ++ const gchar* backenddir; + + g_return_val_if_fail(address != NULL, NULL); + +@@ -179,9 +181,13 @@ + if (back == NULL) + return NULL; + ++ backenddir = getenv("GCONF_BACKEND_DIR"); ++ if (backenddir == NULL) ++ backenddir = GCONF_BACKEND_DIR; ++ + file = g_strconcat("gconfbackend-", back, NULL); + +- retval = g_module_build_path(GCONF_BACKEND_DIR, file); ++ retval = g_module_build_path(backenddir, file); + + g_free(back); + |