[gtetrinet] Fix FTBFS on F22, rfbz #3632

Sérgio M. Basto sergiomb at rpmfusion.org
Thu Jul 21 18:11:48 CEST 2016


commit 2459012ec8dc3bb7ed26ed96cc6375625fa65532
Author: Sérgio M. Basto <sergio at serjux.com>
Date:   Thu Jul 21 17:10:58 2016 +0100

    Fix FTBFS on F22, rfbz #3632

 gtetrinet-0.7.11-format-security.patch | 11 +++++++++++
 gtetrinet.spec                         |  9 +++++++--
 2 files changed, 18 insertions(+), 2 deletions(-)
---
diff --git a/gtetrinet-0.7.11-format-security.patch b/gtetrinet-0.7.11-format-security.patch
new file mode 100644
index 0000000..6379899
--- /dev/null
+++ b/gtetrinet-0.7.11-format-security.patch
@@ -0,0 +1,11 @@
+--- gtetrinet-0.7.11.orig/src/tetrinet.c	2006-09-02 11:59:13.000000000 +0100
++++ gtetrinet-0.7.11/src/tetrinet.c	2015-05-10 23:00:33.492201857 +0100
+@@ -232,7 +232,7 @@ void tetrinet_inmessage (enum inmsg_type
+             dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL,
+                                              GTK_MESSAGE_ERROR,
+                                              GTK_BUTTONS_OK,
+-                                             buf);
++                                             "%s", buf);
+             gtk_dialog_run (GTK_DIALOG(dialog));
+             gtk_widget_destroy (dialog);
+             g_free (data_utf8);
diff --git a/gtetrinet.spec b/gtetrinet.spec
index 23211b7..bfda2d5 100644
--- a/gtetrinet.spec
+++ b/gtetrinet.spec
@@ -1,13 +1,14 @@
 Summary: GNOME version of a tetris game playable on the net
 Name: gtetrinet
 Version: 0.7.11
-Release: 7%{?dist}
+Release: 8%{?dist}
 License: GPLv2+
 Group: Amusements/Games
 URL: http://gtetrinet.sourceforge.net/
 Source0: http://ftp.gnome.org/pub/GNOME/sources/gtetrinet/0.7/gtetrinet-%{version}.tar.bz2
 Source1: tetrinet.txt
 Source2: http://www.mavit.pwp.blueyonder.co.uk/mmr-sounds-1.0.tar.gz
+Patch1: gtetrinet-0.7.11-format-security.patch
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
 Requires: libgnome >= 2.0.0
 Requires: libgnomeui >= 2.0.0
@@ -25,6 +26,7 @@ is, check out tetrinet.org)
 
 %prep
 %setup -q
+%patch1 -p1
 
 
 %build
@@ -59,6 +61,9 @@ is, check out tetrinet.org)
 
 
 %changelog
+* Sun May 10 2015 Sérgio Basto <sergio at serjux.com> - 0.7.11-8
+- Fix FTBFS on F22, rfbz #3632
+
 * Sun Aug 31 2014 Sérgio Basto <sergio at serjux.com> - 0.7.11-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
 
@@ -143,7 +148,7 @@ is, check out tetrinet.org)
 - Rebuilt against Red Hat Linux 7.3.
 - Added the %%{?_smp_mflags} expansion.
 
-* Wed Apr 26 2001 Matthias Saou <http://freshrpms.net/>
+* Wed Apr 25 2001 Matthias Saou <http://freshrpms.net/>
 - Spec file cleanup and rebuilt for Red Hat 7.1.
 - I think this was one of my first RPMs ;-)
 


More information about the rpmfusion-commits mailing list