diff options
author | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-09-22 20:12:52 +0000 |
---|---|---|
committer | Alexandre Rostovtsev <tetromino@gentoo.org> | 2012-09-22 20:12:52 +0000 |
commit | 43bdd4ae2e7828c75b51c1132e0caf50f017aeef (patch) | |
tree | ee6fa169c939de1d6f68169bcdcb774502e18f54 /app-admin/abrt | |
parent | Version bump. Fix automake-1.12 problems with a proper patch. (diff) | |
download | historical-43bdd4ae2e7828c75b51c1132e0caf50f017aeef.tar.gz historical-43bdd4ae2e7828c75b51c1132e0caf50f017aeef.tar.bz2 historical-43bdd4ae2e7828c75b51c1132e0caf50f017aeef.zip |
Version bump. Fix automake-1.12 problems with a proper patch.
Package-Manager: portage-2.2.0_alpha128/cvs/Linux x86_64
Diffstat (limited to 'app-admin/abrt')
-rw-r--r-- | app-admin/abrt/ChangeLog | 10 | ||||
-rw-r--r-- | app-admin/abrt/Manifest | 19 | ||||
-rw-r--r-- | app-admin/abrt/abrt-2.0.12.ebuild | 114 | ||||
-rw-r--r-- | app-admin/abrt/files/abrt-2.0.12-automake-1.12.patch | 64 | ||||
-rw-r--r-- | app-admin/abrt/files/abrt-2.0.12-dbus-fallback.patch | 111 | ||||
-rw-r--r-- | app-admin/abrt/files/abrt-2.0.12-gentoo.patch | 398 | ||||
-rw-r--r-- | app-admin/abrt/files/abrt-2.0.12-init | 57 |
7 files changed, 767 insertions, 6 deletions
diff --git a/app-admin/abrt/ChangeLog b/app-admin/abrt/ChangeLog index 692a7dbe0fdc..e44b5bd7fbad 100644 --- a/app-admin/abrt/ChangeLog +++ b/app-admin/abrt/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for app-admin/abrt # Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/abrt/ChangeLog,v 1.13 2012/07/25 12:41:37 jlec Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/abrt/ChangeLog,v 1.14 2012/09/22 20:12:52 tetromino Exp $ + +*abrt-2.0.12 (22 Sep 2012) + + 22 Sep 2012; Alexandre Rostovtsev <tetromino@gentoo.org> +abrt-2.0.12.ebuild, + +files/abrt-2.0.12-automake-1.12.patch, + +files/abrt-2.0.12-dbus-fallback.patch, +files/abrt-2.0.12-gentoo.patch, + +files/abrt-2.0.12-init: + Version bump. Fix automake-1.12 problems with a proper patch. 25 Jul 2012; Justin Lecher <jlec@gentoo.org> abrt-2.0.8.ebuild, metadata.xml: Fix for automake-1.12, #427926 diff --git a/app-admin/abrt/Manifest b/app-admin/abrt/Manifest index 0980d60061f2..d3872fc8bca8 100644 --- a/app-admin/abrt/Manifest +++ b/app-admin/abrt/Manifest @@ -1,23 +1,32 @@ -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 +AUX abrt-2.0.12-automake-1.12.patch 1905 SHA256 6a3772721095070dd792a73838440244c101a7522785c96614cc8460a368e415 SHA512 f29fd4bcb33bb20fd1d555ddc9dc21bb243641bb0d6a44d5a49948f2c6221404482718f4d6a4bb68a8e59945c2ca5566faab2628fa4c98f7900fa76e994ad7cb WHIRLPOOL 2a029f546aba01e70f45d8fc3f3a08dbf8d89882762ed424b7344e062306eb7ca7becdd8c598deee0c8400b9a550c82536575360fc265b50cd9a4a223f7d53c2 +AUX abrt-2.0.12-dbus-fallback.patch 3515 SHA256 f82f2a42c632d4e9e4ebdc2dec46efc657a964de058dc1e0c4714bb6bc13f1fb SHA512 6f6c298c14e0f6a0e127c635337883ee9ae3f1afa0229064a7bd2ad9431c5ec144452c33f2ee65a3ba0aebbcd33c10f9688ff8f74a553ad179a3faa098a9dbcd WHIRLPOOL 22154cd7504f534c3a554adace06631b1614f1929563f4c7e3661d36da723e0727407736208ff03987906522c5e18bb2766874d5d6ce8e535f93d22d24135888 +AUX abrt-2.0.12-gentoo.patch 13050 SHA256 05c8e5ae82432ea13ba54ef3c0c7b0b64219478901d13cf89d46c3191c018d1a SHA512 246eaf8faf1a5793837be94ecc3a56dc37488473140b05c17d6383c235922494468fac7aaa18f50654395c0b4fbaafc904262a3c15a8dc9fc21de320da43bbfa WHIRLPOOL 43708194563f677f38969ac4c20a679a46809573c75fd774e85aeb50bc8bdc53a932bf06394095f6cbb28e67edcf53237c9a6915627a9a3c841e1d3ff168af5f +AUX abrt-2.0.12-init 1429 SHA256 c910debfc1bad80a36431d18aab4159b3a2ea606a5c6175c163862e1d6d57862 SHA512 8d50eee36564ac8a4f6db878a0a9709ec0c80641c03a18a73407891af36e248a030db2fc4e8c5c06d9d53958aaec5c7aa9760e0c3fb482b660f4ef91d60af14d WHIRLPOOL cce30cfb3955dcb4be927999657dbc4f49c92f765913e2b292e072ab7bdcf5c0aeba3cca1cebe4a3e18fdbd80696e20a62bf92f17cb1bc448e9bed1c9e6956ef AUX abrt-2.0.5-conf 390 SHA256 1730ac3e69309bcff1ba3c599da1d19e7ca4ac623504613e928d4de0cd8640ec SHA512 97f4a0e5e9c058efa0028a8cae7e79e907b37d114769c6015ccb13847fe18b1e0712b26d4f1a4957449c3a2141ab99df57ef57897aa376d8987779ac29a93478 WHIRLPOOL c29802d316faa4e434c2c2d74c363dbd6af3229be681cdbfe899a65238d538d5c38954fbf55230568ec5fe9679249a1d93856590cceb32de3743b53229927593 AUX abrt-2.0.5-init 1408 SHA256 2894a7b5c98c142ba1318679c48a3679885549b36ca218a79cbb2fe5eb7aecba SHA512 5c703a776373a3792288e4f7dc95e39c02053b8145c28068aed7644d7034ada259370f5755f6b80901e30ccbc77a1d4028a187ed0e82757d5d21aa2a6cfd7f46 WHIRLPOOL 2e6f0146d079b74a2de76755a5aed150483490f2a3b007298fde2a55f4b5f63db4f38a731e3dbc5b94a5dd4f3bcd7b67588f757544a103bce133e9c478a909e8 AUX abrt-2.0.6-format-security.patch 911 SHA256 23059d8bfc28ed3277828493dc267801baa1351e5a8a70c4879fbac3742f5ec8 SHA512 8e9f8bb37698834b998d1d4a9452e17f5484a2fa9fbc400b80f2154fb4f7ad35dcbc65112afa3fef2f1b2ccf78a01f745e436e61323c40d76f17da11a6229b71 WHIRLPOOL 0f3c6998e00608099ff5cce33ab07326776244ad666bb72a714652e60fcd4ef73cb75fffe0936f930588b3fa0ba383f1318eed60875961077747a30887da4e77 AUX abrt-2.0.6-gentoo.patch 8192 SHA256 47ab22b09079fa9420d5dd179ade4fd78ff68373170b925be2d084ff8d377200 SHA512 363e3d33c31ef742c8d2115a0b5172f7e4a4a3f08f53729db760c5ef261e1b21c33f2acdcbd15092636e647ade78904b73c51cd69c6a993f60934600f4ec569b WHIRLPOOL 8c633537d816053c2efff1d70a6f3cf348cd8b583418eacda2e11eac2b4fc33a6cc23810f3176e025d9ae522d62f334eefeafd6f0807cda35febee7be349397f AUX abrt-2.0.6-glib-2.31.patch 2388 SHA256 89b3bd2abb06f3eae45f1252a32ff88223e42cf980e30cb5fa7af36d22df70be SHA512 52967b1010119ac9ca5274520aa6844ae4702d1304a659c80234f90a5c9561ecf603a5ad076faf091d90b34f73cce3e2546d8e131ca71633488101c0d6d61684 WHIRLPOOL 02380816b66fb70f78efca200b4c7bda0c1b9f6e87dec9a2eee40debb8a9dbeae3e10d81038aece17e9aaf90051e3790844f743579dc20240f067d8698f20627 AUX abrt-2.0.8-gentoo.patch 9404 SHA256 24679bb205b0b71a6fc82013cec993c96264c784a77cf6acb86d6cb46c0a3df9 SHA512 3a6a3e762dd97b213d152587d2e5d56210caf72505a843a5307d5ad2952da2f96e81969795f193beec578f2b2785bdbde508c6816a6ec76565682807c57753b1 WHIRLPOOL 2e51a682f6e58704fe1cbfc7c3f9d1fcd86f889b3ce27cac931b0ec7838c0fcda7d947469cc3a5e923ee4a05aef809cdf65556e078e17cbc10c0f5a9fe7fb545 +DIST abrt-2.0.12.tar.gz 1090121 SHA256 2957f4136958078c3c8c9b2031febd8b322ef8705ca25a51592279b3ccd5c9e2 SHA512 5432205edb4483fb1883b9bcebab48784b16dd9e72c3a929ea0d50c48dab638d80f136b6b0d7648d8ec9fcb79d5ce8c1be37d36301d3b2b151868901be82a63a WHIRLPOOL 9b39fe91f77e2de5b3816d5cfc10f75c7c3d7dedfc354ed4e052b50e6cebb94bd26fec94aaba6cfd1cc79b71f1cc34b77bfd70d27d25761fa853a6a2af5ef7ce DIST abrt-2.0.6.tar.gz 996676 SHA256 0413a6b6143d0e667bb9c2c34a8ddfdb82d0dff04050acd254eb86943dd181a1 SHA512 3a4715c18fe04fb7f4b6dc921b08380795a55628926b7cfb7b33750db3dfb9d8c0ce6c975edc945c2c8f030ae1095ebef5397e9ccbedeb34a08a1798d462c07c WHIRLPOOL a5d1b231502f860a12a06f302889786349bd3e1ec84651d33443eb8214977e7cc943d6140865c17aef2a76a61a66e4cbb052e17acb1db053a506a2d8183bc57d DIST abrt-2.0.8.tar.gz 960737 SHA256 aaad9f6914e40bda8783ff10e34f62a9712bfebda06373a7c056e3ca8bad4e5b SHA512 3b4dbb09309a45d3596c6d890f103e95aff12a4246bcea1dc5ae558869ff138c87559f0362534156a5d628a642e43621a5147a6eeaa5abbb3d3b5299d42ced17 WHIRLPOOL 51f82e8913708c7398889ccff0e2a0d41fe9e037c20a32547bae7f859ff2e04004f399fd5f118b20c14dc4438d7bd56fa6fc6318ad99f474f218dd6e5bb0d32c +EBUILD abrt-2.0.12.ebuild 2795 SHA256 c69d21aea2a987c25402993f6f4526701c4819ed473395af3ca2d725bf6d51b1 SHA512 68c4e8ef272d49dfc99d9be16a842f0b18cc72d249a3dd88367daf9de0732ca74eef7459970773f6348e5c5b7f869a5413bce342f0d747706034b4036a5657bb WHIRLPOOL bc5136ab6aeebb2530d11122a6a26e04e9ccc556dad0dc5d34946b8baedd0095bc7b7b184fe24a3d91078e66d9851ee82292965951f443f411fc88d04b244b91 EBUILD abrt-2.0.6.ebuild 2976 SHA256 64e4a2bcba4db8b8154179d787f898d5727412efac4314c47d249b38080d3c15 SHA512 a36c5c8979b9dd619894baee87c2a7351f747c1c866f8860b56d5942d3d5657995d9ab35d3ffbb9667fc0e0606df754d2fd08553a5457ebeefa645c742ee249a WHIRLPOOL 09a58c9c77fe18d48fd95c1765b90a5bd3110bf0f30608067d244e6db2593d7de5360719032406fe4a0533d0ff6b4f05b48192ef3ba8f5be863a039b2311b9b4 EBUILD abrt-2.0.8.ebuild 3379 SHA256 4ec710c16d345ae256cdbca554544d432aea57e4d230f27d3922386a61d3d6ab SHA512 52b64270f58e246909add7fdf52a091f8889ce225a594e0fee2441092ecc778481a79947982eb238533c85f94796c2f716e2de1782ec520a65ec2e13d47f57a8 WHIRLPOOL 2530383714bb6de2b25d416c61b4529ce1b393cdba01f318fc559a6788f4fc228d320070df0256227513a62d81d3e86655900a6c187f525c0e5058b88bc0c64e -MISC ChangeLog 2177 SHA256 1694c1df0f2f9ad6cf22c66c0716e8983888023178d233b355c3354434bfe0f9 SHA512 769993238103558bd7270eba76ca9ace68f08eef2a591bb7f575a7cc7ac33a64a1695b2e440cfe9c7a66dad2a2a9fbda4598891315a18f729195fa47ef9ea49c WHIRLPOOL 47a1c14dc5ed712d2c2532654e53ad2c0baacd44170b9e5c44f45ff29ea95eef366032bed8072d75f5335931a157ce46bab67b451791fd37b76ed1b661fb8bc0 +MISC ChangeLog 2499 SHA256 4814378800f342ed00d58aec849f9b1325cc16413e9ef8d3eb9684293c9acad4 SHA512 43aadcc73419000a43d34bb4957b28db2ae708e7f49c9e89ea12daf0b3e7d90f87d27ce01f281771b077336c0b4489ca690314260e6beaad201349f81d8af2a0 WHIRLPOOL b5dd4eee0439d20546bb9eab04752825f78ff5afec8f7f1cd82a9a86342f2f8445863b11c8eeeb0f125e22aa00875f95a7697bdf781522081234c561c86357d2 MISC metadata.xml 159 SHA256 b1ccd57b80d8d6ee7a9924844efd69830edfb744ab818d67e50a008b5aae7d4b SHA512 9408846d0f3194f62043b64e325aed9e8cce9a74b556865acf71facc3ad59a092dccbbb3c608ada40b73625eaac93a7bcc976858c6a47426bb8fadb6f830fe2b WHIRLPOOL 4700c8b71899b5acffcc46580315d4d116b478cfa283e0ea0569ab180e46850ce85d73c7370d989e53dd8aecb69ed843d2716bfebd3c5d74a7b5c3d4b94b96bb -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) -Comment: GPGTools - http://gpgtools.org -iEYEAREIAAYFAlAP6YYACgkQgAnW8HDreRaCpACeOht626KJrcpYLxx9Bvm66GZj -234An2TPquYUHgZ6XHiSuu6bR6WShr4+ -=sp/J +iQEcBAEBCAAGBQJQXhvFAAoJEJ0WA1zPCt1hHJcIAJdkY7+LnTPVlC9ErQ0K3vkV +mF3BDqnd0eYgWTNOUoUbPhB98YDuMX4iKogAercPGzmQRmZwOl9nNMkRUV4IQ0JH +fN9lzQPnE5ZXzHev7HcntiyqeFHTA6F86JjG6zb7QoMe6iwCxbfXLtbIgNIw9aCw +JfA98+0mc5aMzlhK6sO3l836DgBpS4DwUoJ0fCM4icCXVjqlgZFa4647lTg85lQh +QUR1UtfkDNPTt2LJd0xKDBHmeMmIoy5tBpKwp/8wfDsx/28DR19PXHtTNK3cR7eS +JEKOh+EZPmtSQHbIp0YKmpd8d+Ttv284NYZI2nF/DCC24doylAZD+A5vpd4wGPI= +=VEFu -----END PGP SIGNATURE----- diff --git a/app-admin/abrt/abrt-2.0.12.ebuild b/app-admin/abrt/abrt-2.0.12.ebuild new file mode 100644 index 000000000000..e65d47d7c635 --- /dev/null +++ b/app-admin/abrt/abrt-2.0.12.ebuild @@ -0,0 +1,114 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/abrt/abrt-2.0.12.ebuild,v 1.1 2012/09/22 20:12:52 tetromino Exp $ + +EAPI="4" +PYTHON_DEPEND="2:2.6" + +# Need gnome2-utils for gnome2_icon_cache_update +inherit autotools eutils gnome2-utils python systemd user + +DESCRIPTION="Automatic bug detection and reporting tool" +HOMEPAGE="https://fedorahosted.org/abrt/" +SRC_URI="https://fedorahosted.org/released/${PN}/${P}.tar.gz" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="debug" + +COMMON_DEPEND=">=dev-libs/btparser-0.18 + >=dev-libs/glib-2.21:2 + >=dev-libs/libreport-2.0.11 + dev-libs/libxml2 + dev-libs/nss + sys-apps/dbus + sys-auth/polkit + sys-fs/inotify-tools + x11-libs/gtk+:3 + x11-libs/libnotify" +RDEPEND="${COMMON_DEPEND} + app-arch/cpio + dev-libs/elfutils + >=sys-devel/gdb-7" +DEPEND="${COMMON_DEPEND} + app-text/asciidoc + app-text/xmlto + >=dev-util/intltool-0.35.0 + virtual/pkgconfig + >=sys-devel/gettext-0.17" + +pkg_setup() { + python_set_active_version 2 + python_pkg_setup + + enewgroup abrt + enewuser abrt -1 -1 -1 abrt +} + +src_prepare() { + # Disable redhat-specific code not usable in gentoo, or that requires + # bugs.gentoo.org infra support. + epatch "${FILESDIR}/${PN}-2.0.12-gentoo.patch" + + # Using a server response as a format string is a bad idea + epatch "${FILESDIR}/${PN}-2.0.6-format-security.patch" + + # pyhook test is sensitive to the format of python's error messages, and + # fails with certain python versions + sed -e '/pyhook.at/ d' \ + -i tests/Makefile.* tests/testsuite.at || die "sed 2 failed" + + # automake-1.12, #427926 + epatch "${FILESDIR}/${PN}-2.0.12-automake-1.12.patch" + + # Fix dbus timeout in gui; in next release + epatch "${FILESDIR}/${P}-dbus-fallback.patch" + + eautoreconf + + python_clean_py-compile_files + python_convert_shebangs -r 2 src +} + +src_configure() { + myeconfargs=( "--localstatedir=${EPREFIX}/var" ) + # --disable-debug enables debug! + use debug && myeconfargs=( "${myeconfargs[@]}" --enable-debug ) + systemd_to_myeconfargs + econf "${myeconfargs[@]}" +} + +src_install() { + default + + keepdir /var/run/abrt + # /var/spool/abrt is created by dev-libs/libreport + + diropts -m 700 -o abrt -g abrt + keepdir /var/spool/abrt-upload + + diropts -m 775 -o abrt -g abrt + keepdir /var/cache/abrt-di + + find "${D}" -name '*.la' -exec rm -f {} + || die + + newinitd "${FILESDIR}/${PN}-2.0.12-init" abrt + newconfd "${FILESDIR}/${PN}-2.0.5-conf" abrt +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + gnome2_icon_cache_update + python_mod_optimize abrt_exception_handler.py + elog "To start the bug detection service on an openrc-based system, do" + elog "# /etc/init.d/abrt start" +} + +pkg_postrm() { + gnome2_icon_cache_update + python_mod_cleanup abrt_exception_handler.py +} diff --git a/app-admin/abrt/files/abrt-2.0.12-automake-1.12.patch b/app-admin/abrt/files/abrt-2.0.12-automake-1.12.patch new file mode 100644 index 000000000000..e2723067cb6e --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-automake-1.12.patch @@ -0,0 +1,64 @@ +From 00704d4eb30dd12d6f4fcf97320c354ed3eacfa7 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Sat, 22 Sep 2012 05:50:38 -0400 +Subject: [PATCH] Fix automake-1.12 autoreconf issues + +Need -Wno-portablity for '%'-style pattern rules in doc/Makefile.am and +':='-style assignments and $(wildcard *~) in src/hooks/Makefile.am. + +Need AM_PROG_CC_C_O for src/applet/applet.c + +gettext-0.18.1.1's AM_GNU_GETTEXT requires AM_PROG_MKDIR_P, causing +problems for automake-1.12. +--- + configure.ac | 8 +++----- + src/daemon/Makefile.am | 2 +- + 2 files changed, 4 insertions(+), 6 deletions(-) + +diff --git a/configure.ac b/configure.ac +index a78d9f8..42acccf 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ AC_INIT([abrt], + [crash-catcher@fedorahosted.org]) + + AC_CONFIG_MACRO_DIR([m4]) +-AM_INIT_AUTOMAKE([-Wall -Werror foreign]) ++AM_INIT_AUTOMAKE([-Wall -Wno-portability -Werror foreign]) + # Support silent build rules. Disable by either passing --disable-silent-rules + # to ./configure or passing V=1 to make + m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) +@@ -12,8 +12,9 @@ AM_SILENT_RULES([yes]) + + + AC_DISABLE_STATIC ++AM_PROG_AR + AC_PROG_LIBTOOL +-AC_PROG_CC ++AM_PROG_CC_C_O + AC_PROG_LN_S + + AC_SYS_LARGEFILE +@@ -30,9 +31,6 @@ GETTEXT_PACKAGE=abrt + AC_SUBST(GETTEXT_PACKAGE) + AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext]) + +-AM_GNU_GETTEXT([external]) +-AM_GNU_GETTEXT_VERSION([0.17]) +- + IT_PROG_INTLTOOL([0.35.0]) + + dnl ****** END **************************************** +diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am +index 777dfc4..5a5f0ea 100644 +--- a/src/daemon/Makefile.am ++++ b/src/daemon/Makefile.am +@@ -63,4 +63,4 @@ EXTRA_DIST = abrt-handle-upload + DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ + + install-data-local: +- $(mkdir_p) '$(DESTDIR)/$(VAR_RUN)' ++ $(MKDIR_P) '$(DESTDIR)/$(VAR_RUN)' +-- +1.7.12 + diff --git a/app-admin/abrt/files/abrt-2.0.12-dbus-fallback.patch b/app-admin/abrt/files/abrt-2.0.12-dbus-fallback.patch new file mode 100644 index 000000000000..e15731bbf04c --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-dbus-fallback.patch @@ -0,0 +1,111 @@ +From 3ddf2f38a47c7cc13dd6f480841b9b90f6304ed4 Mon Sep 17 00:00:00 2001 +From: Denys Vlasenko <vda.linux@googlemail.com> +Date: Mon, 3 Sep 2012 19:01:24 +0200 +Subject: [PATCH] abrt-gui: fall back to direct access if dbus access fails. + Closes #484 + +It looks like this: + +root> abrt-gui +Can't connect to system DBus: Error connecting: No such file or directory +Error in DBus communication, falling back to direct access to '/var/spool/abrt' + +Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com> +--- + src/gui-gtk/main.c | 44 +++++++++++++++++++++++++++----------------- + src/lib/problem_api.c | 5 +++-- + 2 files changed, 30 insertions(+), 19 deletions(-) + +diff --git a/src/gui-gtk/main.c b/src/gui-gtk/main.c +index 2cc4bef..e6e8ef0 100644 +--- a/src/gui-gtk/main.c ++++ b/src/gui-gtk/main.c +@@ -252,23 +252,6 @@ static void add_directory_to_dirlist(const char *problem_dir_path, gpointer data + VERB1 log("added: %s", problem_dir_path); + } + +-static void query_dbus_and_add_to_dirlist(void) +-{ +- GList *problem_dirs = get_problems_over_dbus(g_authorize); +- +- if (problem_dirs) +- { +- g_list_foreach(problem_dirs, (GFunc)add_directory_to_dirlist, /*use_dbus:*/ (void*)true); +- list_free_with_free(problem_dirs); +- } +- +- /* HACK ALERT! We "magically know" that dbus-reported problem dirs +- * live in g_settings_dump_location. +- * Notifications on changes should be implemented to go over dbus too. +- */ +- watch_this_dir(g_settings_dump_location); +-} +- + static void scan_directory_and_add_to_dirlist(const char *path) + { + DIR *dp = opendir(path); +@@ -296,6 +279,33 @@ static void scan_directory_and_add_to_dirlist(const char *path) + watch_this_dir(path); + } + ++static void query_dbus_and_add_to_dirlist(void) ++{ ++ GList *problem_dirs = get_problems_over_dbus(g_authorize); ++ ++ if (problem_dirs == ERR_PTR) ++ { ++ /* One way to trigger this is to temporarily rename ++ * dbus socket (/var/run/dbus/system_bus_socket) ++ */ ++ error_msg("Error in DBus communication, falling back to direct access to '%s'", g_settings_dump_location); ++ scan_directory_and_add_to_dirlist(g_settings_dump_location); ++ return; ++ } ++ ++ if (problem_dirs) ++ { ++ g_list_foreach(problem_dirs, (GFunc)add_directory_to_dirlist, /*use_dbus:*/ (void*)true); ++ list_free_with_free(problem_dirs); ++ } ++ ++ /* HACK ALERT! We "magically know" that dbus-reported problem dirs ++ * live in g_settings_dump_location. ++ * Notifications on changes should be implemented to go over dbus too. ++ */ ++ watch_this_dir(g_settings_dump_location); ++} ++ + static void scan_dirs_and_add_to_dirlist(void) + { + if (!(g_opts & OPT_D)) +diff --git a/src/lib/problem_api.c b/src/lib/problem_api.c +index b9967e8..04f4069 100644 +--- a/src/lib/problem_api.c ++++ b/src/lib/problem_api.c +@@ -144,7 +144,7 @@ GList *get_problems_over_dbus(bool authorize) + { + GDBusProxy *proxy = get_dbus_proxy(); + if (!proxy) +- return NULL; ++ return ERR_PTR; + + GError *error = NULL; + GVariant *result = g_dbus_proxy_call_sync(proxy, +@@ -159,6 +159,7 @@ GList *get_problems_over_dbus(bool authorize) + { + error_msg(_("Can't get problem list from abrt-dbus: %s"), error->message); + g_error_free(error); ++ return ERR_PTR; + } + + GList *list = NULL; +@@ -172,4 +173,4 @@ GList *get_problems_over_dbus(bool authorize) + } + + return list; +-} +\ No newline at end of file ++} +-- +1.7.12 + diff --git a/app-admin/abrt/files/abrt-2.0.12-gentoo.patch b/app-admin/abrt/files/abrt-2.0.12-gentoo.patch new file mode 100644 index 000000000000..0aa4267910e6 --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-gentoo.patch @@ -0,0 +1,398 @@ +From 1f56956ade3bd28ef192fba675e798db58b3ae40 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev <tetromino@gentoo.org> +Date: Sat, 22 Sep 2012 05:45:28 -0400 +Subject: [PATCH] Disable code not relevant for Gentoo + +Disable code that is only relevant for an RPM-based distro or that +requires additional bugs.gentoo.org infrastructure support. Ensure that +crashes still get analyzed even if they cannot be assigned to any +package (since we lack any way of doing that at the moment). +--- + configure.ac | 1 - + doc/Makefile.am | 2 -- + src/daemon/Makefile.am | 18 ---------- + src/daemon/abrt_event.conf | 14 +++++--- + src/plugins/Makefile.am | 71 +------------------------------------ + src/plugins/abrt-action-list-dsos | 18 +++------- + src/plugins/ccpp_event.conf | 29 +-------------- + src/plugins/ccpp_retrace_event.conf | 8 +---- + src/plugins/koops_event.conf | 15 -------- + src/plugins/python_event.conf | 16 --------- + src/plugins/xorg_event.conf | 2 +- + 11 files changed, 17 insertions(+), 177 deletions(-) + +diff --git a/configure.ac b/configure.ac +index bb2b986..a78d9f8 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -79,7 +79,6 @@ PKG_CHECK_MODULES([GTK], [gtk+-3.0]) + PKG_CHECK_MODULES([GLIB], [glib-2.0 >= 2.21]) + PKG_CHECK_MODULES([DBUS], [dbus-1]) + PKG_CHECK_MODULES([LIBXML], [libxml-2.0]) +-PKG_CHECK_MODULES([RPM], [rpm]) + PKG_CHECK_MODULES([LIBNOTIFY], [libnotify]) + PKG_CHECK_MODULES([NSS], [nss]) + PKG_CHECK_MODULES([BTPARSER], [btparser]) +diff --git a/doc/Makefile.am b/doc/Makefile.am +index 0a829d4..33cc8e6 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -16,11 +16,9 @@ MAN1_TXT += abrt-cli.txt + MAN1_TXT += abrt-action-save-package-data.txt + MAN1_TXT += abrt-install-ccpp-hook.txt + MAN1_TXT += abrt-action-analyze-vmcore.txt +-MAN1_TXT += abrt-bodhi.txt + + MAN5_TXT = + MAN5_TXT += abrt.conf.txt +-MAN5_TXT += abrt-action-save-package-data.conf.txt + + MAN8_TXT = + MAN8_TXT += abrtd.txt abrt-dbus.txt +diff --git a/src/daemon/Makefile.am b/src/daemon/Makefile.am +index 2e24403..777dfc4 100644 +--- a/src/daemon/Makefile.am ++++ b/src/daemon/Makefile.am +@@ -6,9 +6,6 @@ dist_eventsconf_DATA = \ + bin_SCRIPTS = \ + abrt-handle-upload + +-bin_PROGRAMS = \ +- abrt-action-save-package-data +- + sbin_PROGRAMS = \ + abrtd \ + abrt-server +@@ -55,21 +52,6 @@ abrt_handle_event_LDADD = \ + $(LIBREPORT_LIBS) \ + $(BTPARSER_LIBS) + +-abrt_action_save_package_data_SOURCES = \ +- rpm.h rpm.c \ +- abrt-action-save-package-data.c +-abrt_action_save_package_data_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- -DCONF_DIR=\"$(CONF_DIR)\" \ +- $(GLIB_CFLAGS) \ +- $(LIBREPORT_CFLAGS) \ +- -D_GNU_SOURCE +-abrt_action_save_package_data_LDADD = \ +- $(RPM_LIBS) \ +- $(LIBREPORT_LIBS) \ +- ../lib/libabrt.la +- + daemonconfdir = $(CONF_DIR) + dist_daemonconf_DATA = \ + abrt.conf \ +diff --git a/src/daemon/abrt_event.conf b/src/daemon/abrt_event.conf +index a1411e4..aab7dc0 100644 +--- a/src/daemon/abrt_event.conf ++++ b/src/daemon/abrt_event.conf +@@ -44,7 +44,7 @@ + + + # Determine in which package/component the crash happened (if not yet done): +-EVENT=post-create component= remote!=1 ++#EVENT=post-create component= remote!=1 + abrt-action-save-package-data + + +@@ -60,19 +60,19 @@ EVENT=post-create + if [ -f uid ]; then getent passwd "`cat uid`" | cut -d: -f1 >username; fi + + +-EVENT=notify package!= uid!= ++EVENT=notify uid!= + dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \ + string:"`cat package`" string:"$DUMP_DIR" string:"`cat uid`" + +-EVENT=notify package!= uid= ++EVENT=notify uid= + dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \ + string:"`cat package`" string:"$DUMP_DIR" + +-EVENT=notify-dup package!= uid!= ++EVENT=notify-dup uid!= + dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \ + string:"`cat package`" string:"$DUMP_DIR" string:"`cat uid`" + +-EVENT=notify-dup package!= uid= ++EVENT=notify-dup uid= + dbus-send --system --type=signal /com/redhat/abrt com.redhat.abrt.Crash \ + string:"`cat package`" string:"$DUMP_DIR" + +@@ -108,6 +108,10 @@ EVENT=notify-dup package!= uid= + #EVENT=post-create + reporter-upload -u scp://user:password@server.name/var/spool/abrt-upload || : + ++#report-gui event is used for reporting by abrt-applet and abrt-gui ++ ++EVENT=report-gui analyzer=CCpp ++ report-gtk -e analyze_LocalGDB -e report_Logger -- "$DUMP_DIR" + + #open-gui event is used by abrt-gui's "Edit"->"Open problem data" + +diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am +index 10ab579..f0248b1 100644 +--- a/src/plugins/Makefile.am ++++ b/src/plugins/Makefile.am +@@ -1,7 +1,6 @@ + -include ../../config.mak + + bin_SCRIPTS = \ +- abrt-action-install-debuginfo \ + abrt-action-analyze-core \ + abrt-action-analyze-vmcore \ + abrt-action-list-dsos +@@ -16,12 +15,7 @@ bin_PROGRAMS = \ + abrt-action-trim-files \ + abrt-action-generate-backtrace \ + abrt-action-generate-core-backtrace \ +- abrt-action-analyze-backtrace \ +- abrt-retrace-client \ +- abrt-dedup-client \ +- abrt-bodhi +- +-libexec_PROGRAMS = abrt-action-install-debuginfo-to-abrt-cache ++ abrt-action-analyze-backtrace + + #dist_pluginsconf_DATA = Python.conf + +@@ -44,7 +38,6 @@ eventsconfdir = $(EVENTS_CONF_DIR) + + dist_eventsconf_DATA = \ + ccpp_event.conf \ +- ccpp_retrace_event.conf \ + koops_event.conf \ + xorg_event.conf \ + vmcore_event.conf \ +@@ -56,7 +49,6 @@ dist_eventsconf_DATA = \ + + + PYTHON_FILES = \ +- abrt-action-install-debuginfo.in \ + abrt-action-list-dsos \ + abrt-action-analyze-core \ + abrt-action-analyze-vmcore.in +@@ -69,7 +61,6 @@ EXTRA_DIST = \ + collect_vimrc_user.xml.in \ + collect_vimrc_system.xml.in \ + analyze_LocalGDB.xml.in \ +- analyze_RetraceServer.xml.in \ + analyze_VMcore.xml.in \ + abrt-action-analyze-vmcore \ + https-utils.h \ +@@ -204,64 +195,4 @@ abrt_action_analyze_backtrace_LDADD = \ + $(LIBREPORT_LIBS) \ + $(BTPARSER_LIBS) + +-abrt_action_install_debuginfo_to_abrt_cache_SOURCES = \ +- abrt-action-install-debuginfo-to-abrt-cache.c +-abrt_action_install_debuginfo_to_abrt_cache_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- -D_GNU_SOURCE \ +- $(LIBREPORT_CFLAGS) \ +- -Wall -Wwrite-strings +-abrt_action_install_debuginfo_to_abrt_cache_LDADD = \ +- $(LIBREPORT_LIBS) \ +- ../lib/libabrt.la +- +-abrt_retrace_client_SOURCES = \ +- abrt-retrace-client.c \ +- https-utils.c +- abrt_retrace_client_CFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- $(NSS_CFLAGS) \ +- $(GLIB_CFLAGS) \ +- -D_GNU_SOURCE \ +- $(LIBREPORT_CFLAGS) +- abrt_retrace_client_LDADD = \ +- $(LIBREPORT_LIBS) \ +- $(BTPARSER_LIBS) \ +- $(NSS_LIBS) +- +-abrt_dedup_client_SOURCES = \ +- abrt-dedup-client.c \ +- https-utils.c +- abrt_dedup_client_CFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- $(NSS_CFLAGS) \ +- $(GLIB_CFLAGS) \ +- -D_GNU_SOURCE \ +- $(LIBREPORT_CFLAGS) +- abrt_dedup_client_LDADD = \ +- $(LIBREPORT_LIBS) \ +- $(BTPARSER_LIBS) \ +- $(NSS_LIBS) +- +-abrt_bodhi_SOURCES = \ +- bodhi.c +- abrt_bodhi_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- $(GLIB_CFLAGS) \ +- $(LIBREPORT_CFLAGS) \ +- $(LIBREPORT_WEB_CFLAGS) \ +- $(JSON_C_CFLAGS) \ +- $(RPM_CFLAGS) \ +- -D_GNU_SOURCE +- abrt_bodhi_LDADD = \ +- $(JSON_C_LIBS) \ +- $(RPM_LIBS) \ +- $(LIBREPORT_LIBS) \ +- $(LIBREPORT_WEB_LIBS) +- +- + DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ +diff --git a/src/plugins/abrt-action-list-dsos b/src/plugins/abrt-action-list-dsos +index 81a9927..bf1491c 100644 +--- a/src/plugins/abrt-action-list-dsos ++++ b/src/plugins/abrt-action-list-dsos +@@ -5,7 +5,6 @@ + import sys + import os + import getopt +-import rpm + + def log(s): + sys.stderr.write("%s\n" % s) +@@ -68,19 +67,10 @@ if __name__ == "__main__": + try: + dso_paths = parse_maps(memfile) + for path in dso_paths: +- ts = rpm.TransactionSet() +- mi = ts.dbMatch('basenames', path) +- if len(mi): +- for h in mi: +- if outname: +- outfile = xopen(outname, "w") +- outname = None +- outfile.write("%s %s (%s) %s\n" % +- (path, +- h[rpm.RPMTAG_NEVRA], +- h[rpm.RPMTAG_VENDOR], +- h[rpm.RPMTAG_INSTALLTIME]) +- ) ++ if outname: ++ outfile = xopen(outname, "w") ++ outname = None ++ outfile.write(path) + + except Exception, ex: + error_msg_and_die("Can't get the DSO list: %s" % ex) +diff --git a/src/plugins/ccpp_event.conf b/src/plugins/ccpp_event.conf +index 81b14d2..cda0b7d 100644 +--- a/src/plugins/ccpp_event.conf ++++ b/src/plugins/ccpp_event.conf +@@ -31,31 +31,4 @@ EVENT=collect_xsession_errors analyzer=CCpp dso_list~=.*/libX11.* + # or was this ability lost with move to python installer? + EVENT=analyze_LocalGDB analyzer=CCpp + abrt-action-analyze-core --core=coredump -o build_ids && +- /usr/libexec/abrt-action-install-debuginfo-to-abrt-cache --size_mb=4096 && +- abrt-action-generate-backtrace && +- abrt-action-analyze-backtrace && +- ( +- bug_id=$(reporter-bugzilla -h `cat duphash`) && +- if test -n "$bug_id"; then +- abrt-bodhi -r -b $bug_id +- fi +- ) +- +- +-# Bugzilla requires nonempty duphash +-EVENT=report_Bugzilla analyzer=CCpp duphash!= +- abrt-dedup-client +- test -f component || abrt-action-save-package-data +- reporter-bugzilla -b -c /etc/libreport/plugins/bugzilla.conf +- +-# Send micro report +-EVENT=report_uReport analyzer=CCpp +- reporter-ureport +- +-# update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=CCpp +- reporter-ureport -r +- +-# Reporting of C/Cpp problems +-EVENT=report-gui analyzer=CCpp +- report-gtk -e report_uReport -e analyze_RetraceServer -e report_Bugzilla -e post_report -- "$DUMP_DIR" ++ abrt-action-generate-backtrace +diff --git a/src/plugins/ccpp_retrace_event.conf b/src/plugins/ccpp_retrace_event.conf +index 60e53d7..893502f 100644 +--- a/src/plugins/ccpp_retrace_event.conf ++++ b/src/plugins/ccpp_retrace_event.conf +@@ -1,9 +1,3 @@ + EVENT=analyze_RetraceServer analyzer=CCpp + abrt-retrace-client batch --dir "$DUMP_DIR" --status-delay 10 && +- abrt-action-analyze-backtrace && +- ( +- bug_id=$(reporter-bugzilla -h `cat duphash`) && +- if test -n "$bug_id"; then +- abrt-bodhi -r -b $bug_id +- fi +- ) ++ abrt-action-analyze-backtrace +diff --git a/src/plugins/koops_event.conf b/src/plugins/koops_event.conf +index 91759b1..41708df 100644 +--- a/src/plugins/koops_event.conf ++++ b/src/plugins/koops_event.conf +@@ -14,18 +14,3 @@ EVENT=post-create analyzer=Kerneloops + # report + #EVENT=report_Kerneloops analyzer=Kerneloops + reporter-kerneloops +- +-EVENT=report_Bugzilla analyzer=Kerneloops +- reporter-bugzilla -b +- +-# Send micro report +-EVENT=report_uReport analyzer=Kerneloops +- reporter-ureport +- +-# update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=Kerneloops +- reporter-ureport -r +- +-# Reporting of kernel oopses +-EVENT=report-gui analyzer=Kerneloops +- report-gtk -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR" +diff --git a/src/plugins/python_event.conf b/src/plugins/python_event.conf +index e60df11..66b41f2 100644 +--- a/src/plugins/python_event.conf ++++ b/src/plugins/python_event.conf +@@ -1,19 +1,3 @@ + EVENT=post-create analyzer=Python + abrt-action-analyze-python + abrt-action-generate-core-backtrace +- +-EVENT=report_Bugzilla analyzer=Python +- test -f component || abrt-action-save-package-data +- reporter-bugzilla -b -c /etc/libreport/plugins/bugzilla.conf +- +-# Send micro report +-EVENT=report_uReport analyzer=Python +- reporter-ureport +- +-# update ABRT database after successful report to bugzilla +-EVENT=post_report analyzer=Python +- reporter-ureport -r +- +-# Reporting of python exceptions +-EVENT=report-gui analyzer=Python +- report-gtk -e report_uReport -e report_Bugzilla -e post_report -- "$DUMP_DIR" +diff --git a/src/plugins/xorg_event.conf b/src/plugins/xorg_event.conf +index b974a6b..5476230 100644 +--- a/src/plugins/xorg_event.conf ++++ b/src/plugins/xorg_event.conf +@@ -33,4 +33,4 @@ EVENT=report_Bugzilla analyzer=xorg + + # Reporting of xorg problems + EVENT=report-gui analyzer=xorg +- report-gtk -e report_Bugzilla -- "$DUMP_DIR" ++ report-gtk -e report_Logger -- "$DUMP_DIR" +-- +1.7.12 + diff --git a/app-admin/abrt/files/abrt-2.0.12-init b/app-admin/abrt/files/abrt-2.0.12-init new file mode 100644 index 000000000000..0a05b9d52c84 --- /dev/null +++ b/app-admin/abrt/files/abrt-2.0.12-init @@ -0,0 +1,57 @@ +#!/sbin/runscript +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/app-admin/abrt/files/abrt-2.0.12-init,v 1.1 2012/09/22 20:12:52 tetromino Exp $ + +description="Automated crash detection service" + +depend() { + need dbus logger +} + +start() { + ebegin "Starting abrtd" + start-stop-daemon --start --quiet --pidfile /var/run/abrt/abrtd.pid \ + --exec /usr/sbin/abrtd -- ${ABRTD_OPTS} + eend $? + + if [[ "${START_VMCORE}" = "yes" ]]; then + ebegin "Running abrt-harvest-vmcore" + /usr/sbin/abrt-harvest-vmcore + eend $? + fi + + if [[ "${START_CCPP}" = "yes" ]]; then + ebegin "Installing abrt-ccpp hook" + /usr/sbin/abrt-install-ccpp-hook install + eend $? + fi + + if [[ "${START_OOPS}" = "yes" ]]; then + ebegin "Starting abrt-dump-oops" + start-stop-daemon --start --quiet \ + --pidfile /var/run/abrt/abrt-dump-oops.pid \ + --make-pidfile --background \ + --exec /usr/bin/abrt-dump-oops -- ${OOPS_OPTS} + eend $? + fi +} + +stop() { + if [[ "${START_OOPS}" = "yes" ]]; then + ebegin "Stopping abrt-dump-oops" + start-stop-daemon --stop --quiet \ + --pidfile /var/run/abrt/abrt-dump-oops.pid + eend $? + fi + + if [[ "${START_CCPP}" = "yes" ]]; then + ebegin "Uninstalling abrt-ccpp hook" + /usr/sbin/abrt-install-ccpp-hook uninstall + eend $? + fi + + ebegin "Stopping abrtd" + start-stop-daemon --stop --quiet --pidfile /var/run/abrt/abrtd.pid + eend $? +} |