[berusky/f15] Fixed rhbz#689106 - seg. fault after start

Martin Stransky stransky at fedoraproject.org
Wed Jun 22 20:55:30 UTC 2011


commit 1a05566820012e96b61706aa6ac31c40b05e25f1
Author: Martin Stransky <stransky at anakreon.cz>
Date:   Wed Jun 22 22:55:17 2011 +0200

    Fixed rhbz#689106 - seg. fault after start

 berusky-level-load.patch |   12 ++++++++++++
 berusky.spec             |    7 ++++++-
 2 files changed, 18 insertions(+), 1 deletions(-)
---
diff --git a/berusky-level-load.patch b/berusky-level-load.patch
new file mode 100644
index 0000000..239d5d4
--- /dev/null
+++ b/berusky-level-load.patch
@@ -0,0 +1,12 @@
+--- a/src/level_game.cpp
++++ b/src/level_game.cpp
+@@ -183,7 +190,7 @@ bool level_generic::level_exists(const char *p_file)
+ //Fixes bug deb#431906.
+ static inline word translate_level_word(word w)
+ {
+-#ifdef LINXU
++#ifdef LINUX
+ #if BYTE_ORDER == BIG_ENDIAN
+   return static_cast<word>(w >> 8) | static_cast<word>(w << 8);
+ #else
+
diff --git a/berusky.spec b/berusky.spec
index a80d4e0..e7a5df6 100644
--- a/berusky.spec
+++ b/berusky.spec
@@ -1,12 +1,13 @@
 Summary:        Sokoban clone
 Name:           berusky
 Version:        1.2
-Release:        1%{?dist}
+Release:        2%{?dist}
 License:        GPLv2+
 Group:          Amusements/Games
 Source:         http://www.anakreon.cz/download/berusky/tar.gz/%{name}-%{version}.tar.gz
 Source1:        berusky.desktop
 Source2:        berusky.png
+Patch1:         berusky-level-load.patch
 URL:            http://www.anakreon.cz/
 BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires:  	berusky-data
@@ -26,6 +27,7 @@ This package contains a binary for the game.
 
 %prep
 %setup -q -n %{name}-%{version}
+%patch1 -p1 -b .level-load
 
 %build
 %configure \
@@ -75,6 +77,9 @@ fi
 %{_datadir}/icons/hicolor/32x32/apps/berusky.png
 
 %changelog
+* Wed Jun 22 2011 Martin Stransky <stransky at redhat.com> 1.2-2
+- Fixed rhbz#689106 - seg. fault after start
+
 * Sun Mar 6 2011 Martin Stransky <stransky at redhat.com> 1.2-1
 - updated to 1.2
 


More information about the scm-commits mailing list