public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ionen Wolkens" <ionen@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: games-board/camato/files/, games-board/camato/
Date: Tue, 29 Jun 2021 20:55:22 +0000 (UTC)	[thread overview]
Message-ID: <1624999994.4e48f39b336f9535c3bbf03e043f4a50370fbd1b.ionen@gentoo> (raw)

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)


                 reply	other threads:[~2021-06-29 20:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1624999994.4e48f39b336f9535c3bbf03e043f4a50370fbd1b.ionen@gentoo \
    --to=ionen@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox