From b82303793e429d2e44ac574161636a18a82df08a Mon Sep 17 00:00:00 2001 From: Philippe De Swert Date: Tue, 7 Feb 2006 19:23:36 +0000 Subject: packages/matchbox-panel/matchbox-panel-0.9.2/system-monitor-crash-fix.patch * update patch to avoid compile time cpu selection packages/matchbox-panel/matchbox-panel-0.9.2/matchbox-panel_0.9.2.bb * bunp PR number --- .../system-monitor-crash-fix.patch | 72 ++++++++++++++++------ packages/matchbox-panel/matchbox-panel_0.9.2.bb | 2 +- 2 files changed, 54 insertions(+), 20 deletions(-) diff --git a/packages/matchbox-panel/matchbox-panel-0.9.2/system-monitor-crash-fix.patch b/packages/matchbox-panel/matchbox-panel-0.9.2/system-monitor-crash-fix.patch index c9a49fb881..51c141db03 100644 --- a/packages/matchbox-panel/matchbox-panel-0.9.2/system-monitor-crash-fix.patch +++ b/packages/matchbox-panel/matchbox-panel-0.9.2/system-monitor-crash-fix.patch @@ -1,23 +1,46 @@ ---- matchbox-panel-0.9.2/applets/mb-applet-system-monitor.c.orig 2006-02-04 19:22:55.000000000 +0200 -+++ matchbox-panel-0.9.2/applets/mb-applet-system-monitor.c 2006-02-04 18:18:21.000000000 +0200 -@@ -37,6 +37,16 @@ +--- matchbox-panel-0.9.2/applets/mb-applet-system-monitor.c.orig 2006-02-07 20:08:09.000000000 +0200 ++++ matchbox-panel-0.9.2/applets/mb-applet-system-monitor.c 2006-02-07 20:53:20.000000000 +0200 +@@ -37,6 +37,7 @@ # define _(text) (text) #endif -+#ifdef HAVE_LINUX_VER_H -+#include -+#else -+#define LINUX_VERSION_CODE 0 -+#endif -+ -+#ifndef KERNEL_VERSION -+#define KERNEL_VERSION(a,b,c) (((a) << 16) | ((b) << 8) | (c)) -+#endif + #ifdef MB_HAVE_PNG #define IMG_EXT "png" #else -@@ -112,71 +122,83 @@ +@@ -66,8 +67,30 @@ + MBPixbufImage *ImgIcon = NULL, *ImgIconScaled = NULL, *ImgGraph = NULL; + + int GraphHeight = 0, GraphWidth = 0; +- + char *ThemeName; ++static int kernelver = 0; ++ ++/* returns 1 if the kernel version is 2.6, 0 otherwise */ ++int kernel_version(void) ++{ ++ float v_nr=0; ++ FILE *version; ++ ++ if ((version = fopen("/proc/version", "r")) == NULL) ++ { ++ fprintf(stderr, "mb-applet-system-monitor: failed to open /proc/version. Exiting\n"); ++ exit(1); ++ } ++ fscanf(version, "%*s %*s %f", &v_nr); ++ fclose(version); ++ ++ if (v_nr > 2.5) ++ return 1; ++ else ++ return 0; ++} ++ ++ + + /* returns current CPU load in percent, 0 to 100 */ + int system_cpu(void) +@@ -112,71 +135,86 @@ int system_memory(void) { @@ -94,14 +117,15 @@ - msd.mem_percent = (100 * msd.mem_used) / msd.mem_max; - //msd.swap_percent = (100 * msd.swap_used) / msd.swap_max; -- ++/*if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)*/ + - /* memory info changed - update things */ - return 1; - } - /* nothing new */ - return 0; -+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0) -+ ++ if(kernelver) ++ { + rewind (mem); + + fscanf (mem, "%*s %Ld %*s", &total); @@ -126,15 +150,16 @@ + shared = shared * 1024; + cache_total = cache_total * 1024; + cache_used = cache_total - (cache_free * 1024); -+#else ++ } ++else ++ { + /* + total: used: free: shared: buffers: cached: + */ + fscanf(mem, "%*s %Ld %Ld %Ld %Ld %Ld %Ld", &total, &used, &mfree, + &shared, &buffers, &cached); + fscanf(mem, "%*s %Ld %Ld", &cache_total, &cache_used); -+ -+#endif ++ } + + fclose(mem); + @@ -159,3 +184,12 @@ void paint_callback (MBTrayApp *app, Drawable drw ) { +@@ -340,6 +378,8 @@ + &argc, + &argv ); + ++ kernelver = kernel_version(); ++ + msd.samples = 16; + + if (msd.load) { diff --git a/packages/matchbox-panel/matchbox-panel_0.9.2.bb b/packages/matchbox-panel/matchbox-panel_0.9.2.bb index 4c037690b6..0e2ccf3f07 100644 --- a/packages/matchbox-panel/matchbox-panel_0.9.2.bb +++ b/packages/matchbox-panel/matchbox-panel_0.9.2.bb @@ -1,6 +1,6 @@ include matchbox-panel.inc -PR="r9" +PR="r10" SRC_URI = "http://projects.o-hand.com/matchbox/sources/${PN}/0.9/${PN}-${PV}.tar.gz \ file://add_hostap.patch;patch=1 \ http://handhelds.org/~pb/mb-panel-0.9.2-polling.patch;patch=1 \ -- cgit v1.2.3 From 517adf9b4db1c1427d4e1884a688e4c842a94971 Mon Sep 17 00:00:00 2001 From: Justin Patrin Date: Tue, 7 Feb 2006 22:16:21 +0000 Subject: gpe-calendar, gpe-bluetooth: fix nylon-image_do_configure errors --- packages/gpe-bluetooth/gpe-bluetooth_0.51.bb | 4 ++++ packages/gpe-calendar/gpe-calendar_0.70.bb | 3 +++ 2 files changed, 7 insertions(+) diff --git a/packages/gpe-bluetooth/gpe-bluetooth_0.51.bb b/packages/gpe-bluetooth/gpe-bluetooth_0.51.bb index ea7aa905fa..1089c08413 100644 --- a/packages/gpe-bluetooth/gpe-bluetooth_0.51.bb +++ b/packages/gpe-bluetooth/gpe-bluetooth_0.51.bb @@ -12,3 +12,7 @@ GPE_TARBALL_SUFFIX= "bz2" inherit gpe autotools FILES_${PN} += '${datadir}/bluez-pin' + +do_configure () { + autotools_do_configure +} \ No newline at end of file diff --git a/packages/gpe-calendar/gpe-calendar_0.70.bb b/packages/gpe-calendar/gpe-calendar_0.70.bb index 43b5be25b4..eeab0a366c 100644 --- a/packages/gpe-calendar/gpe-calendar_0.70.bb +++ b/packages/gpe-calendar/gpe-calendar_0.70.bb @@ -10,3 +10,6 @@ SECTION = "gpe" RDEPENDS = "gpe-icons" DESCRIPTION = "GPE calendar is the calendar application of the GPE PIM suite." +do_configure () { + autotools_do_configure +} \ No newline at end of file -- cgit v1.2.3 From 35fedf01c12bcd0b9409a359e91b66d20b3a4c79 Mon Sep 17 00:00:00 2001 From: Justin Patrin Date: Wed, 8 Feb 2006 21:07:39 +0000 Subject: disapproval of revision '12ad312536380ea2dc9169b7d73257f999484105' --- packages/gpe-bluetooth/gpe-bluetooth_0.51.bb | 4 ---- packages/gpe-calendar/gpe-calendar_0.70.bb | 3 --- 2 files changed, 7 deletions(-) diff --git a/packages/gpe-bluetooth/gpe-bluetooth_0.51.bb b/packages/gpe-bluetooth/gpe-bluetooth_0.51.bb index 1089c08413..ea7aa905fa 100644 --- a/packages/gpe-bluetooth/gpe-bluetooth_0.51.bb +++ b/packages/gpe-bluetooth/gpe-bluetooth_0.51.bb @@ -12,7 +12,3 @@ GPE_TARBALL_SUFFIX= "bz2" inherit gpe autotools FILES_${PN} += '${datadir}/bluez-pin' - -do_configure () { - autotools_do_configure -} \ No newline at end of file diff --git a/packages/gpe-calendar/gpe-calendar_0.70.bb b/packages/gpe-calendar/gpe-calendar_0.70.bb index eeab0a366c..43b5be25b4 100644 --- a/packages/gpe-calendar/gpe-calendar_0.70.bb +++ b/packages/gpe-calendar/gpe-calendar_0.70.bb @@ -10,6 +10,3 @@ SECTION = "gpe" RDEPENDS = "gpe-icons" DESCRIPTION = "GPE calendar is the calendar application of the GPE PIM suite." -do_configure () { - autotools_do_configure -} \ No newline at end of file -- cgit v1.2.3