abrt-2.0.12-gentoo.patch 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399
  1. From 1f56956ade3bd28ef192fba675e798db58b3ae40 Mon Sep 17 00:00:00 2001
  2. From: Alexandre Rostovtsev <tetromino@gentoo.org>
  3. Date: Sat, 22 Sep 2012 05:45:28 -0400
  4. Subject: [PATCH] Disable code not relevant for Gentoo
  5. Disable code that is only relevant for an RPM-based distro or that
  6. requires additional bugs.gentoo.org infrastructure support. Ensure that
  7. crashes still get analyzed even if they cannot be assigned to any
  8. package (since we lack any way of doing that at the moment).
  9. ---
  10. configure.ac | 1 -
  11. doc/Makefile.am | 2 --
  12. src/daemon/Makefile.am | 18 ----------
  13. src/daemon/abrt_event.conf | 14 +++++---
  14. src/plugins/Makefile.am | 71 +------------------------------------
  15. src/plugins/abrt-action-list-dsos | 18 +++-------
  16. src/plugins/ccpp_event.conf | 29 +--------------
  17. src/plugins/ccpp_retrace_event.conf | 8 +----
  18. src/plugins/koops_event.conf | 15 --------
  19. src/plugins/python_event.conf | 16 ---------
  20. src/plugins/xorg_event.conf | 2 +-
  21. 11 files changed, 17 insertions(+), 177 deletions(-)
  22. diff --git a/configure.ac b/configure.ac
  23. index bb2b986..a78d9f8 100644
  24. --- a/configure.ac
  25. +++ b/configure.ac
  26. @@ -79,7 +79,6 @@ PKG_CHECK_MODULES([GTK], [gtk+-3.0])
  27. PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.21])
  28. PKG_CHECK_MODULES([DBUS], [dbus-1])
  29. PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
  30. -PKG_CHECK_MODULES([RPM], [rpm])
  31. PKG_CHECK_MODULES([LIBNOTIFY], [libnotify])
  32. PKG_CHECK_MODULES([NSS], [nss])
  33. PKG_CHECK_MODULES([BTPARSER], [btparser])
  34. diff --git a/doc/Makefile.am b/doc/Makefile.am
  35. index 0a829d4..33cc8e6 100644
  36. --- a/doc/Makefile.am
  37. +++ b/doc/Makefile.am
  38. @@ -16,11 +16,9 @@ MAN1_TXT += abrt-cli.txt
  39. MAN1_TXT += abrt-action-save-package-data.txt
  40. MAN1_TXT += abrt-install-ccpp-hook.txt
  41. MAN1_TXT += abrt-action-analyze-vmcore.txt
  42. -MAN1_TXT += abrt-bodhi.txt
  43. MAN5_TXT =
  44. MAN5_TXT += abrt.conf.txt
  45. -MAN5_TXT += abrt-action-save-package-data.conf.txt
  46. MAN8_TXT =
  47. MAN8_TXT += abrtd.txt abrt-dbus.txt
  48. diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am
  49. index 2e24403..777dfc4 100644
  50. --- a/src/daemon/Makefile.am
  51. +++ b/src/daemon/Makefile.am
  52. @@ -6,9 +6,6 @@ dist_eventsconf_DATA = \
  53. bin_SCRIPTS = \
  54. abrt-handle-upload
  55. -bin_PROGRAMS = \
  56. - abrt-action-save-package-data
  57. -
  58. sbin_PROGRAMS = \
  59. abrtd \
  60. abrt-server
  61. @@ -55,21 +52,6 @@ abrt_handle_event_LDADD = \
  62. $(LIBREPORT_LIBS) \
  63. $(BTPARSER_LIBS)
  64. -abrt_action_save_package_data_SOURCES = \
  65. - rpm.h rpm.c \
  66. - abrt-action-save-package-data.c
  67. -abrt_action_save_package_data_CPPFLAGS = \
  68. - -I$(srcdir)/../include \
  69. - -I$(srcdir)/../lib \
  70. - -DCONF_DIR=\"$(CONF_DIR)\" \
  71. - $(GLIB_CFLAGS) \
  72. - $(LIBREPORT_CFLAGS) \
  73. - -D_GNU_SOURCE
  74. -abrt_action_save_package_data_LDADD = \
  75. - $(RPM_LIBS) \
  76. - $(LIBREPORT_LIBS) \
  77. - ../lib/libabrt.la
  78. -
  79. daemonconfdir = $(CONF_DIR)
  80. dist_daemonconf_DATA = \
  81. abrt.conf \
  82. diff --git a/src/daemon/abrt_event.conf b/src/daemon/abrt_event.conf
  83. index a1411e4..aab7dc0 100644
  84. --- a/src/daemon/abrt_event.conf
  85. +++ b/src/daemon/abrt_event.conf
  86. @@ -44,7 +44,7 @@
  87. # Determine in which package/component the crash happened (if not yet done):
  88. -EVENT=post-create component= remote!=1
  89. +#EVENT=post-create component= remote!=1
  90. abrt-action-save-package-data
  91. @@ -60,19 +60,19 @@ EVENT=post-create
  92. if [ -f uid ]; then getent passwd "`cat uid`" | cut -d: -f1 >username; fi
  93. -EVENT=notify package!= uid!=
  94. +EVENT=notify uid!=
  95. dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \
  96. string:"`cat package`" string:"$DUMP_DIR" string:"`cat uid`"
  97. -EVENT=notify package!= uid=
  98. +EVENT=notify uid=
  99. dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \
  100. string:"`cat package`" string:"$DUMP_DIR"
  101. -EVENT=notify-dup package!= uid!=
  102. +EVENT=notify-dup uid!=
  103. dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \
  104. string:"`cat package`" string:"$DUMP_DIR" string:"`cat uid`"
  105. -EVENT=notify-dup package!= uid=
  106. +EVENT=notify-dup uid=
  107. dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \
  108. string:"`cat package`" string:"$DUMP_DIR"
  109. @@ -108,6 +108,10 @@ EVENT=notify-dup package!= uid=
  110. #EVENT=post-create
  111. reporter-upload -u scp://user:password@server.name/var/spool/abrt-upload || :
  112. +#report-gui event is used for reporting by abrt-applet and abrt-gui
  113. +
  114. +EVENT=report-gui analyzer=CCpp
  115. + report-gtk -e analyze_LocalGDB -e report_Logger -- "$DUMP_DIR"
  116. #open-gui event is used by abrt-gui's "Edit"->"Open problem data"
  117. diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
  118. index 10ab579..f0248b1 100644
  119. --- a/src/plugins/Makefile.am
  120. +++ b/src/plugins/Makefile.am
  121. @@ -1,7 +1,6 @@
  122. -include ../../config.mak
  123. bin_SCRIPTS = \
  124. - abrt-action-install-debuginfo \
  125. abrt-action-analyze-core \
  126. abrt-action-analyze-vmcore \
  127. abrt-action-list-dsos
  128. @@ -16,12 +15,7 @@ bin_PROGRAMS = \
  129. abrt-action-trim-files \
  130. abrt-action-generate-backtrace \
  131. abrt-action-generate-core-backtrace \
  132. - abrt-action-analyze-backtrace \
  133. - abrt-retrace-client \
  134. - abrt-dedup-client \
  135. - abrt-bodhi
  136. -
  137. -libexec_PROGRAMS = abrt-action-install-debuginfo-to-abrt-cache
  138. + abrt-action-analyze-backtrace
  139. #dist_pluginsconf_DATA = Python.conf
  140. @@ -44,7 +38,6 @@ eventsconfdir = $(EVENTS_CONF_DIR)
  141. dist_eventsconf_DATA = \
  142. ccpp_event.conf \
  143. - ccpp_retrace_event.conf \
  144. koops_event.conf \
  145. xorg_event.conf \
  146. vmcore_event.conf \
  147. @@ -56,7 +49,6 @@ dist_eventsconf_DATA = \
  148. PYTHON_FILES = \
  149. - abrt-action-install-debuginfo.in \
  150. abrt-action-list-dsos \
  151. abrt-action-analyze-core \
  152. abrt-action-analyze-vmcore.in
  153. @@ -69,7 +61,6 @@ EXTRA_DIST = \
  154. collect_vimrc_user.xml.in \
  155. collect_vimrc_system.xml.in \
  156. analyze_LocalGDB.xml.in \
  157. - analyze_RetraceServer.xml.in \
  158. analyze_VMcore.xml.in \
  159. abrt-action-analyze-vmcore \
  160. https-utils.h \
  161. @@ -204,64 +195,4 @@ abrt_action_analyze_backtrace_LDADD = \
  162. $(LIBREPORT_LIBS) \
  163. $(BTPARSER_LIBS)
  164. -abrt_action_install_debuginfo_to_abrt_cache_SOURCES = \
  165. - abrt-action-install-debuginfo-to-abrt-cache.c
  166. -abrt_action_install_debuginfo_to_abrt_cache_CPPFLAGS = \
  167. - -I$(srcdir)/../include \
  168. - -I$(srcdir)/../lib \
  169. - -D_GNU_SOURCE \
  170. - $(LIBREPORT_CFLAGS) \
  171. - -Wall -Wwrite-strings
  172. -abrt_action_install_debuginfo_to_abrt_cache_LDADD = \
  173. - $(LIBREPORT_LIBS) \
  174. - ../lib/libabrt.la
  175. -
  176. -abrt_retrace_client_SOURCES = \
  177. - abrt-retrace-client.c \
  178. - https-utils.c
  179. - abrt_retrace_client_CFLAGS = \
  180. - -I$(srcdir)/../include \
  181. - -I$(srcdir)/../lib \
  182. - $(NSS_CFLAGS) \
  183. - $(GLIB_CFLAGS) \
  184. - -D_GNU_SOURCE \
  185. - $(LIBREPORT_CFLAGS)
  186. - abrt_retrace_client_LDADD = \
  187. - $(LIBREPORT_LIBS) \
  188. - $(BTPARSER_LIBS) \
  189. - $(NSS_LIBS)
  190. -
  191. -abrt_dedup_client_SOURCES = \
  192. - abrt-dedup-client.c \
  193. - https-utils.c
  194. - abrt_dedup_client_CFLAGS = \
  195. - -I$(srcdir)/../include \
  196. - -I$(srcdir)/../lib \
  197. - $(NSS_CFLAGS) \
  198. - $(GLIB_CFLAGS) \
  199. - -D_GNU_SOURCE \
  200. - $(LIBREPORT_CFLAGS)
  201. - abrt_dedup_client_LDADD = \
  202. - $(LIBREPORT_LIBS) \
  203. - $(BTPARSER_LIBS) \
  204. - $(NSS_LIBS)
  205. -
  206. -abrt_bodhi_SOURCES = \
  207. - bodhi.c
  208. - abrt_bodhi_CPPFLAGS = \
  209. - -I$(srcdir)/../include \
  210. - -I$(srcdir)/../lib \
  211. - $(GLIB_CFLAGS) \
  212. - $(LIBREPORT_CFLAGS) \
  213. - $(LIBREPORT_WEB_CFLAGS) \
  214. - $(JSON_C_CFLAGS) \
  215. - $(RPM_CFLAGS) \
  216. - -D_GNU_SOURCE
  217. - abrt_bodhi_LDADD = \
  218. - $(JSON_C_LIBS) \
  219. - $(RPM_LIBS) \
  220. - $(LIBREPORT_LIBS) \
  221. - $(LIBREPORT_WEB_LIBS)
  222. -
  223. -
  224. DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
  225. diff --git a/src/plugins/abrt-action-list-dsos b/src/plugins/abrt-action-list-dsos
  226. index 81a9927..bf1491c 100644
  227. --- a/src/plugins/abrt-action-list-dsos
  228. +++ b/src/plugins/abrt-action-list-dsos
  229. @@ -5,7 +5,6 @@
  230. import sys
  231. import os
  232. import getopt
  233. -import rpm
  234. def log(s):
  235. sys.stderr.write("%s\n" % s)
  236. @@ -68,19 +67,10 @@ if __name__ == "__main__":
  237. try:
  238. dso_paths = parse_maps(memfile)
  239. for path in dso_paths:
  240. - ts = rpm.TransactionSet()
  241. - mi = ts.dbMatch('basenames', path)
  242. - if len(mi):
  243. - for h in mi:
  244. - if outname:
  245. - outfile = xopen(outname, "w")
  246. - outname = None
  247. - outfile.write("%s %s (%s) %s\n" %
  248. - (path,
  249. - h[rpm.RPMTAG_NEVRA],
  250. - h[rpm.RPMTAG_VENDOR],
  251. - h[rpm.RPMTAG_INSTALLTIME])
  252. - )
  253. + if outname:
  254. + outfile = xopen(outname, "w")
  255. + outname = None
  256. + outfile.write(path)
  257. except Exception, ex:
  258. error_msg_and_die("Can't get the DSO list: %s" % ex)
  259. diff --git a/src/plugins/ccpp_event.conf b/src/plugins/ccpp_event.conf
  260. index 81b14d2..cda0b7d 100644
  261. --- a/src/plugins/ccpp_event.conf
  262. +++ b/src/plugins/ccpp_event.conf
  263. @@ -31,31 +31,4 @@ EVENT=collect_xsession_errors analyzer=CCpp dso_list~=.*/libX11.*
  264. # or was this ability lost with move to python installer?
  265. EVENT=analyze_LocalGDB analyzer=CCpp
  266. abrt-action-analyze-core --core=coredump -o build_ids &&
  267. - /usr/libexec/abrt-action-install-debuginfo-to-abrt-cache --size_mb=4096 &&
  268. - abrt-action-generate-backtrace &&
  269. - abrt-action-analyze-backtrace &&
  270. - (
  271. - bug_id=$(reporter-bugzilla -h `cat duphash`) &&
  272. - if test -n "$bug_id"; then
  273. - abrt-bodhi -r -b $bug_id
  274. - fi
  275. - )
  276. -
  277. -
  278. -# Bugzilla requires nonempty duphash
  279. -EVENT=report_Bugzilla analyzer=CCpp duphash!=
  280. - abrt-dedup-client
  281. - test -f component || abrt-action-save-package-data
  282. - reporter-bugzilla -b -c /etc/libreport/plugins/bugzilla.conf
  283. -
  284. -# Send micro report
  285. -EVENT=report_uReport analyzer=CCpp
  286. - reporter-ureport
  287. -
  288. -# update ABRT database after successful report to bugzilla
  289. -EVENT=post_report analyzer=CCpp
  290. - reporter-ureport -r
  291. -
  292. -# Reporting of C/Cpp problems
  293. -EVENT=report-gui analyzer=CCpp
  294. - report-gtk -e report_uReport -e analyze_RetraceServer -e report_Bugzilla -e post_report -- "$DUMP_DIR"
  295. + abrt-action-generate-backtrace
  296. diff --git a/src/plugins/ccpp_retrace_event.conf b/src/plugins/ccpp_retrace_event.conf
  297. index 60e53d7..893502f 100644
  298. --- a/src/plugins/ccpp_retrace_event.conf
  299. +++ b/src/plugins/ccpp_retrace_event.conf
  300. @@ -1,9 +1,3 @@
  301. EVENT=analyze_RetraceServer analyzer=CCpp
  302. abrt-retrace-client batch --dir "$DUMP_DIR" --status-delay 10 &&
  303. - abrt-action-analyze-backtrace &&
  304. - (
  305. - bug_id=$(reporter-bugzilla -h `cat duphash`) &&
  306. - if test -n "$bug_id"; then
  307. - abrt-bodhi -r -b $bug_id
  308. - fi
  309. - )
  310. + abrt-action-analyze-backtrace
  311. diff --git a/src/plugins/koops_event.conf b/src/plugins/koops_event.conf
  312. index 91759b1..41708df 100644
  313. --- a/src/plugins/koops_event.conf
  314. +++ b/src/plugins/koops_event.conf
  315. @@ -14,18 +14,3 @@ EVENT=post-create analyzer=Kerneloops
  316. # report
  317. #EVENT=report_Kerneloops analyzer=Kerneloops
  318. reporter-kerneloops
  319. -
  320. -EVENT=report_Bugzilla analyzer=Kerneloops
  321. - reporter-bugzilla -b
  322. -
  323. -# Send micro report
  324. -EVENT=report_uReport analyzer=Kerneloops
  325. - reporter-ureport
  326. -
  327. -# update ABRT database after successful report to bugzilla
  328. -EVENT=post_report analyzer=Kerneloops
  329. - reporter-ureport -r
  330. -
  331. -# Reporting of kernel oopses
  332. -EVENT=report-gui analyzer=Kerneloops
  333. - report-gtk -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR"
  334. diff --git a/src/plugins/python_event.conf b/src/plugins/python_event.conf
  335. index e60df11..66b41f2 100644
  336. --- a/src/plugins/python_event.conf
  337. +++ b/src/plugins/python_event.conf
  338. @@ -1,19 +1,3 @@
  339. EVENT=post-create analyzer=Python
  340. abrt-action-analyze-python
  341. abrt-action-generate-core-backtrace
  342. -
  343. -EVENT=report_Bugzilla analyzer=Python
  344. - test -f component || abrt-action-save-package-data
  345. - reporter-bugzilla -b -c /etc/libreport/plugins/bugzilla.conf
  346. -
  347. -# Send micro report
  348. -EVENT=report_uReport analyzer=Python
  349. - reporter-ureport
  350. -
  351. -# update ABRT database after successful report to bugzilla
  352. -EVENT=post_report analyzer=Python
  353. - reporter-ureport -r
  354. -
  355. -# Reporting of python exceptions
  356. -EVENT=report-gui analyzer=Python
  357. - report-gtk -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR"
  358. diff --git a/src/plugins/xorg_event.conf b/src/plugins/xorg_event.conf
  359. index b974a6b..5476230 100644
  360. --- a/src/plugins/xorg_event.conf
  361. +++ b/src/plugins/xorg_event.conf
  362. @@ -33,4 +33,4 @@ EVENT=report_Bugzilla analyzer=xorg
  363. # Reporting of xorg problems
  364. EVENT=report-gui analyzer=xorg
  365. - report-gtk -e report_Bugzilla -- "$DUMP_DIR"
  366. + report-gtk -e report_Logger -- "$DUMP_DIR"
  367. --
  368. 1.7.12