[squeak-vm] Fixed compilation with -Werror=format-security
Jaroslav Škarvada
jskarvad at fedoraproject.org
Fri Dec 6 10:43:37 UTC 2013
commit c7e5cf07755eb5cdf9bbc943dc051764f5aa123e
Author: Jaroslav Škarvada <jskarvad at redhat.com>
Date: Fri Dec 6 11:43:35 2013 +0100
Fixed compilation with -Werror=format-security
Resolves: rhbz#1037336
- Fixed bogus dates in changelog (best effort)
squeak-vm-4.10.2-format-security.patch | 13 +++++++++++++
squeak-vm.spec | 13 ++++++++++---
2 files changed, 23 insertions(+), 3 deletions(-)
---
diff --git a/squeak-vm-4.10.2-format-security.patch b/squeak-vm-4.10.2-format-security.patch
new file mode 100644
index 0000000..ab51ed6
--- /dev/null
+++ b/squeak-vm-4.10.2-format-security.patch
@@ -0,0 +1,13 @@
+diff --git a/Cross/plugins/Squeak3D/b3dMain.c b/Cross/plugins/Squeak3D/b3dMain.c
+index 2716d4a..b920906 100644
+--- a/Cross/plugins/Squeak3D/b3dMain.c
++++ b/Cross/plugins/Squeak3D/b3dMain.c
+@@ -63,7 +63,7 @@ int maxEdges = 0;
+ /*************************************************************/
+
+ void b3dAbort(char *msg){
+- printf(msg);
++ printf("%s", msg);
+ exit(-1);
+ }
+
diff --git a/squeak-vm.spec b/squeak-vm.spec
index 995b35d..eb353b8 100644
--- a/squeak-vm.spec
+++ b/squeak-vm.spec
@@ -8,7 +8,7 @@
Name: squeak-vm
Version: %{vmver}
-Release: 8%{?dist}
+Release: 9%{?dist}
Summary: The Squeak virtual machine
Group: Development/Languages
@@ -21,6 +21,7 @@ Patch0: squeak-vm-dprintf.patch
Patch1: alsa-fixes.patch
Patch2: squeak-vm-4.10.2-fix-cmake.patch
Patch3: squeak-vm-4.10.2-squeak-init-fix.patch
+Patch4: squeak-vm-4.10.2-format-security.patch
BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX)
# For clean upgrade path, could be probably dropped in F20 or later
@@ -52,6 +53,7 @@ This package contains just the Squeak virtual machine.
%patch1 -p2 -b .alsa-fixes
%patch2 -p1 -b .fix-cmake
%patch3 -p1 -b .squeak-init-fix
+%patch4 -p1 -b .format-security
# Fix libdir
sed -i 's|libdir="${prefix}/lib/squeak"|libdir="%{_libdir}/squeak"|' unix/cmake/squeak.in
@@ -167,6 +169,11 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
%{_datadir}/icons/gnome/*/mimetypes/*.png
%changelog
+* Fri Dec 6 2013 Jaroslav Škarvada <jskarvad at redhat.com> - 4.10.2.2614-9
+- Fixed compilation with -Werror=format-security
+ Resolves: rhbz#1037336
+- Fixed bogus dates in changelog (best effort)
+
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 4.10.2.2614-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
@@ -361,11 +368,11 @@ update-mime-database %{_datadir}/mime &> /dev/null || :
- 3.9-10olpc3: SVN r.1613 + olpc.patch
- big cursor support (bf)
- faster camera input (dgd)
-* Wed Nov 09 2006 Bert Freudenberg <bert at freudenbergs.de>
+* Thu Nov 09 2006 Bert Freudenberg <bert at freudenbergs.de>
- 3.9-10olpc1: SVN r.1591
- work around ALSA SIGIO issue (bf)
- added dgd's camera support (V4L plugin)
-* Wed Nov 09 2006 Bert Freudenberg <bert at freudenbergs.de>
+* Thu Nov 09 2006 Bert Freudenberg <bert at freudenbergs.de>
- 3.9-9olpc4: SVN r.1571
- compile without GL
* Wed Oct 18 2006 Bert Freudenberg <bert at freudenbergs.de>
More information about the scm-commits
mailing list