[gnome-games/f17] Fix glchess not working when playing against the computer (rhbz#917305)
Hans de Goede
jwrdegoede at fedoraproject.org
Tue Mar 5 20:57:07 UTC 2013
commit 51928318c864c3898445e9e68aa3e2eacac323e7
Author: Hans de Goede <hdegoede at redhat.com>
Date: Tue Mar 5 22:00:28 2013 +0100
Fix glchess not working when playing against the computer (rhbz#917305)
...eck-so-gnome-sudoku-works-with-pygobject-.patch | 33 -------------
glchess-respect-engine-args.patch | 48 ++++++++++++++++++++
gnome-games.spec | 7 +++-
iagno.patch | 13 -----
4 files changed, 54 insertions(+), 47 deletions(-)
---
diff --git a/glchess-respect-engine-args.patch b/glchess-respect-engine-args.patch
new file mode 100644
index 0000000..8012910
--- /dev/null
+++ b/glchess-respect-engine-args.patch
@@ -0,0 +1,48 @@
+From 8e728c0557aa8a6746a6abd573e560ed1bf83cee Mon Sep 17 00:00:00 2001
+From: Michael Catanzaro <mike.catanzaro at gmail.com>
+Date: Wed, 2 Jan 2013 13:17:18 -0600
+Subject: [PATCH] Respect engine args specified in engines.conf
+
+https://bugzilla.gnome.org/show_bug.cgi?id=691031
+---
+ glchess/src/chess-engine.vala | 4 +++-
+ glchess/src/glchess.vala | 1 +
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/glchess/src/chess-engine.vala b/glchess/src/chess-engine.vala
+index 0792f3b..3762889 100644
+--- a/glchess/src/chess-engine.vala
++++ b/glchess/src/chess-engine.vala
+@@ -1,6 +1,8 @@
+ public class ChessEngine : Object
+ {
+ public string binary;
++ public string args;
++
+ private Pid pid;
+ private int stdin_fd;
+ private int stderr_fd;
+@@ -30,7 +32,7 @@ public class ChessEngine : Object
+
+ public bool start ()
+ {
+- string[] argv = { binary, null };
++ string[] argv = { binary, args, null };
+ int stdout_fd;
+ try
+ {
+diff --git a/glchess/src/glchess.vala b/glchess/src/glchess.vala
+index 1e6f5ee..5e32e76 100644
+--- a/glchess/src/glchess.vala
++++ b/glchess/src/glchess.vala
+@@ -529,6 +529,7 @@ public class Application : Gtk.Application
+ return null;
+ }
+ engine.binary = profile.binary;
++ engine.args = profile.args;
+
+ return engine;
+ }
+--
+1.7.11.7
+
diff --git a/gnome-games.spec b/gnome-games.spec
index 284f551..003fcda 100644
--- a/gnome-games.spec
+++ b/gnome-games.spec
@@ -31,7 +31,7 @@
Summary: Games for the GNOME desktop
Name: gnome-games
Version: 3.4.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Epoch: 1
License: GPLv2+ and GPLv3 and GFDL
Group: Amusements/Games
@@ -40,6 +40,7 @@ Source: http://download.gnome.org/sources/gnome-games/3.4/gnome-games-%{version}
Patch0: gnome-games-gl.patch
Patch1: fix-fr-translation.patch
+Patch2: glchess-respect-engine-args.patch
Obsoletes: gnome-games-devel < %{epoch}:%{version}-%{release}
URL: http://projects.gnome.org/gnome-games/
@@ -118,6 +119,7 @@ This package contains user documentation for %{name}.
%setup -q
%patch0 -p1 -b .gl
%patch1 -p1 -b .fix-fr-translation
+%patch2 -p1
%build
%configure --localstatedir=/var/lib \
@@ -368,6 +370,9 @@ glib-compile-schemas %{_datadir}/glib-2.0/schemas &>/dev/null || :
%{_datadir}/help/*/lightsoff
%changelog
+* Tue Mar 5 2013 Hans de Goede <hdegoede at redhat.com> - 1:3.4.2-2
+- Fix glchess not working when playing against the computer (rhbz#917305)
+
* Tue May 15 2012 Richard Hughes <hughsient at gmail.com> - 1:3.4.2-1
- Update to 3.4.2
More information about the scm-commits
mailing list