commit: 4e48f39b336f9535c3bbf03e043f4a50370fbd1b Author: Ionen Wolkens <ionen <AT> gentoo <DOT> org> AuthorDate: Tue Jun 29 20:32:26 2021 +0000 Commit: Ionen Wolkens <ionen <AT> gentoo <DOT> org> CommitDate: Tue Jun 29 20:53:14 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e48f39b
games-board/camato: fix crash on keyboard events Signed-off-by: Ionen Wolkens <ionen <AT> gentoo.org> .../camato/{camato-0.7.4-r1.ebuild => camato-0.7.4-r2.ebuild} | 4 ++++ games-board/camato/files/camato-0.7.4-implicit-string.patch | 8 ++++++++ 2 files changed, 12 insertions(+) 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 92df74471f2..7dc2af19988 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 00000000000..e631b07a87a --- /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)