Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/libreport/files/, dev-libs/libreport/
Date: Sun, 17 Nov 2019 18:06:04
Message-Id: 1574013700.6f33e78f43a77d2374fc1acbece49d038bb8fd9f.leio@gentoo
1 commit: 6f33e78f43a77d2374fc1acbece49d038bb8fd9f
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Sun Nov 17 18:01:40 2019 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Sun Nov 17 18:01:40 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6f33e78f
7
8 dev-libs/libreport: remove old
9
10 Closes: https://bugs.gentoo.org/698998
11 Package-Manager: Portage-2.3.69, Repoman-2.3.12
12 Signed-off-by: Mart Raudsepp <leio <AT> gentoo.org>
13
14 dev-libs/libreport/Manifest | 1 -
15 .../files/libreport-2.0.13-automake-1.12.patch | 80 ------
16 .../libreport/files/libreport-2.0.13-gentoo.patch | 295 ---------------------
17 .../files/libreport-2.0.13-json-c-0.11-pc.patch | 51 ----
18 .../files/libreport-2.0.13-json-c-0.11.patch | 35 ---
19 .../libreport-2.0.7-uploader_event-syntax.patch | 19 --
20 dev-libs/libreport/libreport-2.0.13-r1.ebuild | 94 -------
21 7 files changed, 575 deletions(-)
22
23 diff --git a/dev-libs/libreport/Manifest b/dev-libs/libreport/Manifest
24 index 963e44cf4c3..78869811184 100644
25 --- a/dev-libs/libreport/Manifest
26 +++ b/dev-libs/libreport/Manifest
27 @@ -1,3 +1,2 @@
28 -DIST libreport-2.0.13.tar.gz 1190147 BLAKE2B fe79d924fbf7bd11cc3fd23956a137fb296baf9c40f12f3ecfefe68c82281f62299887511a096196b4fdcdc9245ab268592dace4e728c2c34af47581e52f5132 SHA512 cfe963db8091b245f8ceb7d8501466f4f9464c28d298faeafc9f6e57deafdfdc6501d468bf5ffd83703adb67bc1e05e06c56b5c0e0028bb2e0134788ddbb2181
29 DIST libreport-2.10.0.tar.gz 2278084 BLAKE2B 95ac1fbf32e6e021e9553b35b10f9e46b7ea2e9cc6f21e53eb39a32a5261f7a6e49b2172381fdea30341fcc4311928691e68749a8bb5c41a4bf709151935687a SHA512 978ea442d82b75abf80b2075f540cb05c5577387a9221f2070c9695c4546d36169738d223f5e903d0b774b7e1566a6111c55a6bb51a0822ad1676095f067c45b
30 DIST libreport-2.9.5.tar.gz 2271742 BLAKE2B e74d694c0012e984aab8044e99fee8e12a197c0a2edb933e78f045260043d40557509056b1093bc13cbe983976d5525cde1f7596a942760df10c857e99d6b56e SHA512 f207710d88f39870d08e3a5fdfa3e1d5a808625bd36b1dcce363cefd39e582bad6be6dc4224db5e1df4404734c3dd69c437c377303fe978ae21b608fceb833ce
31
32 diff --git a/dev-libs/libreport/files/libreport-2.0.13-automake-1.12.patch b/dev-libs/libreport/files/libreport-2.0.13-automake-1.12.patch
33 deleted file mode 100644
34 index 4baaedd4d8e..00000000000
35 --- a/dev-libs/libreport/files/libreport-2.0.13-automake-1.12.patch
36 +++ /dev/null
37 @@ -1,80 +0,0 @@
38 -From cb7d7fe5b2daf4dac3b8a1616461a0c840e18b73 Mon Sep 17 00:00:00 2001
39 -From: Alexandre Rostovtsev <tetromino@g.o>
40 -Date: Sat, 22 Sep 2012 03:06:03 -0400
41 -Subject: [PATCH] Fix automake-1.12 autoreconf issues.
42 -
43 -Need -Wno-portablity for '%'-style pattern rules in doc/Makefile.am
44 -
45 -Need AM_PROG_CC_C_O for src/cli/cli.c
46 -
47 -gettext-0.18.1.1's AM_GNU_GETTEXT requires AM_PROG_MKDIR_P, causing
48 -problems for automake-1.12.
49 ----
50 - configure.ac | 8 +++-----
51 - src/lib/Makefile.am | 2 +-
52 - src/plugins/Makefile.am | 2 +-
53 - 3 files changed, 5 insertions(+), 7 deletions(-)
54 -
55 -diff --git a/configure.ac b/configure.ac
56 -index dd50bcf..3955689 100644
57 ---- a/configure.ac
58 -+++ b/configure.ac
59 -@@ -3,7 +3,7 @@ AC_INIT([libreport],
60 - [crash-catcher@××××××××××××.org])
61 -
62 - AC_CONFIG_MACRO_DIR([m4])
63 --AM_INIT_AUTOMAKE([-Wall -Werror foreign])
64 -+AM_INIT_AUTOMAKE([-Wall -Wno-portability -Werror foreign])
65 - # Support silent build rules. Disable by either passing --disable-silent-rules
66 - # to ./configure or passing V=1 to make
67 - m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
68 -@@ -11,8 +11,9 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES])
69 - AM_SILENT_RULES([yes])
70 -
71 - AC_DISABLE_STATIC
72 -+AM_PROG_AR
73 - AC_PROG_LIBTOOL
74 --AC_PROG_CC
75 -+AM_PROG_CC_C_O
76 - AC_PROG_LN_S
77 -
78 - AC_SYS_LARGEFILE
79 -@@ -33,9 +34,6 @@ GETTEXT_PACKAGE=libreport
80 - AC_SUBST(GETTEXT_PACKAGE)
81 - AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Package name for gettext])
82 -
83 --AM_GNU_GETTEXT([external])
84 --AM_GNU_GETTEXT_VERSION([0.17])
85 --
86 - IT_PROG_INTLTOOL([0.35.0])
87 -
88 - dnl ****** END ****************************************
89 -diff --git a/src/lib/Makefile.am b/src/lib/Makefile.am
90 -index 5befe7d..2c51931 100644
91 ---- a/src/lib/Makefile.am
92 -+++ b/src/lib/Makefile.am
93 -@@ -121,7 +121,7 @@ libreport_web_la_LIBADD = \
94 - libreport.la
95 -
96 - $(DESTDIR)/$(DEBUG_DUMPS_DIR):
97 -- $(mkdir_p) '$@'
98 -+ $(MKDIR_P) '$@'
99 - # no need to chmod it here
100 - #chmod 1777 '$@'
101 - install-data-local: $(DESTDIR)/$(DEBUG_DUMPS_DIR)
102 -diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
103 -index 3f9dfd7..795d198 100644
104 ---- a/src/plugins/Makefile.am
105 -+++ b/src/plugins/Makefile.am
106 -@@ -40,7 +40,7 @@ EXTRA_DIST = \
107 - report_Uploader.xml.in
108 -
109 - $(DESTDIR)/$(DEBUG_INFO_DIR):
110 -- $(mkdir_p) '$@'
111 -+ $(MKDIR_P) '$@'
112 -
113 - reporter_upload_SOURCES = \
114 - reporter-upload.c
115 ---
116 -1.7.12
117 -
118
119 diff --git a/dev-libs/libreport/files/libreport-2.0.13-gentoo.patch b/dev-libs/libreport/files/libreport-2.0.13-gentoo.patch
120 deleted file mode 100644
121 index 89c6a17354a..00000000000
122 --- a/dev-libs/libreport/files/libreport-2.0.13-gentoo.patch
123 +++ /dev/null
124 @@ -1,295 +0,0 @@
125 -From 624d523361dcf8c10742cbcb1a017e21675002ff Mon Sep 17 00:00:00 2001
126 -From: Alexandre Rostovtsev <tetromino@g.o>
127 -Date: Sat, 22 Sep 2012 02:17:08 -0400
128 -Subject: [PATCH] Replace Fedora defaults with Gentoo ones, and disable code
129 - not relevant for Gentoo
130 -
131 -Disable bugzilla and ureport plugins (they require Gentoo infrastructure
132 -changes). Fix libreport-web.pc to not rely on xmlrpc.pc, which Gentoo
133 -does not have.
134 -
135 -Disble mailx post-create by default to avoid "abrtd: 'post-create' ...
136 -exited with 141" errors.
137 ----
138 - doc/Makefile.am | 2 -
139 - doc/reporter-bugzilla.txt | 2 +-
140 - libreport-web.pc.in | 6 +--
141 - src/lib/dump_dir.c | 2 +-
142 - src/plugins/Makefile.am | 83 ++------------------------------------
143 - src/plugins/bugzilla.conf | 2 +-
144 - src/plugins/mailx_event.conf | 2 +-
145 - src/plugins/report_Bugzilla.conf | 2 +-
146 - src/plugins/report_Bugzilla.xml.in | 4 +-
147 - src/plugins/reporter-bugzilla.c | 2 +-
148 - src/report-python/__init__.py | 4 +-
149 - 11 files changed, 16 insertions(+), 95 deletions(-)
150 -
151 -diff --git a/doc/Makefile.am b/doc/Makefile.am
152 -index 542fe4c..863b6d1 100644
153 ---- a/doc/Makefile.am
154 -+++ b/doc/Makefile.am
155 -@@ -9,11 +9,9 @@ XMLTO_SILENT_0 = @echo " XMLTO " $@;
156 -
157 - MAN1_TXT =
158 - MAN1_TXT += report-cli.txt
159 --MAN1_TXT += reporter-bugzilla.txt
160 - MAN1_TXT += reporter-kerneloops.txt
161 - MAN1_TXT += reporter-mailx.txt
162 - MAN1_TXT += reporter-print.txt
163 --MAN1_TXT += reporter-rhtsupport.txt
164 - MAN1_TXT += reporter-upload.txt
165 - MAN1_TXT += report.txt
166 -
167 -diff --git a/doc/reporter-bugzilla.txt b/doc/reporter-bugzilla.txt
168 -index 3cedf73..734d598 100644
169 ---- a/doc/reporter-bugzilla.txt
170 -+++ b/doc/reporter-bugzilla.txt
171 -@@ -44,7 +44,7 @@ Configuration file lines should have 'PARAM = VALUE' format. The parameters are:
172 - Password to Bugzilla account.
173 -
174 - 'BugzillaURL'::
175 -- Bugzilla HTTP(S) address. (default: https://bugzilla.redhat.com)
176 -+ Bugzilla HTTP(S) address. (default: https://bugs.gentoo.org/)
177 -
178 - 'SSLVerify'::
179 - Use yes/true/on/1 to verify server's SSL certificate. (default: yes)
180 -diff --git a/libreport-web.pc.in b/libreport-web.pc.in
181 -index c9af1d2..14505f8 100644
182 ---- a/libreport-web.pc.in
183 -+++ b/libreport-web.pc.in
184 -@@ -6,7 +6,7 @@ includedir=@includedir@
185 - Name: libreport
186 - Description: Library providing network API for libreport
187 - Version: @VERSION@
188 --Requires: glib-2.0 libcurl libproxy-1.0 libxml-2.0 xmlrpc xmlrpc_client json btparser libreport
189 --Libs: -L${libdir} -lreport-web
190 --Cflags:
191 -+Requires: glib-2.0 libcurl libproxy-1.0 libxml-2.0 json btparser libreport
192 -+Libs: -L${libdir} @XMLRPC_LIBS@ @XMLRPC_CLIENT_LIBS@ -lreport-web
193 -+Cflags: @XMLRPC_CFLAGS@ @XMLRPC_CLIENT_CFLAGS@
194 -
195 -diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c
196 -index 0fc7da7..41e4f55 100644
197 ---- a/src/lib/dump_dir.c
198 -+++ b/src/lib/dump_dir.c
199 -@@ -556,7 +556,7 @@ void dd_create_basic_files(struct dump_dir *dd, uid_t uid, const char *chroot_di
200 - release = load_text_file("/etc/system-release",
201 - DD_LOAD_TEXT_RETURN_NULL_ON_FAILURE);
202 - if (!release)
203 -- release = load_text_file("/etc/redhat-release", /*flags:*/ 0);
204 -+ release = load_text_file("/etc/gentoo-release", /*flags:*/ 0);
205 - dd_save_text(dd, FILENAME_OS_RELEASE, release);
206 - if (chroot_dir)
207 - {
208 -diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am
209 -index 967596f..3f9dfd7 100644
210 ---- a/src/plugins/Makefile.am
211 -+++ b/src/plugins/Makefile.am
212 -@@ -1,36 +1,27 @@
213 - pluginslibdir = $(PLUGINS_LIB_DIR)
214 -
215 - bin_PROGRAMS = \
216 -- reporter-bugzilla \
217 -- reporter-rhtsupport \
218 - reporter-kerneloops \
219 - reporter-upload \
220 - reporter-mailx \
221 - reporter-print \
222 -- report \
223 -- reporter-ureport
224 -+ report
225 -
226 - pluginsconfdir = $(PLUGINS_CONF_DIR)
227 -
228 - reportpluginsconfdir = $(REPORT_PLUGINS_CONF_DIR)
229 -
230 - dist_reportpluginsconf_DATA = \
231 -- bugzilla.conf \
232 -- rhtsupport.conf \
233 - mailx.conf
234 -
235 - eventsdir = $(EVENTS_DIR)
236 -
237 - dist_events_DATA = \
238 -- report_Bugzilla.xml \
239 -- report_Bugzilla.conf \
240 - report_Logger.conf \
241 - report_Logger.xml \
242 - report_Mailx.xml \
243 -- report_RHTSupport.xml \
244 - report_Kerneloops.xml \
245 -- report_Uploader.xml \
246 -- report_uReport.xml
247 -+ report_Uploader.xml
248 -
249 - @INTLTOOL_XML_RULE@
250 -
251 -@@ -39,74 +30,18 @@ eventsconfdir = $(EVENTS_CONF_DIR)
252 - dist_eventsconf_DATA = \
253 - mailx_event.conf \
254 - print_event.conf \
255 -- bugzilla_event.conf \
256 -- rhtsupport_event.conf \
257 - uploader_event.conf
258 -
259 - EXTRA_DIST = \
260 -- report_Bugzilla.xml.in \
261 -- report_Bugzilla.conf \
262 - report_Logger.conf \
263 - report_Logger.xml.in \
264 - report_Mailx.xml.in \
265 -- report_RHTSupport.xml.in \
266 - report_Kerneloops.xml.in \
267 -- report_Uploader.xml.in \
268 -- report_uReport.xml.in
269 -+ report_Uploader.xml.in
270 -
271 - $(DESTDIR)/$(DEBUG_INFO_DIR):
272 - $(mkdir_p) '$@'
273 -
274 --reporter_bugzilla_SOURCES = \
275 -- reporter-bugzilla.c rhbz.c rhbz.h
276 --reporter_bugzilla_CPPFLAGS = \
277 -- -I$(srcdir)/../include \
278 -- -I$(srcdir)/../lib \
279 -- -DBIN_DIR=\"$(bindir)\" \
280 -- -DCONF_DIR=\"$(CONF_DIR)\" \
281 -- -DLOCALSTATEDIR='"$(localstatedir)"' \
282 -- -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \
283 -- -DDEBUG_INFO_DIR=\"$(DEBUG_INFO_DIR)\" \
284 -- -DPLUGINS_LIB_DIR=\"$(PLUGINS_LIB_DIR)\" \
285 -- -DPLUGINS_CONF_DIR=\"$(REPORT_PLUGINS_CONF_DIR)\" \
286 -- $(GLIB_CFLAGS) \
287 -- $(LIBREPORT_CFLAGS) \
288 -- $(XMLRPC_CFLAGS) $(XMLRPC_CLIENT_CFLAGS) \
289 -- -D_GNU_SOURCE
290 --reporter_bugzilla_LDADD = \
291 -- $(GLIB_LIBS) \
292 -- $(XMLRPC_LIBS) $(XMLRPC_CLIENT_LIBS) \
293 -- ../lib/libreport-web.la \
294 -- ../lib/libreport.la
295 --
296 --reporter_rhtsupport_SOURCES = \
297 -- abrt_rh_support.h abrt_rh_support.c \
298 -- reporter-rhtsupport.h \
299 -- reporter-rhtsupport-parse.c \
300 -- reporter-rhtsupport.c
301 --reporter_rhtsupport_CPPFLAGS = \
302 -- -I$(srcdir)/../include \
303 -- -I$(srcdir)/../lib \
304 -- -DBIN_DIR=\"$(bindir)\" \
305 -- -DCONF_DIR=\"$(CONF_DIR)\" \
306 -- -DLOCALSTATEDIR='"$(localstatedir)"' \
307 -- -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \
308 -- -DDEBUG_INFO_DIR=\"$(DEBUG_INFO_DIR)\" \
309 -- -DPLUGINS_LIB_DIR=\"$(PLUGINS_LIB_DIR)\" \
310 -- -DPLUGINS_CONF_DIR=\"$(REPORT_PLUGINS_CONF_DIR)\" \
311 -- $(GLIB_CFLAGS) \
312 -- $(LIBREPORT_CFLAGS) \
313 -- $(XMLRPC_CFLAGS) $(XMLRPC_CLIENT_CFLAGS) \
314 -- $(LIBXML_CFLAGS) \
315 -- -D_GNU_SOURCE
316 --reporter_rhtsupport_LDFLAGS = -ltar
317 --reporter_rhtsupport_LDADD = \
318 -- $(GLIB_LIBS) \
319 -- $(LIBXML_LIBS) \
320 -- $(XMLRPC_LIBS) $(XMLRPC_CLIENT_LIBS) \
321 -- ../lib/libreport-web.la \
322 -- ../lib/libreport.la
323 --
324 - reporter_upload_SOURCES = \
325 - reporter-upload.c
326 - reporter_upload_CPPFLAGS = \
327 -@@ -200,16 +135,4 @@ report_CPPFLAGS = \
328 - report_LDADD = \
329 - ../lib/libreport.la
330 -
331 --reporter_ureport_SOURCES = \
332 -- ureport.c
333 --reporter_ureport_CPPFLAGS = \
334 -- -I$(srcdir)/../include \
335 -- -I$(srcdir)/../lib \
336 -- $(GLIB_CFLAGS) \
337 -- $(LIBREPORT_CFLAGS) \
338 -- -D_GNU_SOURCE
339 --reporter_ureport_LDADD = \
340 -- ../lib/libreport.la \
341 -- ../lib/libreport-web.la
342 --
343 - DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
344 -diff --git a/src/plugins/bugzilla.conf b/src/plugins/bugzilla.conf
345 -index 18eba5a..f5afe6f 100644
346 ---- a/src/plugins/bugzilla.conf
347 -+++ b/src/plugins/bugzilla.conf
348 -@@ -1,5 +1,5 @@
349 - # Bugzilla URL
350 --BugzillaURL = https://bugzilla.redhat.com/
351 -+BugzillaURL = https://bugs.gentoo.org/
352 - # yes means that ssl certificates will be checked
353 - SSLVerify = yes
354 - # your login has to exist, if you don have any, please create one
355 -diff --git a/src/plugins/mailx_event.conf b/src/plugins/mailx_event.conf
356 -index a8c5d11..1c07a73 100644
357 ---- a/src/plugins/mailx_event.conf
358 -+++ b/src/plugins/mailx_event.conf
359 -@@ -1,3 +1,3 @@
360 --EVENT=post-create reporter-mailx --notify-only -c /etc/libreport/plugins/mailx.conf
361 -+# EVENT=post-create reporter-mailx --notify-only -c /etc/libreport/plugins/mailx.conf
362 -
363 - EVENT=report_Mailx reporter-mailx
364 -diff --git a/src/plugins/report_Bugzilla.conf b/src/plugins/report_Bugzilla.conf
365 -index f1a77f5..bb2e651 100644
366 ---- a/src/plugins/report_Bugzilla.conf
367 -+++ b/src/plugins/report_Bugzilla.conf
368 -@@ -1,4 +1,4 @@
369 --Bugzilla_BugzillaURL = https://bugzilla.redhat.com
370 -+Bugzilla_BugzillaURL = https://bugs.gentoo.org/
371 - Bugzilla_Login =
372 - Bugzilla_Password =
373 - Bugzilla_SSLVerify = yes
374 -diff --git a/src/plugins/report_Bugzilla.xml.in b/src/plugins/report_Bugzilla.xml.in
375 -index 8151d32..acaf7fb 100644
376 ---- a/src/plugins/report_Bugzilla.xml.in
377 -+++ b/src/plugins/report_Bugzilla.xml.in
378 -@@ -16,8 +16,8 @@
379 - <_label>Bugzilla URL</_label>
380 - <allow-empty>no</allow-empty>
381 - <_description>Address of Bugzilla server</_description>
382 -- <default-value>https://bugzilla.redhat.com</default-value>
383 -- <_note-html>You can create bugzilla.redhat.com account &lt;a href="https://bugzilla.redhat.com/createaccount.cgi"&gt;here&lt;/a&gt;</_note-html>
384 -+ <default-value>https://bugs.gentoo.org/</default-value>
385 -+ <_note-html>You can create bugs.gentoo.org account &lt;a href="https://bugs.gentoo.org/createaccount.cgi"&gt;here&lt;/a&gt;</_note-html>
386 - </option>
387 - <option type="text" name="Bugzilla_Login">
388 - <_label>User name</_label>
389 -diff --git a/src/plugins/reporter-bugzilla.c b/src/plugins/reporter-bugzilla.c
390 -index a3e8855..17a686d 100644
391 ---- a/src/plugins/reporter-bugzilla.c
392 -+++ b/src/plugins/reporter-bugzilla.c
393 -@@ -34,7 +34,7 @@ static void set_settings(struct bugzilla_struct *b, map_string_h *settings)
394 - environ = getenv("Bugzilla_BugzillaURL");
395 - b->b_bugzilla_url = environ ? environ : get_map_string_item_or_empty(settings, "BugzillaURL");
396 - if (!b->b_bugzilla_url[0])
397 -- b->b_bugzilla_url = "https://bugzilla.redhat.com";
398 -+ b->b_bugzilla_url = "https://bugs.gentoo.org/";
399 - b->b_bugzilla_xmlrpc = xasprintf("%s"XML_RPC_SUFFIX, b->b_bugzilla_url);
400 -
401 - environ = getenv("Bugzilla_SSLVerify");
402 -diff --git a/src/report-python/__init__.py b/src/report-python/__init__.py
403 -index 9c5e6b3..7188392 100644
404 ---- a/src/report-python/__init__.py
405 -+++ b/src/report-python/__init__.py
406 -@@ -21,8 +21,8 @@ from report.io import TextIO, GTKIO, NewtIO
407 -
408 - import os
409 -
410 --SYSTEM_RELEASE_PATHS = ["/etc/system-release","/etc/redhat-release"]
411 --SYSTEM_RELEASE_DEPS = ["system-release", "redhat-release"]
412 -+SYSTEM_RELEASE_PATHS = ["/etc/system-release","/etc/gentoo-release"]
413 -+SYSTEM_RELEASE_DEPS = ["system-release", "gentoo-release"]
414 -
415 - _hardcoded_default_product = ""
416 - _hardcoded_default_version = ""
417 ---
418 -1.7.12
419 -
420
421 diff --git a/dev-libs/libreport/files/libreport-2.0.13-json-c-0.11-pc.patch b/dev-libs/libreport/files/libreport-2.0.13-json-c-0.11-pc.patch
422 deleted file mode 100644
423 index bd764c82cc8..00000000000
424 --- a/dev-libs/libreport/files/libreport-2.0.13-json-c-0.11-pc.patch
425 +++ /dev/null
426 @@ -1,51 +0,0 @@
427 -From 438344fe7ce2edbd23f4df2dfd8e7b6be0a2d7c2 Mon Sep 17 00:00:00 2001
428 -From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@g.o>
429 -Date: Wed, 11 Sep 2013 11:10:32 +0200
430 -Subject: [PATCH] Use proper json-c requirement in libreport-web.pc.
431 -
432 -Depending on whether json-c was found as 'json' or 'json-c', require the
433 -same package in the generated .pc file.
434 -
435 -[Alexandre Rostovtsev <tetromino@g.o>: backport to 2.0.13]
436 ----
437 - configure.ac | 9 +++++++--
438 - libreport-web.pc.in | 2 +-
439 - 2 files changed, 8 insertions(+), 3 deletions(-)
440 -
441 -diff --git a/configure.ac b/configure.ac
442 -index 1e32c64..ace4cde 100644
443 ---- a/configure.ac
444 -+++ b/configure.ac
445 -@@ -102,9 +102,14 @@ PKG_CHECK_MODULES([DBUS], [dbus-1])
446 - PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
447 - PKG_CHECK_MODULES([NSS], [nss])
448 - PKG_CHECK_MODULES([CURL], [libcurl])
449 --PKG_CHECK_MODULES([JSON_C], [json],,[
450 -- PKG_CHECK_MODULES([JSON_C], [json-c])
451 -+PKG_CHECK_MODULES([JSON_C], [json], [
452 -+ JSON_C_PACKAGE=json
453 -+], [
454 -+ PKG_CHECK_MODULES([JSON_C], [json-c], [
455 -+ JSON_C_PACKAGE=json-c
456 -+ ])
457 - ])
458 -+AC_SUBST([JSON_C_PACKAGE])
459 - PKG_CHECK_MODULES([BTPARSER], [btparser])
460 - PKG_CHECK_MODULES([NEWT], [libnewt])
461 - PKG_CHECK_MODULES([PROXY], [libproxy-1.0], [
462 -diff --git a/libreport-web.pc.in b/libreport-web.pc.in
463 -index 14505f8..2a7c926 100644
464 ---- a/libreport-web.pc.in
465 -+++ b/libreport-web.pc.in
466 -@@ -6,7 +6,7 @@ includedir=@includedir@
467 - Name: libreport
468 - Description: Library providing network API for libreport
469 - Version: @VERSION@
470 --Requires: glib-2.0 libcurl libproxy-1.0 libxml-2.0 json btparser libreport
471 -+Requires: glib-2.0 libcurl libproxy-1.0 libxml-2.0 @JSON_C_PACKAGE@ btparser libreport
472 - Libs: -L${libdir} @XMLRPC_LIBS@ @XMLRPC_CLIENT_LIBS@ -lreport-web
473 - Cflags: @XMLRPC_CFLAGS@ @XMLRPC_CLIENT_CFLAGS@
474 -
475 ---
476 -1.8.3.2
477 -
478
479 diff --git a/dev-libs/libreport/files/libreport-2.0.13-json-c-0.11.patch b/dev-libs/libreport/files/libreport-2.0.13-json-c-0.11.patch
480 deleted file mode 100644
481 index e5191e8e313..00000000000
482 --- a/dev-libs/libreport/files/libreport-2.0.13-json-c-0.11.patch
483 +++ /dev/null
484 @@ -1,35 +0,0 @@
485 -From 4a874dde53cf6acca7db2e7be3c10106fb50ec62 Mon Sep 17 00:00:00 2001
486 -From: Markos Chandras <hwoarang@g.o>
487 -Date: Sun, 28 Apr 2013 12:27:57 +0100
488 -Subject: [PATCH] configure.ac: Fix json-c detection for json-c >= 0.11
489 -
490 -json-c-0.11 renamed the pkgconfig file to json-c
491 -https://github.com/json-c/json-c/blob/master/ChangeLog
492 -The configure.ac file was fixed to look for json-c if json
493 -is not available.
494 -
495 -[Alexandre Rostovtsev <tetromino@g.o>: backport to 2.0.13]
496 -
497 -Signed-off-by: Markos Chandras <hwoarang@g.o>
498 ----
499 - configure.ac | 4 +++-
500 - 1 file changed, 3 insertions(+), 1 deletion(-)
501 -
502 -diff --git a/configure.ac b/configure.ac
503 -index dd50bcf..0ca5e67 100644
504 ---- a/configure.ac
505 -+++ b/configure.ac
506 -@@ -104,7 +104,9 @@ PKG_CHECK_MODULES([DBUS], [dbus-1])
507 - PKG_CHECK_MODULES([LIBXML], [libxml-2.0])
508 - PKG_CHECK_MODULES([NSS], [nss])
509 - PKG_CHECK_MODULES([CURL], [libcurl])
510 --PKG_CHECK_MODULES([JSON_C], [json])
511 -+PKG_CHECK_MODULES([JSON_C], [json],,[
512 -+ PKG_CHECK_MODULES([JSON_C], [json-c])
513 -+])
514 - PKG_CHECK_MODULES([BTPARSER], [btparser])
515 - PKG_CHECK_MODULES([NEWT], [libnewt])
516 - PKG_CHECK_MODULES([PROXY], [libproxy-1.0], [
517 ---
518 -1.8.2.1
519 -
520
521 diff --git a/dev-libs/libreport/files/libreport-2.0.7-uploader_event-syntax.patch b/dev-libs/libreport/files/libreport-2.0.7-uploader_event-syntax.patch
522 deleted file mode 100644
523 index 4f43ec90591..00000000000
524 --- a/dev-libs/libreport/files/libreport-2.0.7-uploader_event-syntax.patch
525 +++ /dev/null
526 @@ -1,19 +0,0 @@
527 -From 88e39835f1f94eff58e6d0cc0bee20ceae10bdd2 Mon Sep 17 00:00:00 2001
528 -From: Alexandre Rostovtsev <tetromino@g.o>
529 -Date: Wed, 16 Nov 2011 02:07:24 -0500
530 -Subject: [PATCH] fix uploader_event syntax
531 -
532 ----
533 - src/plugins/uploader_event.conf | 2 +-
534 - 1 files changed, 1 insertions(+), 1 deletions(-)
535 -
536 -diff --git a/src/plugins/uploader_event.conf b/src/plugins/uploader_event.conf
537 -index 2406008..bd13c5e 100644
538 ---- a/src/plugins/uploader_event.conf
539 -+++ b/src/plugins/uploader_event.conf
540 -@@ -1 +1 @@
541 --EVENT=report_Uploader analyzer=libreport reporter-upload
542 -+EVENT=report_Uploader reporter-upload
543 ---
544 -1.7.8.rc1
545 -
546
547 diff --git a/dev-libs/libreport/libreport-2.0.13-r1.ebuild b/dev-libs/libreport/libreport-2.0.13-r1.ebuild
548 deleted file mode 100644
549 index 13ec36a6da4..00000000000
550 --- a/dev-libs/libreport/libreport-2.0.13-r1.ebuild
551 +++ /dev/null
552 @@ -1,94 +0,0 @@
553 -# Copyright 1999-2018 Gentoo Foundation
554 -# Distributed under the terms of the GNU General Public License v2
555 -
556 -EAPI="5"
557 -
558 -PYTHON_COMPAT=( python2_7 )
559 -
560 -inherit autotools eutils python-r1 user
561 -
562 -DESCRIPTION="Generic library for reporting software bugs"
563 -HOMEPAGE="https://fedorahosted.org/abrt/"
564 -SRC_URI="https://fedorahosted.org/released/abrt/${P}.tar.gz"
565 -
566 -LICENSE="GPL-2"
567 -SLOT="0"
568 -KEYWORDS="amd64 x86"
569 -IUSE="debug"
570 -REQUIRED_USE="${PYTHON_REQUIRED_USE}"
571 -
572 -COMMON_DEPEND=">=dev-libs/btparser-0.18:=
573 - >=dev-libs/glib-2.21:2
574 - dev-libs/json-c:=
575 - dev-libs/libtar
576 - dev-libs/libxml2:2
577 - dev-libs/newt:=
578 - dev-libs/nss:=
579 - dev-libs/xmlrpc-c:=[curl]
580 - net-libs/libproxy:=
581 - net-misc/curl:=[ssl]
582 - sys-apps/dbus
583 - >=x11-libs/gtk+-3.3.12:3
584 - x11-misc/xdg-utils
585 - ${PYTHON_DEPS}
586 -"
587 -RDEPEND="${COMMON_DEPEND}
588 - || ( gnome-base/gnome-keyring >=kde-frameworks/kwallet-5.34.0-r1 )
589 -"
590 -DEPEND="${COMMON_DEPEND}
591 - app-text/asciidoc
592 - app-text/xmlto
593 - >=dev-util/intltool-0.3.50
594 - >=sys-devel/gettext-0.17
595 - virtual/pkgconfig
596 -"
597 -
598 -# Tests require python-meh, which is highly redhat-specific.
599 -RESTRICT="test"
600 -
601 -pkg_setup() {
602 - enewgroup abrt
603 - enewuser abrt -1 -1 -1 abrt
604 -}
605 -
606 -src_prepare() {
607 - # Replace redhat- and fedora-specific defaults with gentoo ones, and disable
608 - # code that requires gentoo infra support.
609 - epatch "${FILESDIR}/${PN}-2.0.13-gentoo.patch"
610 -
611 - # Modify uploader_event so that the gui recognizes it
612 - epatch "${FILESDIR}/${PN}-2.0.7-uploader_event-syntax.patch"
613 -
614 - # automake-1.12
615 - epatch "${FILESDIR}/${PN}-2.0.13-automake-1.12.patch"
616 -
617 - # json-c-0.11, https://github.com/abrt/libreport/pull/{159,174}
618 - epatch "${FILESDIR}/${PN}-2.0.13-json-c-0.11"{,-pc}.patch
619 -
620 - mkdir -p m4
621 - eautoreconf
622 -
623 - python_copy_sources
624 -}
625 -
626 -src_configure() {
627 - python_foreach_impl run_in_build_dir econf \
628 - --disable-bodhi \
629 - --localstatedir="${EPREFIX}/var" \
630 - $(usex debug --enable-debug "")
631 - # --disable-debug enables debug!
632 -}
633 -
634 -src_compile() {
635 - python_foreach_impl run_in_build_dir default
636 -}
637 -
638 -src_install() {
639 - python_foreach_impl run_in_build_dir default
640 -
641 - # Need to set correct ownership for use by app-admin/abrt
642 - diropts -o abrt -g abrt
643 - keepdir /var/spool/abrt
644 -
645 - prune_libtool_files --modules
646 -}