summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Ramsay <lack@gentoo.org>2010-11-01 13:10:36 +0000
committerJim Ramsay <lack@gentoo.org>2010-11-01 13:10:36 +0000
commit09b4c1c1c11fe1b9a6d332bf7ffc44b88c89275a (patch)
treef8c828e319a259dfd2e5ffaac25b2154deb9c650 /x11-plugins/gkrellm-mailwatch
parentVersion bump (diff)
downloadhistorical-09b4c1c1c11fe1b9a6d332bf7ffc44b88c89275a.tar.gz
historical-09b4c1c1c11fe1b9a6d332bf7ffc44b88c89275a.tar.bz2
historical-09b4c1c1c11fe1b9a6d332bf7ffc44b88c89275a.zip
Patches to fix bug #341483 and #335085
Package-Manager: portage-2.1.9.14/cvs/Linux i686
Diffstat (limited to 'x11-plugins/gkrellm-mailwatch')
-rw-r--r--x11-plugins/gkrellm-mailwatch/ChangeLog11
-rw-r--r--x11-plugins/gkrellm-mailwatch/Manifest6
-rw-r--r--x11-plugins/gkrellm-mailwatch/files/2.4.3-0001-Respect-LDFLAGS.patch36
-rw-r--r--x11-plugins/gkrellm-mailwatch/files/2.4.3-0002-Use-gkrellm_gkd_string_width.patch29
-rw-r--r--x11-plugins/gkrellm-mailwatch/files/2.4.3-0003-Remove-a-few-more-GCC-warnings.patch41
-rw-r--r--x11-plugins/gkrellm-mailwatch/gkrellm-mailwatch-2.4.3-r1.ebuild22
6 files changed, 143 insertions, 2 deletions
diff --git a/x11-plugins/gkrellm-mailwatch/ChangeLog b/x11-plugins/gkrellm-mailwatch/ChangeLog
index 194d1cc0de40..7156d5231bc8 100644
--- a/x11-plugins/gkrellm-mailwatch/ChangeLog
+++ b/x11-plugins/gkrellm-mailwatch/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for x11-plugins/gkrellm-mailwatch
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellm-mailwatch/ChangeLog,v 1.28 2010/03/12 00:43:24 sping Exp $
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellm-mailwatch/ChangeLog,v 1.29 2010/11/01 13:10:36 lack Exp $
+
+*gkrellm-mailwatch-2.4.3-r1 (01 Nov 2010)
+
+ 01 Nov 2010; Jim Ramsay <lack@gentoo.org>
+ +files/2.4.3-0001-Respect-LDFLAGS.patch,
+ +gkrellm-mailwatch-2.4.3-r1.ebuild,
+ +files/2.4.3-0002-Use-gkrellm_gkd_string_width.patch,
+ +files/2.4.3-0003-Remove-a-few-more-GCC-warnings.patch:
+ Patches to fix bug #341483 and #335085
12 Mar 2010; Sebastian Pipping <sping@gentoo.org>
gkrellm-mailwatch-2.4.3.ebuild:
diff --git a/x11-plugins/gkrellm-mailwatch/Manifest b/x11-plugins/gkrellm-mailwatch/Manifest
index 3c406de1692b..6082d280727e 100644
--- a/x11-plugins/gkrellm-mailwatch/Manifest
+++ b/x11-plugins/gkrellm-mailwatch/Manifest
@@ -1,4 +1,8 @@
+AUX 2.4.3-0001-Respect-LDFLAGS.patch 998 RMD160 4d65ff8890378c241e401de9a503c65783e3ced2 SHA1 13f8b5b5ad33c5f5775f10b071e8e7ac3b85bd88 SHA256 61826ba4d27f0148a599b5b78087312781b9baad7138a234b0479a96256a1b20
+AUX 2.4.3-0002-Use-gkrellm_gkd_string_width.patch 914 RMD160 05f7c1825fcd00fe02dc69403f5f509d5949b5f6 SHA1 9e6204887005f1846052450b88f2937e2af04b98 SHA256 5fc8937277e985d90bc4ef73070ca653f4558de953c065044788ff27caa547c5
+AUX 2.4.3-0003-Remove-a-few-more-GCC-warnings.patch 1227 RMD160 8c69d46f30a97346d5511c533356a408f431daec SHA1 ca69505702d0d6d86b7835a68bc2c139b280105d SHA256 7757284b182e92fa2527afe2c681c4392eec4ecd632958da370a12fd6db1dfb4
DIST gkrellm-mailwatch-2.4.3.tar.gz 27407 RMD160 38e6d9339735add13481994f180e3ccdf2d1560f SHA1 695c85342e96fa23c17d27f19510d2d633ccb27d SHA256 d492d7e494800c80abc2410d4266071132da23b06ae9d903ac4bf279b2b3a4b0
+EBUILD gkrellm-mailwatch-2.4.3-r1.ebuild 632 RMD160 64439025165bc0d32ebfefc9598d38b4e1e95e39 SHA1 8ebbdd1a125b152910a33dc9e4bcdc3480d83aef SHA256 82f35cc6551051fbfa9c857612ba2aa6176e666ffd18ff0846589fc01d799e98
EBUILD gkrellm-mailwatch-2.4.3.ebuild 561 RMD160 3a3e2b81bc7a3d309cfd96958dcad5707c6e7488 SHA1 0e06335d724cc1988b0ff11a7aa491c78f03f261 SHA256 392f6196ec71ccdd4a4fdb7158f7758e9b88f7ca72b5aa0baef64d452ea6613e
-MISC ChangeLog 3673 RMD160 46fe0cba58559975c4e2d44d95f9dfdc808e2a68 SHA1 2716672fa942a6cf795ca6981bb9e0b6e7aecaed SHA256 a54705e06c7874ba602f84d5393700ae4f8c77d414a8f226981695b980ddc200
+MISC ChangeLog 3996 RMD160 45c5d2e416485898489cf5990caa9c88dc6accf3 SHA1 8b88548336bb80465d06ba162a211fa633a64cbf SHA256 7d0307a2b0ec67d2878bf311262fb710bc2fb5b8f778418a7ec5b3aeaf9c6620
MISC metadata.xml 254 RMD160 415926d9875e8fe9b0d03e74435ad2521fac159c SHA1 172a4c3880766b1bb7e75f4f2b4ed0b62c1d2d6c SHA256 dafc7e6c5cb681b9d6ecbe2ff4280bb987d3533c30bb334b4845faee02aa7279
diff --git a/x11-plugins/gkrellm-mailwatch/files/2.4.3-0001-Respect-LDFLAGS.patch b/x11-plugins/gkrellm-mailwatch/files/2.4.3-0001-Respect-LDFLAGS.patch
new file mode 100644
index 000000000000..158357dc4855
--- /dev/null
+++ b/x11-plugins/gkrellm-mailwatch/files/2.4.3-0001-Respect-LDFLAGS.patch
@@ -0,0 +1,36 @@
+From 139912e0cf5d9714e5e1fe4576d01251491701f5 Mon Sep 17 00:00:00 2001
+From: Jim Ramsay <jim_ramsay@dell.com>
+Date: Mon, 1 Nov 2010 08:36:17 -0400
+Subject: [PATCH 1/3] Respect LDFLAGS
+
+Instead of using a non-standard varible name like LFLAGS, using LDFLAGS
+lets this play nice with Gentoo's build system.
+---
+ Makefile | 4 ++--
+ 1 files changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/Makefile b/Makefile
+index b8cf927..02ca376 100644
+--- a/Makefile
++++ b/Makefile
+@@ -12,7 +12,7 @@ INSTALL=install -c -m 755
+
+ CFLAGS += -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
+ LIBS = $(GTK_LIB) $(IMLIB_LIB)
+-LFLAGS += -shared
++LDFLAGS += -shared
+
+ LOCALEDIR := $(DESTDIR)/usr/share/locale
+ PACKAGE ?= gkrellm-mailwatch
+@@ -30,7 +30,7 @@ all: mailwatch.so
+
+ mailwatch.so: $(OBJS)
+ (cd po && ${MAKE})
+- $(CC) $(CFLAGS) $(OBJS) -o mailwatch.so $(LFLAGS) $(LIBS)
++ $(CC) $(CFLAGS) $(OBJS) -o mailwatch.so $(LDFLAGS) $(LIBS)
+
+ clean:
+ (cd po && ${MAKE} clean )
+--
+1.7.3.1
+
diff --git a/x11-plugins/gkrellm-mailwatch/files/2.4.3-0002-Use-gkrellm_gkd_string_width.patch b/x11-plugins/gkrellm-mailwatch/files/2.4.3-0002-Use-gkrellm_gkd_string_width.patch
new file mode 100644
index 000000000000..7edff1c74990
--- /dev/null
+++ b/x11-plugins/gkrellm-mailwatch/files/2.4.3-0002-Use-gkrellm_gkd_string_width.patch
@@ -0,0 +1,29 @@
+From c9db9953296709ba3c86a7b0471fcd60469225ed Mon Sep 17 00:00:00 2001
+From: Jim Ramsay <jim_ramsay@dell.com>
+Date: Mon, 1 Nov 2010 08:43:17 -0400
+Subject: [PATCH 2/3] Use gkrellm_gkd_string_width
+
+This wrapper is designed to transition from GdkFont to
+PangoFontDescription. Without it, there is a warning and a probable
+runtime crash, as we are feeding the wrong structure into
+'gdk_string_width'.
+---
+ mailwatch.c | 2 +-
+ 1 files changed, 1 insertions(+), 1 deletions(-)
+
+diff --git a/mailwatch.c b/mailwatch.c
+index 3f0f0a2..5cca01e 100644
+--- a/mailwatch.c
++++ b/mailwatch.c
+@@ -608,7 +608,7 @@ update_plugin(void) {
+
+ p->statstext->x_off =
+ gkrellm_chart_width() -
+- gdk_string_width(p->panel->textstyle->font,
++ gkrellm_gdk_string_width(p->panel->textstyle->font,
+ buf) -
+ 2 * gkrellm_get_style_margins(p->panel->style)->left;
+
+--
+1.7.3.1
+
diff --git a/x11-plugins/gkrellm-mailwatch/files/2.4.3-0003-Remove-a-few-more-GCC-warnings.patch b/x11-plugins/gkrellm-mailwatch/files/2.4.3-0003-Remove-a-few-more-GCC-warnings.patch
new file mode 100644
index 000000000000..5cc76c6fc828
--- /dev/null
+++ b/x11-plugins/gkrellm-mailwatch/files/2.4.3-0003-Remove-a-few-more-GCC-warnings.patch
@@ -0,0 +1,41 @@
+From 873186988c7b7cbde50d1f44ad0e745ddadf0e18 Mon Sep 17 00:00:00 2001
+From: Jim Ramsay <jim_ramsay@dell.com>
+Date: Mon, 1 Nov 2010 08:44:17 -0400
+Subject: [PATCH 3/3] Remove a few more GCC warnings
+
+These are mostly harmless, but no harm in cleaning them up.
+---
+ mailwatch.c | 5 +++--
+ 1 files changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/mailwatch.c b/mailwatch.c
+index 5cca01e..fcb77a8 100644
+--- a/mailwatch.c
++++ b/mailwatch.c
+@@ -198,7 +198,7 @@ check_mh(Mailbox * mbox) {
+ return TRUE;
+
+ /* Check the unseen mail */
+- while (fgets(buf, sizeof(buf), f), !feof(f))
++ while (fgets(buf, sizeof(buf), f) && !feof(f))
+ if (!strncmp(buf, "unseen", sizeof("unseen") - 1)) {
+ found = 1;
+ break;
+@@ -444,12 +444,13 @@ plug_expose_event(GtkWidget * widget, GdkEventExpose * event) {
+ static gint
+ button_release(GtkWidget * widget, GdkEventButton * ev, Mailpanel * panel) {
+ gchar *command;
++ int retcode;
+
+ if (panel->command == NULL)
+ return FALSE;
+ command = malloc((strlen(panel->command) + 4) * sizeof(char));
+ strcpy(command, panel->command);
+- system(strcat(command, " &"));
++ retcode = system(strcat(command, " &"));
+ free(command);
+ return FALSE;
+ }
+--
+1.7.3.1
+
diff --git a/x11-plugins/gkrellm-mailwatch/gkrellm-mailwatch-2.4.3-r1.ebuild b/x11-plugins/gkrellm-mailwatch/gkrellm-mailwatch-2.4.3-r1.ebuild
new file mode 100644
index 000000000000..8212d6e4d350
--- /dev/null
+++ b/x11-plugins/gkrellm-mailwatch/gkrellm-mailwatch-2.4.3-r1.ebuild
@@ -0,0 +1,22 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellm-mailwatch/gkrellm-mailwatch-2.4.3-r1.ebuild,v 1.1 2010/11/01 13:10:36 lack Exp $
+
+EAPI="3"
+inherit gkrellm-plugin eutils
+
+IUSE=""
+S=${WORKDIR}/${PN}
+DESCRIPTION="A GKrellM2 plugin that shows the status of additional mail boxes"
+SRC_URI="http://gkrellm.luon.net/files/${P}.tar.gz"
+HOMEPAGE="http://gkrellm.luon.net/mailwatch.php"
+
+SLOT="2"
+LICENSE="GPL-2"
+KEYWORDS="~alpha ~amd64 ~ppc ~sparc ~x86"
+
+PLUGIN_SO=mailwatch.so
+
+src_prepare() {
+ epatch "${FILESDIR}"/${PV}-*
+}