[packages/clit] - added format patch (fixes build with -Werror=format-security) - release 3 (libtommath rebuild)

qboosh qboosh at pld-linux.org
Thu Sep 1 18:28:23 CEST 2016


commit 32da9af029dea6cd214dae0c3ad4f1de4d1e3942
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Thu Sep 1 18:29:39 2016 +0200

    - added format patch (fixes build with -Werror=format-security)
    - release 3 (libtommath rebuild)

 clit-format.patch | 14 ++++++++++++++
 clit.spec         |  6 ++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/clit.spec b/clit.spec
index 015e8c0..ba9b58c 100644
--- a/clit.spec
+++ b/clit.spec
@@ -3,11 +3,12 @@ Summary:	Open Convert-.LIT tool
 Summary(pl.UTF-8):	Otwarte narzędzie do rozpakowywania plików .LIT
 Name:		clit
 Version:	1.8
-Release:	2
+Release:	3
 License:	GPL v2+
 Group:		Applications/Archiving
 Source0:	http://www.kyz.uklinux.net/downloads/open_c-lit-%{version}.tar.gz
 # Source0-md5:	d8c599cf0e3cd8bab08e455e51ef852d
+Patch0:		%{name}-format.patch
 URL:		http://www.kyz.uklinux.net/convlit.php
 BuildRequires:	libtommath-devel
 BuildRequires:	sed >= 4.0
@@ -25,6 +26,7 @@ być pogwałceniem DMCA.
 
 %prep
 %setup -q -c
+%patch0 -p1
 
 sed -i -e 's/gcc -o clit.*/$(CC) -o clit $^ -ltommath/' %{name}%{xver}/Makefile
 
@@ -48,4 +50,4 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc README
-%attr(755,root,root) %{_bindir}/*
+%attr(755,root,root) %{_bindir}/clit
diff --git a/clit-format.patch b/clit-format.patch
new file mode 100644
index 0000000..59c46cd
--- /dev/null
+++ b/clit-format.patch
@@ -0,0 +1,14 @@
+--- clit-1.8/clit18/clit.c.orig	2004-07-04 17:20:12.000000000 +0200
++++ clit-1.8/clit18/clit.c	2016-09-01 18:15:22.946863883 +0200
+@@ -125,9 +125,9 @@
+             dir_program[i+1] = '\0'; break;
+         }
+     }
+-    printf(sTitle);
++    fputs(sTitle, stdout);
+     if (argc < 3) { 
+-        printf(sUsage);
++        fputs(sUsage, stdout);
+         return -1;
+     }
+     base = 1;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/clit.git/commitdiff/32da9af029dea6cd214dae0c3ad4f1de4d1e3942



More information about the pld-cvs-commit mailing list