Gentoo Archives: gentoo-commits

From: Matt Turner <mattst88@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-admin/abrt/
Date: Sat, 01 May 2021 14:07:04
Message-Id: 1619878015.c71edaea5ed516de1c5871baa38d321d7aeb78dd.mattst88@gentoo
1 commit: c71edaea5ed516de1c5871baa38d321d7aeb78dd
2 Author: Matt Turner <mattst88 <AT> gentoo <DOT> org>
3 AuthorDate: Sat May 1 13:59:05 2021 +0000
4 Commit: Matt Turner <mattst88 <AT> gentoo <DOT> org>
5 CommitDate: Sat May 1 14:06:55 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c71edaea
7
8 app-admin/abrt: Version bump to 2.14.5
9
10 Signed-off-by: Matt Turner <mattst88 <AT> gentoo.org>
11
12 app-admin/abrt/Manifest | 1 +
13 app-admin/abrt/abrt-2.14.5.ebuild | 129 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 130 insertions(+)
15
16 diff --git a/app-admin/abrt/Manifest b/app-admin/abrt/Manifest
17 index a73e494894e..2062051ec43 100644
18 --- a/app-admin/abrt/Manifest
19 +++ b/app-admin/abrt/Manifest
20 @@ -1 +1,2 @@
21 DIST abrt-2.14.2.tar.gz 6113632 BLAKE2B 904ec2ca4c3aa70b62573ca2730742689f4446c1e5f04bfb6dc4267a4a9a6d44ef8c2b6e82c1e0aba04876b400c3a965a879da65bbff7ec729846f1b5c28cdf9 SHA512 82ba10cb151b4585024e3dfc626f46a7d967797e0375158cd76355c4f6a66c59578cc7b41bc5d5aaa3e694b3653b8658650df458676225660cfe95ec318c6886
22 +DIST abrt-2.14.5.tar.gz 6056105 BLAKE2B 22e797a431237bd3d4ef6f2467842c5f08e2ef3ca51e7857e3c55e45ed93a9499843fe40b081c70affb5def8f2cfe78d61e865c51c969fb2c9936225bdfe4996 SHA512 a8672735c6d3263ddff006e6e186d9b71e6d9375a8c909c2a85bbbf736a6687b6fe4aa74640a07664f14fd886895a86babf41218a8c2365d6fccd347630ccc9e
23
24 diff --git a/app-admin/abrt/abrt-2.14.5.ebuild b/app-admin/abrt/abrt-2.14.5.ebuild
25 new file mode 100644
26 index 00000000000..16a5250da01
27 --- /dev/null
28 +++ b/app-admin/abrt/abrt-2.14.5.ebuild
29 @@ -0,0 +1,129 @@
30 +# Copyright 1999-2021 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=7
34 +PYTHON_COMPAT=( python3_{7..9} )
35 +
36 +inherit autotools python-single-r1 xdg-utils
37 +
38 +DESCRIPTION="Automatic bug detection and reporting tool"
39 +HOMEPAGE="https://github.com/abrt/abrt/wiki/ABRT-Project"
40 +SRC_URI="https://github.com/${PN}/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="GPL-2"
43 +SLOT="0"
44 +KEYWORDS="~amd64 ~x86"
45 +
46 +IUSE="selinux test"
47 +RESTRICT="!test? ( test )"
48 +REQUIRED_USE="${PYTHON_REQUIRED_USE}"
49 +
50 +DEPEND="${PYTHON_DEPS}
51 + >=dev-libs/glib-2.56:2
52 + >=dev-libs/libreport-2.13.0[gtk,python]
53 + dev-libs/libxml2:2
54 + >=gnome-base/gsettings-desktop-schemas-3.15.1
55 + net-libs/libsoup:2.4
56 + sys-apps/dbus
57 + sys-apps/systemd:0=
58 + sys-auth/polkit
59 + sys-libs/libcap
60 + sys-fs/inotify-tools
61 + x11-libs/gtk+:3
62 +"
63 +RDEPEND="${DEPEND}
64 + acct-user/abrt
65 + acct-group/abrt
66 + app-arch/cpio
67 + app-arch/rpm[python,${PYTHON_SINGLE_USEDEP}]
68 + dev-libs/elfutils
69 + dev-libs/json-c:0=
70 + sys-apps/util-linux
71 + >=sys-devel/gdb-7
72 + $(python_gen_cond_dep '
73 + dev-libs/satyr[${PYTHON_MULTI_USEDEP}]
74 + dev-python/argcomplete[${PYTHON_MULTI_USEDEP}]
75 + dev-python/argh[${PYTHON_MULTI_USEDEP}]
76 + dev-python/humanize[${PYTHON_MULTI_USEDEP}]
77 + ')
78 +"
79 +BDEPEND="
80 + test? (
81 + $(python_gen_cond_dep 'dev-python/pytest[${PYTHON_MULTI_USEDEP}]')
82 + )
83 + app-text/asciidoc
84 + app-text/xmlto
85 + >=dev-util/intltool-0.35.0
86 + virtual/pkgconfig
87 + >=sys-devel/gettext-0.17
88 +"
89 +
90 +pkg_setup() {
91 + python-single-r1_pkg_setup
92 +}
93 +
94 +src_prepare() {
95 + python_fix_shebang .
96 + default
97 +
98 + # Install under proper directory
99 + sed -i -e 's:dbusabrtdocdir = ${datadir}/doc/abrt-dbus-${VERSION}/html:dbusabrtdocdir = ${datadir}/doc/${PF}/html:' doc/problems-service/Makefile.am || die
100 +
101 + # Ensure this works for systems with and without /usr merge
102 + sed -i -e "s:/usr/bin/bash:$(which bash):" init-scripts/abrtd.service || die
103 +
104 + # Fix hardcoded "pytest-3"
105 + sed -i -e "s:pytest-3:pytest:" \
106 + configure.ac src/python-problem/tests/Makefile.am src/cli/test || die
107 +
108 + # pyhook test is sensitive to the format of python's error messages, and
109 + # fails with certain python versions
110 + sed -e '/pyhook.at/ d' \
111 + -i tests/Makefile.* tests/testsuite.at || die "sed remove pyhook tests failed"
112 + ./gen-version || die # Needed to be run before autoreconf
113 + eautoreconf
114 +}
115 +
116 +src_configure() {
117 + myeconfargs=(
118 + --libdir="${EPREFIX}/usr/$(get_libdir)"
119 + --localstatedir="${EPREFIX}/var"
120 + --without-bodhi
121 + # package breaks due to not finding libreport-web with bodhi plugin enabled
122 + --without-rpm
123 + $(usex selinux "" "--without-selinux")
124 + --with-python3
125 + --without-pythondoc
126 + # package breaks due to no sphinx-build-3
127 + $(use_with test pythontests)
128 + )
129 +
130 + econf "${myeconfargs[@]}"
131 +}
132 +
133 +src_install() {
134 + default
135 + python_optimize
136 +
137 + keepdir /var/run/abrt
138 + # /var/spool/abrt is created by dev-libs/libreport
139 +
140 + diropts -m 700 -o abrt -g abrt
141 + keepdir /var/spool/abrt-upload
142 +
143 + diropts -m 775 -o abrt -g abrt
144 + keepdir /var/cache/abrt-di
145 +
146 + find "${D}" -name '*.la' -delete || die
147 +
148 + newinitd "${FILESDIR}/${PN}-2.0.12-r1-init" abrt
149 + newconfd "${FILESDIR}/${PN}-2.0.12-r1-conf" abrt
150 +}
151 +
152 +pkg_postinst() {
153 + xdg_icon_cache_update
154 +}
155 +
156 +pkg_postrm() {
157 + xdg_icon_cache_update
158 +}