Gentoo Archives: gentoo-commits

From: "Alexandre Rostovtsev (tetromino)" <tetromino@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in app-admin/abrt/files: abrt-2.0.6-glib-2.31.patch abrt-2.0.5-conf abrt-2.0.6-gentoo.patch abrt-2.0.5-init abrt-2.0.6-format-security.patch
Date: Wed, 16 Nov 2011 07:44:33
Message-Id: 20111116074424.402072004B@flycatcher.gentoo.org
1 tetromino 11/11/16 07:44:24
2
3 Added: abrt-2.0.6-glib-2.31.patch abrt-2.0.5-conf
4 abrt-2.0.6-gentoo.patch abrt-2.0.5-init
5 abrt-2.0.6-format-security.patch
6 Log:
7 Add Fedora's automatic crash reporter tool from the gnome overlay.
8
9 (Portage version: 2.2.0_alpha74/cvs/Linux x86_64)
10
11 Revision Changes Path
12 1.1 app-admin/abrt/files/abrt-2.0.6-glib-2.31.patch
13
14 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.6-glib-2.31.patch?rev=1.1&view=markup
15 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.6-glib-2.31.patch?rev=1.1&content-type=text/plain
16
17 Index: abrt-2.0.6-glib-2.31.patch
18 ===================================================================
19 From ecfc461fd979aeb2d3ce4b9d811e4bf4a7730532 Mon Sep 17 00:00:00 2001
20 From: Jiri Moskovcak <jmoskovc@××××××.com>
21 Date: Sat, 5 Nov 2011 18:04:54 +0100
22 Subject: [PATCH] - glib 2.31 build fixes
23
24 ---
25 src/applet/applet.c | 14 +++++++++++++-
26 src/gui-gtk/main.c | 4 ++--
27 2 files changed, 15 insertions(+), 3 deletions(-)
28
29 diff --git a/src/applet/applet.c b/src/applet/applet.c
30 index 95b7091..bead61f 100644
31 --- a/src/applet/applet.c
32 +++ b/src/applet/applet.c
33 @@ -766,10 +766,20 @@ int main(int argc, char** argv)
34 textdomain(PACKAGE);
35 #endif
36
37 + /* Glib 2.31:
38 + * Major changes to threading and synchronisation
39 + - threading is now always enabled in GLib
40 + - support for custom thread implementations (including our own internal
41 + - support for errorcheck mutexes) has been removed
42 + */
43 +#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 31)
44 + //can't use log(), because g_verbose is not set yet
45 + g_print("abrt-applet: glib < 2.31 - init threading\n");
46 /* Need to be thread safe */
47 g_thread_init(NULL);
48 gdk_threads_init();
49 gdk_threads_enter();
50 +#endif
51
52 gtk_init(&argc, &argv);
53
54 @@ -869,8 +879,10 @@ int main(int argc, char** argv)
55
56 /* Enter main loop */
57 gtk_main();
58 -
59 +#if (GLIB_MAJOR_VERSION == 2 && GLIB_MINOR_VERSION < 31)
60 gdk_threads_leave();
61 +#endif
62 +
63 if (notify_is_initted())
64 notify_uninit();
65
66 diff --git a/src/gui-gtk/main.c b/src/gui-gtk/main.c
67 index b31509b..a24745a 100644
68 --- a/src/gui-gtk/main.c
69 +++ b/src/gui-gtk/main.c
70 @@ -912,7 +912,7 @@ static gboolean handle_signal_pipe(GIOChannel *gio, GIOCondition condition, gpoi
71 */
72 gchar buf[16];
73 gsize bytes_read;
74 - g_io_channel_read(gio, buf, sizeof(buf), &bytes_read);
75 + g_io_channel_read_chars(gio, buf, sizeof(buf), &bytes_read, NULL);
76
77 /* Destroy zombies */
78 while (safe_waitpid(-1, NULL, WNOHANG) > 0)
79 @@ -975,7 +975,7 @@ static gboolean handle_inotify_cb(GIOChannel *gio, GIOCondition condition, gpoin
80 /* We read inotify events, but don't analyze them */
81 gchar buf[sizeof(struct inotify_event) + PATH_MAX + 64];
82 gsize bytes_read;
83 - while (g_io_channel_read(gio, buf, sizeof(buf), &bytes_read) == G_IO_ERROR_NONE
84 + while (g_io_channel_read_chars(gio, buf, sizeof(buf), &bytes_read, NULL) == G_IO_STATUS_NORMAL
85 && bytes_read > 0
86 ) {
87 continue;
88 --
89 1.7.8.rc1
90
91
92
93
94 1.1 app-admin/abrt/files/abrt-2.0.5-conf
95
96 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.5-conf?rev=1.1&view=markup
97 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.5-conf?rev=1.1&content-type=text/plain
98
99 Index: abrt-2.0.5-conf
100 ===================================================================
101 # abrtd command-line options
102 # Default: ""
103 ABRTD_OPTS=""
104
105 # Run abrt-harvest-vmcore to make new kdump dumps available for abrtd
106 START_VMCORE="yes"
107
108 # Install abrt-ccpp hook to watch for segfaults
109 START_CCPP="yes"
110
111 # Start abrt-dump-oops to watch for kernel oops
112 START_OOPS="yes"
113 # abrt-dump-oops command-line options
114 # Default: "-rwxD /var/log/messages"
115 OOPS_OPTS="-rwxD /var/log/messages"
116
117
118
119 1.1 app-admin/abrt/files/abrt-2.0.6-gentoo.patch
120
121 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.6-gentoo.patch?rev=1.1&view=markup
122 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.6-gentoo.patch?rev=1.1&content-type=text/plain
123
124 Index: abrt-2.0.6-gentoo.patch
125 ===================================================================
126 From bbcd5fc8782a1a26fdbf60563b9973093e171ebf Mon Sep 17 00:00:00 2001
127 From: Alexandre Rostovtsev <tetromino@×××××.com>
128 Date: Sat, 8 Oct 2011 03:31:56 -0400
129 Subject: [PATCH] Disable code not relevant for Gentoo
130
131 Disable code that is only relevant for an RPM-based distro or that
132 requires additional bugs.gentoo.org infrastructure support.
133 ---
134 configure.ac | 1 -
135 doc/Makefile.am | 2 --
136 src/daemon/Makefile.am | 23 +----------------------
137 src/daemon/abrt_event.conf | 2 +-
138 src/plugins/Makefile.am | 16 ----------------
139 src/plugins/abrt-action-list-dsos | 18 ++++--------------
140 src/plugins/ccpp_event.conf | 7 +++----
141 src/plugins/koops_event.conf | 4 ++--
142 src/plugins/python_event.conf | 6 +++---
143 9 files changed, 14 insertions(+), 65 deletions(-)
144
145 diff --git a/configure.ac b/configure.ac
146 index 6b0732c..a340b55 100644
147 --- a/configure.ac
148 +++ b/configure.ac
149 @@ -60,7 +60,6 @@ PKG_CHECK_MODULES([GTK], [gtk+-2.0])
150 PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.21])
151 PKG_CHECK_MODULES([DBUS], [dbus-1])
152 PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
153 -PKG_CHECK_MODULES([RPM], [rpm])
154 PKG_CHECK_MODULES([LIBNOTIFY], [libnotify])
155 PKG_CHECK_MODULES([NSS], [nss])
156 PKG_CHECK_MODULES([BTPARSER], [btparser])
157 diff --git a/doc/Makefile.am b/doc/Makefile.am
158 index 551bc65..51fc97d 100644
159 --- a/doc/Makefile.am
160 +++ b/doc/Makefile.am
161 @@ -11,12 +11,10 @@ MAN1_TXT += abrt-action-list-dsos.txt
162 MAN1_TXT += abrt-retrace-client.txt
163 MAN1_TXT += abrt-handle-upload.txt
164 MAN1_TXT += abrt-server.txt
165 -MAN1_TXT += abrt-action-save-package-data.txt
166 MAN1_TXT += abrt-install-ccpp-hook.txt
167
168 MAN5_TXT =
169 MAN5_TXT += abrt.conf.txt
170 -MAN5_TXT += abrt-action-save-package-data.conf.txt
171
172 MAN8_TXT =
173 MAN8_TXT += abrtd.txt
174 diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
175 index 82ba93b..07ff6c0 100644
176 --- a/src/daemon/Makefile.am
177 +++ b/src/daemon/Makefile.am
178 @@ -6,9 +6,6 @@ dist_eventsconf_DATA = \
179 bin_SCRIPTS = \
180 abrt-handle-upload
181
182 -bin_PROGRAMS = \
183 - abrt-action-save-package-data
184 -
185 sbin_PROGRAMS = \
186 abrtd \
187 abrt-server
188 @@ -60,30 +57,12 @@ abrt_handle_event_LDADD = \
189 ../lib/libabrt.la \
190 $(LIBREPORT_LIBS)
191
192 -abrt_action_save_package_data_SOURCES = \
193 - rpm.h rpm.c \
194 - abrt-action-save-package-data.c
195 -abrt_action_save_package_data_CPPFLAGS = \
196 - -I$(srcdir)/../include \
197 - -I$(srcdir)/../lib \
198 - -DCONF_DIR=\"$(CONF_DIR)\" \
199 - $(GLIB_CFLAGS) \
200 - $(LIBREPORT_CFLAGS) \
201 - -D_GNU_SOURCE \
202 - -Wall -Wwrite-strings -Werror
203 -abrt_action_save_package_data_LDADD = \
204 - $(RPM_LIBS) \
205 - $(LIBREPORT_LIBS) \
206 - ../lib/libabrt.la
207 -
208 dbusabrtconfdir = ${sysconfdir}/dbus-1/system.d/
209 dist_dbusabrtconf_DATA = dbus-abrt.conf
210
211 daemonconfdir = $(CONF_DIR)
212 dist_daemonconf_DATA = \
213 - abrt.conf \
214 - abrt-action-save-package-data.conf \
215 - gpg_keys
216 + abrt.conf
217
218 comredhatabrtservicedir = ${datadir}/dbus-1/system-services
219 dist_comredhatabrtservice_DATA = com.redhat.abrt.service
220 diff --git a/src/daemon/abrt_event.conf b/src/daemon/abrt_event.conf
221 index dec0f0e..d2e48ff 100644
222 --- a/src/daemon/abrt_event.conf
223 +++ b/src/daemon/abrt_event.conf
224 @@ -44,7 +44,7 @@
225
226
227 # Determine in which package/component the crash happened (if not yet done):
228 -EVENT=post-create component= remote!=1
229 +#EVENT=post-create component= remote!=1
230 abrt-action-save-package-data
231
232
233 diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
234 index 9a26877..ac0033d 100644
235 --- a/src/plugins/Makefile.am
236 +++ b/src/plugins/Makefile.am
237 @@ -1,7 +1,6 @@
238 -include ../../config.mak
239
240 bin_SCRIPTS = \
241 - abrt-action-install-debuginfo \
242 abrt-action-analyze-core \
243 abrt-action-analyze-vmcore \
244 abrt-action-list-dsos
245 @@ -16,8 +15,6 @@ bin_PROGRAMS = \
246 abrt-action-analyze-backtrace \
247 abrt-retrace-client
248
249 -libexec_PROGRAMS = abrt-action-install-debuginfo-to-abrt-cache
250 -
251 #dist_pluginsconf_DATA = Python.conf
252
253 eventsdir = $(EVENTS_DIR)
254 @@ -49,7 +46,6 @@ dist_eventsconf_DATA = \
255
256
257 PYTHON_FILES = \
258 - abrt-action-install-debuginfo.in \
259 abrt-action-list-dsos \
260 abrt-action-analyze-core
261
262 @@ -157,18 +153,6 @@ abrt_action_analyze_backtrace_LDADD = \
263 $(LIBREPORT_LIBS) \
264 $(BTPARSER_LIBS)
265
266 -abrt_action_install_debuginfo_to_abrt_cache_SOURCES = \
267 - abrt-action-install-debuginfo-to-abrt-cache.c
268 -abrt_action_install_debuginfo_to_abrt_cache_CPPFLAGS = \
269 - -I$(srcdir)/../include \
270 - -I$(srcdir)/../lib \
271 - -D_GNU_SOURCE \
272 - $(LIBREPORT_CFLAGS) \
273 - -Wall -Wwrite-strings
274 -abrt_action_install_debuginfo_to_abrt_cache_LDADD = \
275 - $(LIBREPORT_LIBS) \
276 - ../lib/libabrt.la
277 -
278 abrt_retrace_client_SOURCES = \
279 abrt-retrace-client.c
280 abrt_retrace_client_CFLAGS = \
281 diff --git a/src/plugins/abrt-action-list-dsos b/src/plugins/abrt-action-list-dsos
282 index 81a9927..bf1491c 100644
283 --- a/src/plugins/abrt-action-list-dsos
284 +++ b/src/plugins/abrt-action-list-dsos
285 @@ -5,7 +5,6 @@
286 import sys
287 import os
288 import getopt
289 -import rpm
290
291 def log(s):
292 sys.stderr.write("%s\n" % s)
293 @@ -68,19 +67,10 @@ if __name__ == "__main__":
294 try:
295 dso_paths = parse_maps(memfile)
296 for path in dso_paths:
297 - ts = rpm.TransactionSet()
298 - mi = ts.dbMatch('basenames', path)
299 - if len(mi):
300 - for h in mi:
301 - if outname:
302 - outfile = xopen(outname, "w")
303 - outname = None
304 - outfile.write("%s %s (%s) %s\n" %
305 - (path,
306 - h[rpm.RPMTAG_NEVRA],
307 - h[rpm.RPMTAG_VENDOR],
308 - h[rpm.RPMTAG_INSTALLTIME])
309 - )
310 + if outname:
311 + outfile = xopen(outname, "w")
312 + outname = None
313 + outfile.write(path)
314
315 except Exception, ex:
316 error_msg_and_die("Can't get the DSO list: %s" % ex)
317 diff --git a/src/plugins/ccpp_event.conf b/src/plugins/ccpp_event.conf
318 index 7d0d78c..5d4fa74 100644
319 --- a/src/plugins/ccpp_event.conf
320 +++ b/src/plugins/ccpp_event.conf
321 @@ -28,11 +28,10 @@ EVENT=collect_xsession_errors analyzer=CCpp dso_list~=.*/libX11.*
322 # or was this ability lost with move to python installer?
323 EVENT=analyze_LocalGDB analyzer=CCpp
324 abrt-action-analyze-core --core=coredump -o build_ids &&
325 - /usr/libexec/abrt-action-install-debuginfo-to-abrt-cache --size_mb=4096 &&
326 abrt-action-generate-backtrace &&
327 abrt-action-analyze-backtrace
328
329 # Bugzilla requires nonempty duphash
330 -EVENT=report_Bugzilla analyzer=CCpp duphash!=
331 - test -f component || abrt-action-save-package-data
332 - reporter-bugzilla -f -b -c /etc/libreport/plugins/Bugzilla.conf
333 +# EVENT=report_Bugzilla analyzer=CCpp duphash!=
334 +# test -f component || abrt-action-save-package-data
335 +# reporter-bugzilla -f -b -c /etc/libreport/plugins/Bugzilla.conf
336 diff --git a/src/plugins/koops_event.conf b/src/plugins/koops_event.conf
337 index d203e1a..83842f9 100644
338 --- a/src/plugins/koops_event.conf
339 +++ b/src/plugins/koops_event.conf
340 @@ -13,5 +13,5 @@ EVENT=post-create analyzer=Kerneloops
341 EVENT=report_Kerneloops analyzer=Kerneloops
342 reporter-kerneloops
343
344 -EVENT=report_Bugzilla analyzer=Kerneloops
345 - reporter-bugzilla -f -b
346 +# EVENT=report_Bugzilla analyzer=Kerneloops
347 +# reporter-bugzilla -f -b
348 diff --git a/src/plugins/python_event.conf b/src/plugins/python_event.conf
349 index 16508c1..0cd10c6 100644
350 --- a/src/plugins/python_event.conf
351 +++ b/src/plugins/python_event.conf
352 @@ -1,6 +1,6 @@
353 EVENT=post-create analyzer=Python
354 abrt-action-analyze-python
355
356 -EVENT=report_Bugzilla analyzer=Python
357 - test -f component || abrt-action-save-package-data
358 - reporter-bugzilla -f -b -c /etc/libreport/plugins/Bugzilla.conf
359 +# EVENT=report_Bugzilla analyzer=Python
360 +# test -f component || abrt-action-save-package-data
361 +# reporter-bugzilla -f -b -c /etc/libreport/plugins/Bugzilla.conf
362 --
363 1.7.8.rc1
364
365
366
367
368 1.1 app-admin/abrt/files/abrt-2.0.5-init
369
370 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.5-init?rev=1.1&view=markup
371 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.5-init?rev=1.1&content-type=text/plain
372
373 Index: abrt-2.0.5-init
374 ===================================================================
375 #!/sbin/runscript
376 # Copyright 1999-2011 Gentoo Foundation
377 # Distributed under the terms of the GNU General Public License v2
378 # $Header: /var/cvsroot/gentoo-x86/app-admin/abrt/files/abrt-2.0.5-init,v 1.1 2011/11/16 07:44:24 tetromino Exp $
379
380 description="Automated crash detection service"
381
382 depend() {
383 need dbus logger
384 }
385
386 start() {
387 ebegin "Starting abrtd"
388 start-stop-daemon --start --quiet --pidfile /var/run/abrtd.pid \
389 --exec /usr/sbin/abrtd -- ${ABRTD_OPTS}
390 eend $?
391
392 if [[ "${START_VMCORE}" = "yes" ]]; then
393 ebegin "Running abrt-harvest-vmcore"
394 /usr/sbin/abrt-harvest-vmcore
395 eend $?
396 fi
397
398 if [[ "${START_CCPP}" = "yes" ]]; then
399 ebegin "Installing abrt-ccpp hook"
400 /usr/sbin/abrt-install-ccpp-hook install
401 eend $?
402 fi
403
404 if [[ "${START_OOPS}" = "yes" ]]; then
405 ebegin "Starting abrt-dump-oops"
406 start-stop-daemon --start --quiet \
407 --pidfile /var/run/abrt-dump-oops.pid \
408 --make-pidfile --background \
409 --exec /usr/bin/abrt-dump-oops -- ${OOPS_OPTS}
410 eend $?
411 fi
412 }
413
414 stop() {
415 if [[ "${START_OOPS}" = "yes" ]]; then
416 ebegin "Stopping abrt-dump-oops"
417 start-stop-daemon --stop --quiet \
418 --pidfile /var/run/abrt-dump-oops.pid
419 eend $?
420 fi
421
422 if [[ "${START_CCPP}" = "yes" ]]; then
423 ebegin "Uninstalling abrt-ccpp hook"
424 /usr/sbin/abrt-install-ccpp-hook uninstall
425 eend $?
426 fi
427
428 ebegin "Stopping abrtd"
429 start-stop-daemon --stop --quiet --pidfile /var/run/abrtd.pid
430 eend $?
431 }
432
433
434
435 1.1 app-admin/abrt/files/abrt-2.0.6-format-security.patch
436
437 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.6-format-security.patch?rev=1.1&view=markup
438 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/abrt/files/abrt-2.0.6-format-security.patch?rev=1.1&content-type=text/plain
439
440 Index: abrt-2.0.6-format-security.patch
441 ===================================================================
442 From d0d7954713541df4612ab5b54b2808aae9a3d6f0 Mon Sep 17 00:00:00 2001
443 From: Alexandre Rostovtsev <tetromino@g.o>
444 Date: Wed, 16 Nov 2011 00:41:10 -0500
445 Subject: [PATCH] Don't use server response as a format string
446
447 It's bad practice even for trusted servers, and makes gcc complain about
448 format-security.
449 ---
450 src/plugins/abrt-retrace-client.c | 2 +-
451 1 files changed, 1 insertions(+), 1 deletions(-)
452
453 diff --git a/src/plugins/abrt-retrace-client.c b/src/plugins/abrt-retrace-client.c
454 index 0fb17a3..4c30334 100644
455 --- a/src/plugins/abrt-retrace-client.c
456 +++ b/src/plugins/abrt-retrace-client.c
457 @@ -958,7 +958,7 @@ static int create(bool delete_temp_archive,
458 if (response_code == 500 || response_code == 507)
459 {
460 alert_server_error();
461 - error_msg_and_die(http_body);
462 + error_msg_and_die("%s", http_body);
463 }
464 else if (response_code == 403)
465 {
466 --
467 1.7.8.rc1