[packages/xorg-util-imake] - added format patch (fixes build with -Werror=format-security)

qboosh qboosh at pld-linux.org
Tue Jul 23 18:27:09 CEST 2013


commit 52f2ac2451dd34453d8247f6de31cc4007c31ae2
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Tue Jul 23 18:27:23 2013 +0200

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

 xorg-util-imake-format.patch | 11 +++++++++++
 xorg-util-imake.spec         | 20 +++++++++++---------
 2 files changed, 22 insertions(+), 9 deletions(-)
---
diff --git a/xorg-util-imake.spec b/xorg-util-imake.spec
index 035b2f8..feeea81 100644
--- a/xorg-util-imake.spec
+++ b/xorg-util-imake.spec
@@ -7,6 +7,7 @@ License:	MIT
 Group:		X11/Development/Tools
 Source0:	http://xorg.freedesktop.org/releases/individual/util/imake-%{version}.tar.bz2
 # Source0-md5:	d5058b1317a85bedc1dc40c7e85c8d26
+Patch0:		%{name}-format.patch
 URL:		http://xorg.freedesktop.org/
 BuildRequires:	autoconf >= 2.60
 BuildRequires:	automake
@@ -44,6 +45,7 @@ specjalne reguły make) oddzielonych od opisów elementów do zbudoawnia.
 
 %prep
 %setup -q -n imake-%{version}
+%patch0 -p1
 
 %build
 %{__aclocal}
@@ -74,12 +76,12 @@ rm -rf $RPM_BUILD_ROOT
 %attr(755,root,root) %{_bindir}/mkhtmlindex
 %attr(755,root,root) %{_bindir}/revpath
 %attr(755,root,root) %{_bindir}/xmkmf
-%{_mandir}/man1/ccmakedep.1x*
-%{_mandir}/man1/cleanlinks.1x*
-%{_mandir}/man1/imake.1x*
-%{_mandir}/man1/makeg.1x*
-%{_mandir}/man1/mergelib.1x*
-%{_mandir}/man1/mkdirhier.1x*
-%{_mandir}/man1/mkhtmlindex.1x*
-%{_mandir}/man1/revpath.1x*
-%{_mandir}/man1/xmkmf.1x*
+%{_mandir}/man1/ccmakedep.1*
+%{_mandir}/man1/cleanlinks.1*
+%{_mandir}/man1/imake.1*
+%{_mandir}/man1/makeg.1*
+%{_mandir}/man1/mergelib.1*
+%{_mandir}/man1/mkdirhier.1*
+%{_mandir}/man1/mkhtmlindex.1*
+%{_mandir}/man1/revpath.1*
+%{_mandir}/man1/xmkmf.1*
diff --git a/xorg-util-imake-format.patch b/xorg-util-imake-format.patch
new file mode 100644
index 0000000..d468502
--- /dev/null
+++ b/xorg-util-imake-format.patch
@@ -0,0 +1,11 @@
+--- imake-1.0.6/imake.c.orig	2013-07-23 06:53:04.000000000 +0200
++++ imake-1.0.6/imake.c	2013-07-23 18:04:49.571625377 +0200
+@@ -1005,7 +1005,7 @@
+     abort ();
+ 
+   while (fgets (command, len, fp))
+-    fprintf (inFile, command);
++    fputs (command, inFile);
+ 
+   len = pclose (fp);
+   remove (aout);
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xorg-util-imake.git/commitdiff/52f2ac2451dd34453d8247f6de31cc4007c31ae2



More information about the pld-cvs-commit mailing list