git: 0c164c148d89 - main - games/tetzle: update 3.0.0 → 3.0.1
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 07 Feb 2025 00:21:56 UTC
The branch main has been updated by amdmi3:
URL: https://cgit.FreeBSD.org/ports/commit/?id=0c164c148d890b53e2d5045475ca6d5873dc9430
commit 0c164c148d890b53e2d5045475ca6d5873dc9430
Author: Dmitry Marakasov <amdmi3@FreeBSD.org>
AuthorDate: 2025-01-15 20:53:31 +0000
Commit: Dmitry Marakasov <amdmi3@FreeBSD.org>
CommitDate: 2025-02-07 00:19:23 +0000
games/tetzle: update 3.0.0 → 3.0.1
---
games/tetzle/Makefile | 2 +-
games/tetzle/distinfo | 6 +++---
games/tetzle/files/patch-src_piece.cpp | 14 ++++++++++++++
3 files changed, 18 insertions(+), 4 deletions(-)
diff --git a/games/tetzle/Makefile b/games/tetzle/Makefile
index b7f0eb0e64a3..dd22f31bfd82 100644
--- a/games/tetzle/Makefile
+++ b/games/tetzle/Makefile
@@ -1,5 +1,5 @@
PORTNAME= tetzle
-PORTVERSION= 3.0.0
+PORTVERSION= 3.0.1
CATEGORIES= games
MASTER_SITES= https://gottcode.org/${PORTNAME}/
diff --git a/games/tetzle/distinfo b/games/tetzle/distinfo
index 5c8c34d7077d..ec355addff10 100644
--- a/games/tetzle/distinfo
+++ b/games/tetzle/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1722950749
-SHA256 (tetzle-3.0.0.tar.bz2) = bdb3b1769e8d52aa1c440ffdfb553fd957f7e605653b95f299507dfaa01d906b
-SIZE (tetzle-3.0.0.tar.bz2) = 1038386
+TIMESTAMP = 1736973761
+SHA256 (tetzle-3.0.1.tar.bz2) = 1961327cad9c3a551c8f71f8fb3d071df97310ec69f1fec179663c798da10856
+SIZE (tetzle-3.0.1.tar.bz2) = 1038819
diff --git a/games/tetzle/files/patch-src_piece.cpp b/games/tetzle/files/patch-src_piece.cpp
new file mode 100644
index 000000000000..696c1316340d
--- /dev/null
+++ b/games/tetzle/files/patch-src_piece.cpp
@@ -0,0 +1,14 @@
+Fixes crash caused by invalidating m_neighbours iterator by
+removing the very element we're currently itarating over in
+attach(). Reported upstream.
+
+--- src/piece.cpp.orig 2025-01-06 15:00:16 UTC
++++ src/piece.cpp
+@@ -94,6 +94,7 @@ void Piece::attachSolutionNeighbors()
+ if (delta.manhattanLength() <= m_attach_margin) {
+ piece->moveBy(delta);
+ attach(piece);
++ return;
+ }
+ }
+ }