Bug 287534 - games/fs2open: Fails to build
Summary: games/fs2open: Fails to build
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Daniel Engberg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-06-14 09:53 UTC by Daniel Engberg
Modified: 2025-11-13 00:30 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (pkubaj)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Engberg freebsd_committer freebsd_triage 2025-06-14 09:53:48 UTC
[ 20% 240/1136] /usr/bin/c++ -DDISCORD_LINUX -DNDEBUG -D__STDC_FORMAT_MACROS -I/wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/../thirdparty -I/wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/../include -O2 -pipe -march=znver4 -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG   -W -Wall -Wextra -fsigned-char -Wno-unknown-pragmas -fdiagnostics-color  -Wformat-security -Wreturn-type -Wno-char-subscripts -Wno-shift-negative-value -O2 -Wno-unused-variable -Wno-unused-parameter -std=gnu++14 -w -pthread -MD -MT lib/discord/src/CMakeFiles/discord-rpc.dir/rpc_connection.cpp.o -MF lib/discord/src/CMakeFiles/discord-rpc.dir/rpc_connection.cpp.o.d -o lib/discord/src/CMakeFiles/discord-rpc.dir/rpc_connection.cpp.o -c /wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/rpc_connection.cpp
FAILED: lib/discord/src/CMakeFiles/discord-rpc.dir/rpc_connection.cpp.o 
/usr/bin/c++ -DDISCORD_LINUX -DNDEBUG -D__STDC_FORMAT_MACROS -I/wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/../thirdparty -I/wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/../include -O2 -pipe -march=znver4 -fstack-protector-strong -fno-strict-aliasing   -DNDEBUG   -W -Wall -Wextra -fsigned-char -Wno-unknown-pragmas -fdiagnostics-color  -Wformat-security -Wreturn-type -Wno-char-subscripts -Wno-shift-negative-value -O2 -Wno-unused-variable -Wno-unused-parameter -std=gnu++14 -w -pthread -MD -MT lib/discord/src/CMakeFiles/discord-rpc.dir/rpc_connection.cpp.o -MF lib/discord/src/CMakeFiles/discord-rpc.dir/rpc_connection.cpp.o.d -o lib/discord/src/CMakeFiles/discord-rpc.dir/rpc_connection.cpp.o -c /wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/rpc_connection.cpp
In file included from /wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/rpc_connection.cpp:1:
In file included from /wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/rpc_connection.h:4:
In file included from /wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/serialization.h:15:
/wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/../thirdparty/rapidjson/document.h:319:82: error: cannot assign to non-static data member 'length' with const-qualified type 'const SizeType' (aka 'const unsigned int')
  319 |     GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; length = rhs.length; }
      |                                                                           ~~~~~~ ^
/wrkdirs/usr/ports/games/fs2open/work/fs2open.github.com-release_23_2_1/lib/discord/src/../thirdparty/rapidjson/document.h:325:20: note: non-static data member 'length' declared const here
  325 |     const SizeType length; //!< length of the string (excluding the trailing NULL terminator)
      |     ~~~~~~~~~~~~~~~^~~~~~
1 error generated.

FreeBSD 14.3-RELEASE (amd64) in Poudriere
Comment 1 commit-hook freebsd_committer freebsd_triage 2025-11-02 09:01:24 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=71517975885124b92459b31613136111269b8f95

commit 71517975885124b92459b31613136111269b8f95
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-11-02 08:44:44 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-11-02 08:50:27 +0000

    games/fs2open: Mark BROKEN and set expiration date to 2025-12-31

    Broken for months, fails to build
    error: cannot assign to non-static data member 'length' with const-qualified type 'const SizeType' (aka 'const unsigned int')

    PR:             287534
    Reported by:    pkg-fallout

 games/fs2open/Makefile | 3 +++
 1 file changed, 3 insertions(+)
Comment 2 Mark Linimon freebsd_committer freebsd_triage 2025-11-13 00:30:52 UTC
^Triage: port has been marked BROKEN.