Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Dec 2022 16:22:14 GMT
From:      =?utf-8?Q?Fernando=20Apestegu=C3=ADa?= <fernape@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: 88f63df37883 - main - games/bsdgames: atc: Import fix for plane allocation
Message-ID:  <202212221622.2BMGMEaX036764@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=88f63df378836149300eb02b89bd4b43a7d3e8a5

commit 88f63df378836149300eb02b89bd4b43a7d3e8a5
Author:     Martin Neubauer <m.ne@gmx.net>
AuthorDate: 2022-12-09 06:33:10 +0000
Commit:     Fernando ApesteguĂ­a <fernape@FreeBSD.org>
CommitDate: 2022-12-22 16:17:24 +0000

    games/bsdgames: atc: Import fix for plane allocation
    
    Where there is only one remaining slot.
    This was fixed in NetBSD long time ago.
    
    PR:             268248
    Reported by:    m.ne@gmx.net
    Approved by:    jockl@pianojockl.org (maintainer, timeout > 2 weeks)
    Obtained from:  http://cvsweb.netbsd.org/bsdweb.cgi/src/games/atc/update.c?only_with_tag=MAIN#rev1.22
---
 games/bsdgames/Makefile                 |  1 +
 games/bsdgames/files/patch-atc_update.c | 11 +++++++++++
 2 files changed, 12 insertions(+)

diff --git a/games/bsdgames/Makefile b/games/bsdgames/Makefile
index 0fbbca4a3e0d..cd60df538642 100644
--- a/games/bsdgames/Makefile
+++ b/games/bsdgames/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	bsdgames
 PORTVERSION=	0.75
 DISTVERSIONPREFIX=	v
+PORTREVISION=	1
 PORTEPOCH=	2
 CATEGORIES=	games
 
diff --git a/games/bsdgames/files/patch-atc_update.c b/games/bsdgames/files/patch-atc_update.c
new file mode 100644
index 000000000000..3431b036e161
--- /dev/null
+++ b/games/bsdgames/files/patch-atc_update.c
@@ -0,0 +1,11 @@
+--- atc/update.c.orig	2020-02-26 16:22:47 UTC
++++ atc/update.c
+@@ -284,7 +284,7 @@ next_plane(void)
+ 					break;
+ 				}
+ 	} while (found && last_plane != start_plane);
+-	if (last_plane == start_plane)
++	if (found)
+ 		return (-1);
+ 	return (last_plane);
+ }



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202212221622.2BMGMEaX036764>