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

qboosh qboosh at pld-linux.org
Fri Apr 4 19:45:34 CEST 2014


commit c5d5ef2cc48adf2116c65e39ea27cd8153467ea7
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Apr 4 19:47:08 2014 +0200

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

 pcp-format.patch | 11 +++++++++++
 pcp.spec         | 16 ++++++++++++++--
 2 files changed, 25 insertions(+), 2 deletions(-)
---
diff --git a/pcp.spec b/pcp.spec
index 44b4aa7..111de2a 100644
--- a/pcp.spec
+++ b/pcp.spec
@@ -7,16 +7,17 @@
 Summary:	Performance Co-Pilot - system level performance monitoring and management
 Summary(pl.UTF-8):	Performance Co-Pilot - monitorowanie i zarządzanie wydajnością na poziomie systemu
 Name:		pcp
-Version:	3.9.0
+Version:	3.9.1
 Release:	1
 License:	LGPL v2.1 (libraries), GPL v2 (the rest)
 Group:		Applications/System
 Source0:	ftp://oss.sgi.com/projects/pcp/download/%{name}-%{version}.src.tar.gz
-# Source0-md5:	ff418ff346f4110fb056330ff8f266ce
+# Source0-md5:	940e7090d28732a2f8e7201761030f63
 Patch0:		%{name}-ps.patch
 Patch1:		%{name}-opt.patch
 Patch2:		%{name}-nspr.patch
 Patch3:		%{name}-saslconfdir.patch
+Patch4:		%{name}-format.patch
 URL:		http://oss.sgi.com/projects/pcp/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	bison
@@ -158,6 +159,7 @@ Sondy systemtap/dtrace dla PCP.
 %patch1 -p1
 %patch2 -p1
 %patch3 -p1
+%patch4 -p1
 
 %build
 %{__autoconf}
@@ -662,6 +664,10 @@ fi
 %attr(755,root,root) /var/lib/pcp/pmdas/news/Remove
 %attr(755,root,root) /var/lib/pcp/pmdas/news/pmdanews.pl
 /var/lib/pcp/pmdas/news/active
+%dir /var/lib/pcp/pmdas/nfsclient
+%attr(755,root,root) /var/lib/pcp/pmdas/nfsclient/Install
+%attr(755,root,root) /var/lib/pcp/pmdas/nfsclient/Remove
+%attr(755,root,root) /var/lib/pcp/pmdas/nfsclient/pmdanfsclient.pl
 %dir /var/lib/pcp/pmdas/nginx
 %attr(755,root,root) /var/lib/pcp/pmdas/nginx/Install
 %attr(755,root,root) /var/lib/pcp/pmdas/nginx/Remove
@@ -850,6 +856,10 @@ fi
 %attr(755,root,root) /var/lib/pcp/pmdas/zimbra/Remove
 %attr(755,root,root) /var/lib/pcp/pmdas/zimbra/pmdazimbra.pl
 %attr(755,root,root) /var/lib/pcp/pmdas/zimbra/zimbraprobe
+%dir /var/lib/pcp/pmdas/zswap
+%attr(755,root,root) /var/lib/pcp/pmdas/zswap/Install
+%attr(755,root,root) /var/lib/pcp/pmdas/zswap/Remove
+%attr(755,root,root) /var/lib/pcp/pmdas/zswap/pmdazswap.python
 %attr(775,pcp,pcp) %dir /var/lib/pcp/tmp
 %attr(775,pcp,pcp) %dir /var/lib/pcp/tmp/pmie
 %attr(775,pcp,pcp) %dir /var/lib/pcp/tmp/pmlogger
@@ -903,6 +913,7 @@ fi
 %{_mandir}/man1/pmdanamed.1*
 %{_mandir}/man1/pmdanetfilter.1*
 %{_mandir}/man1/pmdanews.1*
+%{_mandir}/man1/pmdanfsclient.1*
 %{_mandir}/man1/pmdanginx.1*
 %{_mandir}/man1/pmdapdns.1*
 %{_mandir}/man1/pmdapostfix.1*
@@ -926,6 +937,7 @@ fi
 %{_mandir}/man1/pmdavmware.1*
 %{_mandir}/man1/pmdaweblog.1*
 %{_mandir}/man1/pmdaxfs.1*
+%{_mandir}/man1/pmdazswap.1*
 %{_mandir}/man1/pmdazimbra.1*
 %{_mandir}/man1/pmdbg.1*
 %{_mandir}/man1/pmdumplog.1*
diff --git a/pcp-format.patch b/pcp-format.patch
new file mode 100644
index 0000000..5624429
--- /dev/null
+++ b/pcp-format.patch
@@ -0,0 +1,11 @@
+--- pcp-3.9.1/src/pmval/pmval.c.orig	2014-03-19 00:50:32.000000000 +0100
++++ pcp-3.9.1/src/pmval/pmval.c	2014-04-04 18:58:25.359209825 +0200
+@@ -853,7 +853,7 @@
+ 	i = 0;
+     }
+     if (pmParseMetricSpec(argv[opts.optind], i, source, &msp, &errmsg) < 0) {
+-	pmprintf(errmsg);
++	pmprintf("%s", errmsg);
+ 	free(errmsg);
+ 	opts.errors++;
+     }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/pcp.git/commitdiff/c5d5ef2cc48adf2116c65e39ea27cd8153467ea7



More information about the pld-cvs-commit mailing list