[packages/libreport] - updated to 2.9.0 - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Sat Dec 17 09:28:53 CET 2016


commit f5ca980359d4e31c5429de137b2a8015ac9008fc
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Dec 17 09:29:35 2016 +0100

    - updated to 2.9.0
    - added format patch (fixes build with -Werror=format-security)

 libreport-format.patch | 11 +++++++++++
 libreport.spec         | 26 +++++++++++++++++++++++---
 2 files changed, 34 insertions(+), 3 deletions(-)
---
diff --git a/libreport.spec b/libreport.spec
index 9afb7b1..49e4a4e 100644
--- a/libreport.spec
+++ b/libreport.spec
@@ -6,12 +6,13 @@
 Summary:	Generic library for reporting various problems
 Summary(pl.UTF-8):	Ogólna biblioteka do zgłaszania różnych problemów
 Name:		libreport
-Version:	2.8.0
+Version:	2.9.0
 Release:	1
 License:	GPL v2+
 Group:		Libraries
 Source0:	https://fedorahosted.org/released/abrt/%{name}-%{version}.tar.gz
-# Source0-md5:	ea9f74ea86ed03a1bae6173e753d6cd8
+# Source0-md5:	8761962012c6cd147582c418d4d92645
+Patch0:		%{name}-format.patch
 URL:		https://github.com/abrt/libreport
 BuildRequires:	asciidoc
 BuildRequires:	augeas-devel
@@ -39,7 +40,6 @@ BuildRequires:	python-devel >= 2
 BuildRequires:	python3-devel >= 1:3
 BuildRequires:	rpmbuild(macros) >= 1.612
 BuildRequires:	satyr-devel
-# libsystemd-journal
 BuildRequires:	systemd-devel
 BuildRequires:	xmlrpc-c-client-devel
 BuildRequires:	xmlrpc-c-devel
@@ -276,6 +276,19 @@ Plugin to report bugs into RH support system.
 %description plugin-rhtsupport -l pl.UTF-8
 Wtyczka zgłaszająca problemy do systemu obsługi RH.
 
+%package plugin-systemd-journal
+Summary:	libreport's systemd journal reporter plugin
+Summary(pl.UTF-8):	Wtyczka libreport do zgłoszeń w kronice systemd
+Group:		Libraries
+Requires:	%{name} = %{version}-%{release}
+
+%description plugin-systemd-journal
+The simple reporter plugin which writes a report to the systemd
+journal.
+
+%description plugin-systemd-journal -l pl.UTF-8
+Prosta wtyczka zgłoszeń zapisująca raport w kronice systemd.
+
 %package plugin-ureport
 Summary:	libreport's micro report plugin
 Summary(pl.UTF-8):	Wtyczka libreport do zgłoszeń typu micro-report
@@ -353,6 +366,7 @@ zgłaszania błędów w systemach RHEL.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 %{__libtoolize}
@@ -618,6 +632,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_mandir}/man5/rhtsupport.conf.5*
 %{_mandir}/man5/rhtsupport_event.conf.5*
 
+%files plugin-systemd-journal
+%defattr(644,root,root,755)
+%attr(755,root,root) %{_bindir}/reporter-systemd-journal
+%{_mandir}/man1/reporter-systemd-journal.1*
+
 %files plugin-ureport
 %defattr(644,root,root,755)
 %attr(755,root,root) %{_bindir}/reporter-ureport
@@ -657,6 +676,7 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/libreport/events/report_CentOSBugTracker.xml
 %{_datadir}/libreport/workflows/workflow_CentOSCCpp.xml
 %{_datadir}/libreport/workflows/workflow_CentOSJava.xml
+%{_datadir}/libreport/workflows/workflow_CentOSJavaScript.xml
 %{_datadir}/libreport/workflows/workflow_CentOSKerneloops.xml
 %{_datadir}/libreport/workflows/workflow_CentOSLibreport.xml
 %{_datadir}/libreport/workflows/workflow_CentOSPython.xml
diff --git a/libreport-format.patch b/libreport-format.patch
new file mode 100644
index 0000000..2658793
--- /dev/null
+++ b/libreport-format.patch
@@ -0,0 +1,11 @@
+--- libreport-2.9.0/src/gui-wizard-gtk/wizard.c.orig	2016-11-28 23:44:35.000000000 +0100
++++ libreport-2.9.0/src/gui-wizard-gtk/wizard.c	2016-12-16 23:23:34.616353342 +0100
+@@ -3094,7 +3094,7 @@
+                 }
+                 else
+                 {
+-                    log(msg);
++                    log("%s", msg);
+                     free(msg);
+                 }
+             }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libreport.git/commitdiff/f5ca980359d4e31c5429de137b2a8015ac9008fc



More information about the pld-cvs-commit mailing list