git: 66fb9bc549be - main - games/spacejunk: fix build with clang 19

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Sat, 10 Oct 2026 18:16:29 UTC
The branch main has been updated by pkubaj:

URL: https://cgit.FreeBSD.org/ports/commit/?id=66fb9bc549bee4199db109f45db37d474eaf066f

commit 66fb9bc549bee4199db109f45db37d474eaf066f
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2026-10-09 13:14:48 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2026-10-10 18:15:26 +0000

    games/spacejunk: fix build with clang 19
    
    erase_iterator's copy assignment operator was declared const; clang 19
    rejects its non-dependent member assignments at template definition time.
---
 games/spacejunk/files/patch-src_functionexts.h | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/games/spacejunk/files/patch-src_functionexts.h b/games/spacejunk/files/patch-src_functionexts.h
new file mode 100644
index 000000000000..f1fd1028390b
--- /dev/null
+++ b/games/spacejunk/files/patch-src_functionexts.h
@@ -0,0 +1,11 @@
+--- src/functionexts.h.orig	2010-05-12 18:35:20 UTC
++++ src/functionexts.h
+@@ -429,7 +429,7 @@ private:
+     bool * iterating;
+     bool _iterating;
+     Container * c;
+-    erase_iterator & operator = (const erase_iterator &ei) const {
++    erase_iterator & operator = (const erase_iterator &ei) {
+         c=ei.c;
+         iterating=ei.iterating;
+         _iterating=ei._iterating;