Gentoo Archives: gentoo-commits

From: "Jim Ramsay (lack)" <lack@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in x11-plugins/gkrellm-mailwatch/files: 2.4.3-0001-Respect-LDFLAGS.patch 2.4.3-0002-Use-gkrellm_gkd_string_width.patch 2.4.3-0003-Remove-a-few-more-GCC-warnings.patch
Date: Mon, 01 Nov 2010 13:10:44
Message-Id: 20101101131036.E320020054@flycatcher.gentoo.org
1 lack 10/11/01 13:10:36
2
3 Added: 2.4.3-0001-Respect-LDFLAGS.patch
4 2.4.3-0002-Use-gkrellm_gkd_string_width.patch
5 2.4.3-0003-Remove-a-few-more-GCC-warnings.patch
6 Log:
7 Patches to fix bug #341483 and #335085
8
9 (Portage version: 2.1.9.14/cvs/Linux i686)
10
11 Revision Changes Path
12 1.1 x11-plugins/gkrellm-mailwatch/files/2.4.3-0001-Respect-LDFLAGS.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellm-mailwatch/files/2.4.3-0001-Respect-LDFLAGS.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellm-mailwatch/files/2.4.3-0001-Respect-LDFLAGS.patch?rev=1.1&content-type=text/plain
16
17 Index: 2.4.3-0001-Respect-LDFLAGS.patch
18 ===================================================================
19 From 139912e0cf5d9714e5e1fe4576d01251491701f5 Mon Sep 17 00:00:00 2001
20 From: Jim Ramsay <jim_ramsay@××××.com>
21 Date: Mon, 1 Nov 2010 08:36:17 -0400
22 Subject: [PATCH 1/3] Respect LDFLAGS
23
24 Instead of using a non-standard varible name like LFLAGS, using LDFLAGS
25 lets this play nice with Gentoo's build system.
26 ---
27 Makefile | 4 ++--
28 1 files changed, 2 insertions(+), 2 deletions(-)
29
30 diff --git a/Makefile b/Makefile
31 index b8cf927..02ca376 100644
32 --- a/Makefile
33 +++ b/Makefile
34 @@ -12,7 +12,7 @@ INSTALL=install -c -m 755
35
36 CFLAGS += -O2 -Wall -fPIC $(GTK_INCLUDE) $(IMLIB_INCLUDE) $(GKRELLM_INCLUDE)
37 LIBS = $(GTK_LIB) $(IMLIB_LIB)
38 -LFLAGS += -shared
39 +LDFLAGS += -shared
40
41 LOCALEDIR := $(DESTDIR)/usr/share/locale
42 PACKAGE ?= gkrellm-mailwatch
43 @@ -30,7 +30,7 @@ all: mailwatch.so
44
45 mailwatch.so: $(OBJS)
46 (cd po && ${MAKE})
47 - $(CC) $(CFLAGS) $(OBJS) -o mailwatch.so $(LFLAGS) $(LIBS)
48 + $(CC) $(CFLAGS) $(OBJS) -o mailwatch.so $(LDFLAGS) $(LIBS)
49
50 clean:
51 (cd po && ${MAKE} clean )
52 --
53 1.7.3.1
54
55
56
57
58 1.1 x11-plugins/gkrellm-mailwatch/files/2.4.3-0002-Use-gkrellm_gkd_string_width.patch
59
60 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellm-mailwatch/files/2.4.3-0002-Use-gkrellm_gkd_string_width.patch?rev=1.1&view=markup
61 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellm-mailwatch/files/2.4.3-0002-Use-gkrellm_gkd_string_width.patch?rev=1.1&content-type=text/plain
62
63 Index: 2.4.3-0002-Use-gkrellm_gkd_string_width.patch
64 ===================================================================
65 From c9db9953296709ba3c86a7b0471fcd60469225ed Mon Sep 17 00:00:00 2001
66 From: Jim Ramsay <jim_ramsay@××××.com>
67 Date: Mon, 1 Nov 2010 08:43:17 -0400
68 Subject: [PATCH 2/3] Use gkrellm_gkd_string_width
69
70 This wrapper is designed to transition from GdkFont to
71 PangoFontDescription. Without it, there is a warning and a probable
72 runtime crash, as we are feeding the wrong structure into
73 'gdk_string_width'.
74 ---
75 mailwatch.c | 2 +-
76 1 files changed, 1 insertions(+), 1 deletions(-)
77
78 diff --git a/mailwatch.c b/mailwatch.c
79 index 3f0f0a2..5cca01e 100644
80 --- a/mailwatch.c
81 +++ b/mailwatch.c
82 @@ -608,7 +608,7 @@ update_plugin(void) {
83
84 p->statstext->x_off =
85 gkrellm_chart_width() -
86 - gdk_string_width(p->panel->textstyle->font,
87 + gkrellm_gdk_string_width(p->panel->textstyle->font,
88 buf) -
89 2 * gkrellm_get_style_margins(p->panel->style)->left;
90
91 --
92 1.7.3.1
93
94
95
96
97 1.1 x11-plugins/gkrellm-mailwatch/files/2.4.3-0003-Remove-a-few-more-GCC-warnings.patch
98
99 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellm-mailwatch/files/2.4.3-0003-Remove-a-few-more-GCC-warnings.patch?rev=1.1&view=markup
100 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/x11-plugins/gkrellm-mailwatch/files/2.4.3-0003-Remove-a-few-more-GCC-warnings.patch?rev=1.1&content-type=text/plain
101
102 Index: 2.4.3-0003-Remove-a-few-more-GCC-warnings.patch
103 ===================================================================
104 From 873186988c7b7cbde50d1f44ad0e745ddadf0e18 Mon Sep 17 00:00:00 2001
105 From: Jim Ramsay <jim_ramsay@××××.com>
106 Date: Mon, 1 Nov 2010 08:44:17 -0400
107 Subject: [PATCH 3/3] Remove a few more GCC warnings
108
109 These are mostly harmless, but no harm in cleaning them up.
110 ---
111 mailwatch.c | 5 +++--
112 1 files changed, 3 insertions(+), 2 deletions(-)
113
114 diff --git a/mailwatch.c b/mailwatch.c
115 index 5cca01e..fcb77a8 100644
116 --- a/mailwatch.c
117 +++ b/mailwatch.c
118 @@ -198,7 +198,7 @@ check_mh(Mailbox * mbox) {
119 return TRUE;
120
121 /* Check the unseen mail */
122 - while (fgets(buf, sizeof(buf), f), !feof(f))
123 + while (fgets(buf, sizeof(buf), f) && !feof(f))
124 if (!strncmp(buf, "unseen", sizeof("unseen") - 1)) {
125 found = 1;
126 break;
127 @@ -444,12 +444,13 @@ plug_expose_event(GtkWidget * widget, GdkEventExpose * event) {
128 static gint
129 button_release(GtkWidget * widget, GdkEventButton * ev, Mailpanel * panel) {
130 gchar *command;
131 + int retcode;
132
133 if (panel->command == NULL)
134 return FALSE;
135 command = malloc((strlen(panel->command) + 4) * sizeof(char));
136 strcpy(command, panel->command);
137 - system(strcat(command, " &"));
138 + retcode = system(strcat(command, " &"));
139 free(command);
140 return FALSE;
141 }
142 --
143 1.7.3.1