From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- dev-libs/libreport/Manifest | 10 + .../files/libreport-2.0.13-automake-1.12.patch | 80 ++++++ .../libreport/files/libreport-2.0.13-gentoo.patch | 295 +++++++++++++++++++++ .../files/libreport-2.0.13-json-c-0.11-pc.patch | 51 ++++ .../files/libreport-2.0.13-json-c-0.11.patch | 35 +++ .../libreport-2.0.7-uploader_event-syntax.patch | 19 ++ dev-libs/libreport/libreport-2.0.13-r1.ebuild | 94 +++++++ dev-libs/libreport/metadata.xml | 8 + 8 files changed, 592 insertions(+) create mode 100644 dev-libs/libreport/Manifest create mode 100644 dev-libs/libreport/files/libreport-2.0.13-automake-1.12.patch create mode 100644 dev-libs/libreport/files/libreport-2.0.13-gentoo.patch create mode 100644 dev-libs/libreport/files/libreport-2.0.13-json-c-0.11-pc.patch create mode 100644 dev-libs/libreport/files/libreport-2.0.13-json-c-0.11.patch create mode 100644 dev-libs/libreport/files/libreport-2.0.7-uploader_event-syntax.patch create mode 100644 dev-libs/libreport/libreport-2.0.13-r1.ebuild create mode 100644 dev-libs/libreport/metadata.xml (limited to 'dev-libs/libreport') diff --git a/dev-libs/libreport/Manifest b/dev-libs/libreport/Manifest new file mode 100644 index 000000000000..dca04475b551 --- /dev/null +++ b/dev-libs/libreport/Manifest @@ -0,0 +1,10 @@ +AUX libreport-2.0.13-automake-1.12.patch 2285 SHA256 b4c764e104cf76336661d96228786ce2d347ca6339e44c85a993c3c10fc0a215 SHA512 59a6f857604ab45c049030ab351cef28dc51b78aabd5575ff45abdd607d6b973020f32687666fd11a879e0ee18aca75650fa9e3fa2284a8e05c6b65216479b9f WHIRLPOOL 660303844f839d8d7f494d22f041d4543b502074603183801def34741f7a3e5fddb06a54d0b8372c49e508ca1076b1c81063e36c426134f0903efb642b17cb4c +AUX libreport-2.0.13-gentoo.patch 10369 SHA256 7dec2b0708121c5deb5e8036d9ef5ee20aebd9713ee191d701b27920a4ab0f49 SHA512 762e389c62efaeaad08a04871e5dec05aadc26fb9457291bf2308835128241068b2e799585060b3ce4f7bd17f275a4e5c7da37835d4e8940651ea5e5928402f0 WHIRLPOOL 0b253ba384ee40aa60c36564739101e328e326fcf5e3543644ed46b71a89fbb34d8567ce5892a162ba7b26f6bc780514601e6fc32f883f3276c7a1229529ac92 +AUX libreport-2.0.13-json-c-0.11-pc.patch 1780 SHA256 272e146d715c723097f2d09cba3b1d66f3de9fc78e0ca37a057b978293d6d67f SHA512 8eb64ac64b0bfb42dafda02c7c65c5becaf27d16233b941f0d0594a3fc0314b33b793b05e3bda07dc6225854d2dcb1cfeca1ae8bf5fa959a84fd01ac9179cdfa WHIRLPOOL 75daa7b98dad3963459fa9948c680051b4e06ab5006b06c58206ad75d75a10965b8d03c00223b734994027eac01c0d03a30f9f3e94a04a2bb8d38b78ee61ab34 +AUX libreport-2.0.13-json-c-0.11.patch 1145 SHA256 e47adb08f2c4d844e8ee824f33f6861331773308520e75714fe07b4e9f9126f2 SHA512 fd07c360d599d71fddb6766860203052fb390cde6cb795779e75a2d2a826affd6f03c6977eb99237caffdc41ac9f0e1c600a9414f72629ff5fc2102c70d8ca67 WHIRLPOOL 4b0dab98d5390443296d26c808fb095d45b7977b55073f69556905e4e60d6326b993ef3c031fd6d9b9fb28db40a35bcb765b348624cba04a1a6230ac578bdb2f +AUX libreport-2.0.7-uploader_event-syntax.patch 610 SHA256 b93e9e05396b70754fcacf7e7358ccfa4cc995fa3e1a3fbe598c540ae4f0c148 SHA512 b0ae2617a013fd8cb3475e5a51073677f2ea965a57169c760e542474351293e70f70e678a66beeb3b3fa163589aaf7f79f0883fa55ff524e62b5fcd3ae919bf0 WHIRLPOOL 9c0e00a502a216ce47c513f052e1a63b0d57910d8790d180978522f860d980f8f216cf5773830f9ba3b5fdbf8dd7e3f661e41e008398a8d6de5e525a2e95c8d3 +DIST libreport-2.0.13.tar.gz 1190147 SHA256 4a0609abe80b9432ae81c5a512680a7035b547cd1fef29c63c730d92c1be8b05 SHA512 cfe963db8091b245f8ceb7d8501466f4f9464c28d298faeafc9f6e57deafdfdc6501d468bf5ffd83703adb67bc1e05e06c56b5c0e0028bb2e0134788ddbb2181 WHIRLPOOL 647da27bf88cf77dbb25ace9f446dfe9a875370c27fef05999843dcee1f653ba07af44d4e5a36107dbf69f0241f1f66d3a6a58ae7897faca7b049d2b1aa00301 +EBUILD libreport-2.0.13-r1.ebuild 2166 SHA256 9b47d65f6113710d89f1963c8c09697e2b55ce2abefec652e296e44911423bde SHA512 ba7fe4dbef24205529dc647e868ac369963abfded775e6b39bf715ae8fea6f91a436b324d545601e0ea7224b939dce58e36e9d5417b7c034806fc360966c5d35 WHIRLPOOL 36f13717d477204bd54371e23adfb8df8ca8d61b88ad1643db2c1e832035692f6d4981a5bcfdc73148b2b7da978fac6dca9aac748b467a550a30f86e40bb4d81 +MISC ChangeLog 2675 SHA256 b699ca85878e190da860c56ad15585923458f1e71f8a4a6a798b2ecfd6807297 SHA512 b73842d8e2c102f7582e1358dbb3b6a08dfceb359e3763ad44d8db2fd9021444233ffa6b830f519dd0288a091f7795339e36744a3e35287bf04015efeeb1f209 WHIRLPOOL 2e0cc7f05c38cda8d87db9579889cc875a8e32513f787f568a24dff2fc550da91553e882bdb03b75f7037262b04e79e3ac86197c38dc4659b84f063b5cc60d17 +MISC ChangeLog-2015 4365 SHA256 76ea050ae6c482a22ed2767980cf53929c8f241928fc3b2975bc15c4f6ff21aa SHA512 dfedaf11aa3f1e1a3fcba44efdb2d9525925b17170a799889ab78a8e56b3ea36a89056a49dcda7d4f7b92b23cc07368597699f98e5ce4f381e54b607e9f92192 WHIRLPOOL aff2f919222da41935a0dc4718bef592bb9d51a484ad853f3dc7fe5b2ad1da89245b95d6f8d51db5f71d4898b29f6f47f11775e05c72f9a30d814bc699039b06 +MISC metadata.xml 249 SHA256 4505b0bfeadff287958620b7dc7b7209699065a8f17139a237a5dd409a726a97 SHA512 c40662134899a5c9f0369a1017806f35adf3280a0b3c91726f7a8ca6012a073a8b471583f5bfb6fe95faac1dcf607e8e2e43f8c91d48ec46f4a8824e2f551506 WHIRLPOOL 333a938ee1d2124595596c572697bf5ebad523a92ba12005cfb12e6bb6270881a94a911f0cc9c1cf2bb571559e8271e07dfd307dabe50058236dbe7103562b92 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 new file mode 100644 index 000000000000..4baaedd4d8eb --- /dev/null +++ b/dev-libs/libreport/files/libreport-2.0.13-automake-1.12.patch @@ -0,0 +1,80 @@ +From cb7d7fe5b2daf4dac3b8a1616461a0c840e18b73 Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev +Date: Sat, 22 Sep 2012 03:06:03 -0400 +Subject: [PATCH] Fix automake-1.12 autoreconf issues. + +Need -Wno-portablity for '%'-style pattern rules in doc/Makefile.am + +Need AM_PROG_CC_C_O for src/cli/cli.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/lib/Makefile.am | 2 +- + src/plugins/Makefile.am | 2 +- + 3 files changed, 5 insertions(+), 7 deletions(-) + +diff --git a/configure.ac b/configure.ac +index dd50bcf..3955689 100644 +--- a/configure.ac ++++ b/configure.ac +@@ -3,7 +3,7 @@ AC_INIT([libreport], + [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]) +@@ -11,8 +11,9 @@ m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES]) + 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 +@@ -33,9 +34,6 @@ GETTEXT_PACKAGE=libreport + 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/lib/Makefile.am b/src/lib/Makefile.am +index 5befe7d..2c51931 100644 +--- a/src/lib/Makefile.am ++++ b/src/lib/Makefile.am +@@ -121,7 +121,7 @@ libreport_web_la_LIBADD = \ + libreport.la + + $(DESTDIR)/$(DEBUG_DUMPS_DIR): +- $(mkdir_p) '$@' ++ $(MKDIR_P) '$@' + # no need to chmod it here + #chmod 1777 '$@' + install-data-local: $(DESTDIR)/$(DEBUG_DUMPS_DIR) +diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am +index 3f9dfd7..795d198 100644 +--- a/src/plugins/Makefile.am ++++ b/src/plugins/Makefile.am +@@ -40,7 +40,7 @@ EXTRA_DIST = \ + report_Uploader.xml.in + + $(DESTDIR)/$(DEBUG_INFO_DIR): +- $(mkdir_p) '$@' ++ $(MKDIR_P) '$@' + + reporter_upload_SOURCES = \ + reporter-upload.c +-- +1.7.12 + diff --git a/dev-libs/libreport/files/libreport-2.0.13-gentoo.patch b/dev-libs/libreport/files/libreport-2.0.13-gentoo.patch new file mode 100644 index 000000000000..89c6a17354a3 --- /dev/null +++ b/dev-libs/libreport/files/libreport-2.0.13-gentoo.patch @@ -0,0 +1,295 @@ +From 624d523361dcf8c10742cbcb1a017e21675002ff Mon Sep 17 00:00:00 2001 +From: Alexandre Rostovtsev +Date: Sat, 22 Sep 2012 02:17:08 -0400 +Subject: [PATCH] Replace Fedora defaults with Gentoo ones, and disable code + not relevant for Gentoo + +Disable bugzilla and ureport plugins (they require Gentoo infrastructure +changes). Fix libreport-web.pc to not rely on xmlrpc.pc, which Gentoo +does not have. + +Disble mailx post-create by default to avoid "abrtd: 'post-create' ... +exited with 141" errors. +--- + doc/Makefile.am | 2 - + doc/reporter-bugzilla.txt | 2 +- + libreport-web.pc.in | 6 +-- + src/lib/dump_dir.c | 2 +- + src/plugins/Makefile.am | 83 ++------------------------------------ + src/plugins/bugzilla.conf | 2 +- + src/plugins/mailx_event.conf | 2 +- + src/plugins/report_Bugzilla.conf | 2 +- + src/plugins/report_Bugzilla.xml.in | 4 +- + src/plugins/reporter-bugzilla.c | 2 +- + src/report-python/__init__.py | 4 +- + 11 files changed, 16 insertions(+), 95 deletions(-) + +diff --git a/doc/Makefile.am b/doc/Makefile.am +index 542fe4c..863b6d1 100644 +--- a/doc/Makefile.am ++++ b/doc/Makefile.am +@@ -9,11 +9,9 @@ XMLTO_SILENT_0 = @echo " XMLTO " $@; + + MAN1_TXT = + MAN1_TXT += report-cli.txt +-MAN1_TXT += reporter-bugzilla.txt + MAN1_TXT += reporter-kerneloops.txt + MAN1_TXT += reporter-mailx.txt + MAN1_TXT += reporter-print.txt +-MAN1_TXT += reporter-rhtsupport.txt + MAN1_TXT += reporter-upload.txt + MAN1_TXT += report.txt + +diff --git a/doc/reporter-bugzilla.txt b/doc/reporter-bugzilla.txt +index 3cedf73..734d598 100644 +--- a/doc/reporter-bugzilla.txt ++++ b/doc/reporter-bugzilla.txt +@@ -44,7 +44,7 @@ Configuration file lines should have 'PARAM = VALUE' format. The parameters are: + Password to Bugzilla account. + + 'BugzillaURL':: +- Bugzilla HTTP(S) address. (default: https://bugzilla.redhat.com) ++ Bugzilla HTTP(S) address. (default: https://bugs.gentoo.org/) + + 'SSLVerify':: + Use yes/true/on/1 to verify server's SSL certificate. (default: yes) +diff --git a/libreport-web.pc.in b/libreport-web.pc.in +index c9af1d2..14505f8 100644 +--- a/libreport-web.pc.in ++++ b/libreport-web.pc.in +@@ -6,7 +6,7 @@ includedir=@includedir@ + Name: libreport + Description: Library providing network API for libreport + Version: @VERSION@ +-Requires: glib-2.0 libcurl libproxy-1.0 libxml-2.0 xmlrpc xmlrpc_client json btparser libreport +-Libs: -L${libdir} -lreport-web +-Cflags: ++Requires: glib-2.0 libcurl libproxy-1.0 libxml-2.0 json btparser libreport ++Libs: -L${libdir} @XMLRPC_LIBS@ @XMLRPC_CLIENT_LIBS@ -lreport-web ++Cflags: @XMLRPC_CFLAGS@ @XMLRPC_CLIENT_CFLAGS@ + +diff --git a/src/lib/dump_dir.c b/src/lib/dump_dir.c +index 0fc7da7..41e4f55 100644 +--- a/src/lib/dump_dir.c ++++ b/src/lib/dump_dir.c +@@ -556,7 +556,7 @@ void dd_create_basic_files(struct dump_dir *dd, uid_t uid, const char *chroot_di + release = load_text_file("/etc/system-release", + DD_LOAD_TEXT_RETURN_NULL_ON_FAILURE); + if (!release) +- release = load_text_file("/etc/redhat-release", /*flags:*/ 0); ++ release = load_text_file("/etc/gentoo-release", /*flags:*/ 0); + dd_save_text(dd, FILENAME_OS_RELEASE, release); + if (chroot_dir) + { +diff --git a/src/plugins/Makefile.am b/src/plugins/Makefile.am +index 967596f..3f9dfd7 100644 +--- a/src/plugins/Makefile.am ++++ b/src/plugins/Makefile.am +@@ -1,36 +1,27 @@ + pluginslibdir = $(PLUGINS_LIB_DIR) + + bin_PROGRAMS = \ +- reporter-bugzilla \ +- reporter-rhtsupport \ + reporter-kerneloops \ + reporter-upload \ + reporter-mailx \ + reporter-print \ +- report \ +- reporter-ureport ++ report + + pluginsconfdir = $(PLUGINS_CONF_DIR) + + reportpluginsconfdir = $(REPORT_PLUGINS_CONF_DIR) + + dist_reportpluginsconf_DATA = \ +- bugzilla.conf \ +- rhtsupport.conf \ + mailx.conf + + eventsdir = $(EVENTS_DIR) + + dist_events_DATA = \ +- report_Bugzilla.xml \ +- report_Bugzilla.conf \ + report_Logger.conf \ + report_Logger.xml \ + report_Mailx.xml \ +- report_RHTSupport.xml \ + report_Kerneloops.xml \ +- report_Uploader.xml \ +- report_uReport.xml ++ report_Uploader.xml + + @INTLTOOL_XML_RULE@ + +@@ -39,74 +30,18 @@ eventsconfdir = $(EVENTS_CONF_DIR) + dist_eventsconf_DATA = \ + mailx_event.conf \ + print_event.conf \ +- bugzilla_event.conf \ +- rhtsupport_event.conf \ + uploader_event.conf + + EXTRA_DIST = \ +- report_Bugzilla.xml.in \ +- report_Bugzilla.conf \ + report_Logger.conf \ + report_Logger.xml.in \ + report_Mailx.xml.in \ +- report_RHTSupport.xml.in \ + report_Kerneloops.xml.in \ +- report_Uploader.xml.in \ +- report_uReport.xml.in ++ report_Uploader.xml.in + + $(DESTDIR)/$(DEBUG_INFO_DIR): + $(mkdir_p) '$@' + +-reporter_bugzilla_SOURCES = \ +- reporter-bugzilla.c rhbz.c rhbz.h +-reporter_bugzilla_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- -DBIN_DIR=\"$(bindir)\" \ +- -DCONF_DIR=\"$(CONF_DIR)\" \ +- -DLOCALSTATEDIR='"$(localstatedir)"' \ +- -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \ +- -DDEBUG_INFO_DIR=\"$(DEBUG_INFO_DIR)\" \ +- -DPLUGINS_LIB_DIR=\"$(PLUGINS_LIB_DIR)\" \ +- -DPLUGINS_CONF_DIR=\"$(REPORT_PLUGINS_CONF_DIR)\" \ +- $(GLIB_CFLAGS) \ +- $(LIBREPORT_CFLAGS) \ +- $(XMLRPC_CFLAGS) $(XMLRPC_CLIENT_CFLAGS) \ +- -D_GNU_SOURCE +-reporter_bugzilla_LDADD = \ +- $(GLIB_LIBS) \ +- $(XMLRPC_LIBS) $(XMLRPC_CLIENT_LIBS) \ +- ../lib/libreport-web.la \ +- ../lib/libreport.la +- +-reporter_rhtsupport_SOURCES = \ +- abrt_rh_support.h abrt_rh_support.c \ +- reporter-rhtsupport.h \ +- reporter-rhtsupport-parse.c \ +- reporter-rhtsupport.c +-reporter_rhtsupport_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- -DBIN_DIR=\"$(bindir)\" \ +- -DCONF_DIR=\"$(CONF_DIR)\" \ +- -DLOCALSTATEDIR='"$(localstatedir)"' \ +- -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \ +- -DDEBUG_INFO_DIR=\"$(DEBUG_INFO_DIR)\" \ +- -DPLUGINS_LIB_DIR=\"$(PLUGINS_LIB_DIR)\" \ +- -DPLUGINS_CONF_DIR=\"$(REPORT_PLUGINS_CONF_DIR)\" \ +- $(GLIB_CFLAGS) \ +- $(LIBREPORT_CFLAGS) \ +- $(XMLRPC_CFLAGS) $(XMLRPC_CLIENT_CFLAGS) \ +- $(LIBXML_CFLAGS) \ +- -D_GNU_SOURCE +-reporter_rhtsupport_LDFLAGS = -ltar +-reporter_rhtsupport_LDADD = \ +- $(GLIB_LIBS) \ +- $(LIBXML_LIBS) \ +- $(XMLRPC_LIBS) $(XMLRPC_CLIENT_LIBS) \ +- ../lib/libreport-web.la \ +- ../lib/libreport.la +- + reporter_upload_SOURCES = \ + reporter-upload.c + reporter_upload_CPPFLAGS = \ +@@ -200,16 +135,4 @@ report_CPPFLAGS = \ + report_LDADD = \ + ../lib/libreport.la + +-reporter_ureport_SOURCES = \ +- ureport.c +-reporter_ureport_CPPFLAGS = \ +- -I$(srcdir)/../include \ +- -I$(srcdir)/../lib \ +- $(GLIB_CFLAGS) \ +- $(LIBREPORT_CFLAGS) \ +- -D_GNU_SOURCE +-reporter_ureport_LDADD = \ +- ../lib/libreport.la \ +- ../lib/libreport-web.la +- + DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@ +diff --git a/src/plugins/bugzilla.conf b/src/plugins/bugzilla.conf +index 18eba5a..f5afe6f 100644 +--- a/src/plugins/bugzilla.conf ++++ b/src/plugins/bugzilla.conf +@@ -1,5 +1,5 @@ + # Bugzilla URL +-BugzillaURL = https://bugzilla.redhat.com/ ++BugzillaURL = https://bugs.gentoo.org/ + # yes means that ssl certificates will be checked + SSLVerify = yes + # your login has to exist, if you don have any, please create one +diff --git a/src/plugins/mailx_event.conf b/src/plugins/mailx_event.conf +index a8c5d11..1c07a73 100644 +--- a/src/plugins/mailx_event.conf ++++ b/src/plugins/mailx_event.conf +@@ -1,3 +1,3 @@ +-EVENT=post-create reporter-mailx --notify-only -c /etc/libreport/plugins/mailx.conf ++# EVENT=post-create reporter-mailx --notify-only -c /etc/libreport/plugins/mailx.conf + + EVENT=report_Mailx reporter-mailx +diff --git a/src/plugins/report_Bugzilla.conf b/src/plugins/report_Bugzilla.conf +index f1a77f5..bb2e651 100644 +--- a/src/plugins/report_Bugzilla.conf ++++ b/src/plugins/report_Bugzilla.conf +@@ -1,4 +1,4 @@ +-Bugzilla_BugzillaURL = https://bugzilla.redhat.com ++Bugzilla_BugzillaURL = https://bugs.gentoo.org/ + Bugzilla_Login = + Bugzilla_Password = + Bugzilla_SSLVerify = yes +diff --git a/src/plugins/report_Bugzilla.xml.in b/src/plugins/report_Bugzilla.xml.in +index 8151d32..acaf7fb 100644 +--- a/src/plugins/report_Bugzilla.xml.in ++++ b/src/plugins/report_Bugzilla.xml.in +@@ -16,8 +16,8 @@ + <_label>Bugzilla URL + no + <_description>Address of Bugzilla server +- https://bugzilla.redhat.com +- <_note-html>You can create bugzilla.redhat.com account <a href="https://bugzilla.redhat.com/createaccount.cgi">here</a> ++ https://bugs.gentoo.org/ ++ <_note-html>You can create bugs.gentoo.org account <a href="https://bugs.gentoo.org/createaccount.cgi">here</a> + +