commit: db6a0e61d97cf6021d7265b212148ee0aee66879 Author: NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com> AuthorDate: Sun Feb 8 16:15:20 2026 +0000 Commit: Conrad Kostecki <conikost <AT> gentoo <DOT> org> CommitDate: Sun Feb 8 21:33:59 2026 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=db6a0e61
net-im/spectrum2: Port frotz backend to C23 Mandatory C99 booleans. And Boost API change as a chaser. Closes: https://bugs.gentoo.org/969771 Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com> Part-of: https://github.com/gentoo/gentoo/pull/45692 Closes: https://github.com/gentoo/gentoo/pull/45692 Signed-off-by: Conrad Kostecki <conikost <AT> gentoo.org> .../files/spectrum2-2.2.1-frotz-C23.patch | 50 ++++++++++++++++++++++ net-im/spectrum2/spectrum2-2.2.1-r1.ebuild | 1 + 2 files changed, 51 insertions(+) diff --git a/net-im/spectrum2/files/spectrum2-2.2.1-frotz-C23.patch b/net-im/spectrum2/files/spectrum2-2.2.1-frotz-C23.patch new file mode 100644 index 000000000000..edba64f208ab --- /dev/null +++ b/net-im/spectrum2/files/spectrum2-2.2.1-frotz-C23.patch @@ -0,0 +1,50 @@ +https://bugs.gentoo.org/969771 +Use modern booleans instead of redefining them. +Also do an boost api change for extensions as +it was done in different patch. +--- a/backends/frotz/dfrotz/common/frotz.h ++++ b/backends/frotz/dfrotz/common/frotz.h +@@ -13,14 +13,14 @@ + + #ifndef __UNIX_PORT_FILE + #include <signal.h> +-typedef int bool; ++#include <stdbool.h> + + #ifndef TRUE +-#define TRUE 1 ++#define TRUE true + #endif + + #ifndef FALSE +-#define FALSE 0 ++#define FALSE false + #endif + + #endif /* __UNIX_PORT_FILE */ +@@ -594,12 +594,12 @@ + void os_init_screen (void); + void os_more_prompt (void); + int os_peek_colour (void); +-int os_picture_data (int, int *, int *); ++bool os_picture_data (int, int *, int *); + void os_prepare_sample (int); + void os_process_arguments (int, char *[]); + int os_random_seed (void); + int os_read_file_name (char *, const char *, int); +-zchar os_read_key (int, int); ++zchar os_read_key (int, bool); + zchar os_read_line (int, zchar *, int, int, int); + void os_reset_screen (void); + void os_restart_game (int); +--- a/backends/frotz/main.cpp ++++ b/backends/frotz/main.cpp +@@ -234,7 +234,7 @@ + path p("."); + directory_iterator end_itr; + for (directory_iterator itr(p); itr != end_itr; ++itr) { +- if (extension(itr->path()) == ".z5") { ++ if (itr->path().extension().string() == ".z5") { + #if BOOST_FILESYSTEM_VERSION == 3 + games.push_back(itr->path().filename().string()); + #else diff --git a/net-im/spectrum2/spectrum2-2.2.1-r1.ebuild b/net-im/spectrum2/spectrum2-2.2.1-r1.ebuild index aec799d60ab9..13fc3d69f269 100644 --- a/net-im/spectrum2/spectrum2-2.2.1-r1.ebuild +++ b/net-im/spectrum2/spectrum2-2.2.1-r1.ebuild @@ -65,6 +65,7 @@ PATCHES=( "${FILESDIR}"/${PN}-2.2.1-cmake.patch "${FILESDIR}"/${PN}-2.2.1-cmake-ld-typo.patch "${FILESDIR}"/${PN}-2.2.1-libcommuni-qt6.patch + "${FILESDIR}"/${PN}-2.2.1-frotz-C23.patch ) src_prepare() {
