[packages/bcc] - added format patch to fix build with -Werror=format-security

qboosh qboosh at pld-linux.org
Sat Oct 27 00:01:32 CEST 2012


commit 53a8b53f19be41a1b6584efeeb55b67e43fe0cab
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Oct 27 00:02:09 2012 +0200

    - added format patch to fix build with -Werror=format-security

 bcc.spec           |  2 ++
 dev86-format.patch | 22 ++++++++++++++++++++++
 2 files changed, 24 insertions(+)
---
diff --git a/bcc.spec b/bcc.spec
index 09e1b0a..9308a15 100644
--- a/bcc.spec
+++ b/bcc.spec
@@ -17,6 +17,7 @@ Patch6:		dev86-nostrip.patch
 Patch7:		dev86-print-overflow.patch
 Patch8:		dev86-make.patch
 Patch9:		dev86-copt.patch
+Patch10:	dev86-format.patch
 URL:		http://www.debath.co.uk/
 Requires:	bin86 >= %{version}
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -53,6 +54,7 @@ są odwzorowywane do jednego z innych typów całkowitych.
 %patch7 -p1
 %patch8 -p1
 %patch9 -p1
+%patch10 -p1
 
 mv -f bootblocks/README README.bootblocks
 mv -f copt/README README.copt
diff --git a/dev86-format.patch b/dev86-format.patch
new file mode 100644
index 0000000..60f0b67
--- /dev/null
+++ b/dev86-format.patch
@@ -0,0 +1,22 @@
+--- dev86-0.16.19/copt/copt.c.orig	2012-10-26 23:51:09.735174869 +0200
++++ dev86-0.16.19/copt/copt.c	2012-10-26 23:55:09.276050428 +0200
+@@ -803,7 +803,7 @@
+ 	exit(1);
+   }
+   if (headstr != NULL) {
+-	fprintf(fp, headstr);
++	fprintf(fp, "%s", headstr);
+ 	fprintf(fp, "\n");
+   }
+   for (lp = infile; lp != NULL; lp = lp->next)
+--- dev86-0.16.19/ar/ar.c.orig	2012-08-13 21:15:47.000000000 +0200
++++ dev86-0.16.19/ar/ar.c	2012-10-26 23:59:23.414647129 +0200
+@@ -2036,7 +2036,7 @@
+      struct mapelt *mapelt;
+ {
+   fprintf (stderr, "%s: ", program_name);
+-  fprintf (stderr, string);
++  fprintf (stderr, "%s", string);
+   if (mapelt->info.offset != 0)
+     fprintf (stderr, "%s(%s)", archive, mapelt->info.name);
+   else
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bcc.git/commitdiff/53a8b53f19be41a1b6584efeeb55b67e43fe0cab



More information about the pld-cvs-commit mailing list