From 4e48f39b336f9535c3bbf03e043f4a50370fbd1b Mon Sep 17 00:00:00 2001 From: Ionen Wolkens Date: Tue, 29 Jun 2021 16:32:26 -0400 Subject: [PATCH] games-board/camato: fix crash on keyboard events Signed-off-by: Ionen Wolkens --- .../{camato-0.7.4-r1.ebuild => camato-0.7.4-r2.ebuild} | 4 ++++ .../camato/files/camato-0.7.4-implicit-string.patch | 8 ++++++++ 2 files changed, 12 insertions(+) rename games-board/camato/{camato-0.7.4-r1.ebuild => camato-0.7.4-r2.ebuild} (93%) create mode 100644 games-board/camato/files/camato-0.7.4-implicit-string.patch diff --git a/games-board/camato/camato-0.7.4-r1.ebuild b/games-board/camato/camato-0.7.4-r2.ebuild similarity index 93% rename from games-board/camato/camato-0.7.4-r1.ebuild rename to games-board/camato/camato-0.7.4-r2.ebuild index 92df74471f240..7dc2af1998832 100644 --- a/games-board/camato/camato-0.7.4-r1.ebuild +++ b/games-board/camato/camato-0.7.4-r2.ebuild @@ -18,6 +18,10 @@ KEYWORDS="~amd64 ~x86" ruby_add_rdepend dev-ruby/ruby-gtk2 +PATCHES=( + "${FILESDIR}"/${P}-implicit-string.patch +) + all_ruby_prepare() { # this is really single target, but ruby-single is too limited local ruby=$(ruby_get_use_implementations) diff --git a/games-board/camato/files/camato-0.7.4-implicit-string.patch b/games-board/camato/files/camato-0.7.4-implicit-string.patch new file mode 100644 index 0000000000000..e631b07a87a8f --- /dev/null +++ b/games-board/camato/files/camato-0.7.4-implicit-string.patch @@ -0,0 +1,8 @@ +Crashes on keyboard events otherwise. +--- a/map.rb ++++ b/map.rb +@@ -35,3 +35,3 @@ + if i < 0 or i > 255 then i = 0 end +- my_str[0] = i ++ my_str[0] = i.to_s + set_resource(my_str)