gpe-scap: Add patch to fix device information on ARM devices.
authorFlorian Boor <florian.boor@kernelconcepts.de>
Thu, 8 Mar 2007 11:20:44 +0000 (11:20 +0000)
committerFlorian Boor <florian.boor@kernelconcepts.de>
Thu, 8 Mar 2007 11:20:44 +0000 (11:20 +0000)
packages/gpe-scap/gpe-scap-1.2/.mtn2git_empty [new file with mode: 0644]
packages/gpe-scap/gpe-scap-1.2/deviceinfo.patch [new file with mode: 0644]
packages/gpe-scap/gpe-scap_1.2.bb

diff --git a/packages/gpe-scap/gpe-scap-1.2/.mtn2git_empty b/packages/gpe-scap/gpe-scap-1.2/.mtn2git_empty
new file mode 100644 (file)
index 0000000..e69de29
diff --git a/packages/gpe-scap/gpe-scap-1.2/deviceinfo.patch b/packages/gpe-scap/gpe-scap-1.2/deviceinfo.patch
new file mode 100644 (file)
index 0000000..57e611d
--- /dev/null
@@ -0,0 +1,22 @@
+Index: src/scr-shot-common.c
+===================================================================
+--- src/scr-shot-common.c      (.../base/gpe-scap/src/scr-shot-common.c)       (Revision 8890)
++++ src/scr-shot-common.c      (.../extra/gpe-scap/src/scr-shot-common.c)      (Arbeitskopie)
+@@ -37,7 +37,7 @@
+ gchar *
+ get_device_model (void)
+ {
+-  gchar *result;
++  gchar *result = NULL;
+   struct utsname uinfo;
+   gchar **strv;
+   gint i = 0;
+@@ -62,6 +62,8 @@
+         }
+       g_strfreev (strv);
+     }
++  if (result)
++    return result;
+ #ifdef __arm__
+   result = g_strdup_printf ("%s,%s",_("ARM"), uinfo.machine);
+ #endif
index d53f041..1fc8f9a 100644 (file)
@@ -2,7 +2,7 @@ DESCRIPTION = "GPE screenshot application"
 LICENSE = "GPL"
 PRIORITY = "optional"
 SECTION = "gpe"
-PR = "r0"
+PR = "r1"
 
 RREPLACES = "gpe-screenshot"
 
@@ -12,3 +12,4 @@ GPE_TARBALL_SUFFIX = "bz2"
 
 inherit gpe autotools
 
+SRC_URI += " file://deviceinfo.patch;patch=1;pnum=0"