summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/frameworks/files/frameworks-0.3.7-strcmp-and-datadir.patch')
-rw-r--r--media-video/frameworks/files/frameworks-0.3.7-strcmp-and-datadir.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/media-video/frameworks/files/frameworks-0.3.7-strcmp-and-datadir.patch b/media-video/frameworks/files/frameworks-0.3.7-strcmp-and-datadir.patch
new file mode 100644
index 00000000000..1550a211bda
--- /dev/null
+++ b/media-video/frameworks/files/frameworks-0.3.7-strcmp-and-datadir.patch
@@ -0,0 +1,24 @@
+--- a/src/interface.c
++++ b/src/interface.c
+@@ -258,8 +258,8 @@
+
+ /* find our glade interface file */
+ datadir = g_string_new(DATADIR);
+- if (datadir->str != "" || datadir->str != NULL)
+- datadir = g_string_append(datadir, "/");
++ if (strcmp(datadir->str, "") || datadir->str != NULL)
++ datadir = g_string_append(datadir, "/frameworks/");
+ filename = g_string_new("frameworks.glade");
+
+ if (g_file_test(filename->str, G_FILE_TEST_EXISTS) == TRUE) {
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -8,7 +8,7 @@
+ EXTRA_DIST = template.glade template.gladep
+
+ bin_PROGRAMS = frameworks
+-data_DATA = frameworks.glade
++pkgdata_DATA = frameworks.glade
+
+ frameworks_SOURCES = frameworks.c frameworks.h common.h videodev.h \
+ camera.c camera.h interface.c interface.h callbacks.c callbacks.h \