commit:     c604ee44c95cab54ca821935fb843e1633d293a5
Author:     Tim Sviridov <Lt.Infiltrator <AT> gmail <DOT> com>
AuthorDate: Thu Sep  4 07:29:23 2025 +0000
Commit:     Tim Sviridov <Lt.Infiltrator <AT> gmail <DOT> com>
CommitDate: Fri Sep  5 01:53:58 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=c604ee44

games-strategy/7k-ambition: Fix desync with other releases

The Ambition releases were built with gcc 12 and the 7kfans releases are
(presumably still) built with gcc 11.  In gcc 14, the default for
-fexcess-precision changed from fast to standard, which results in
slightly different floating point results and causes multiplayer
desyncs.

Until this is fixed in upstream, we can set the flag in the ebuild.

Signed-off-by: Tim Sviridov <Lt.Infiltrator <AT> gmail.com>

 .../{7k-ambition-9999.ebuild => 7k-ambition-3.2.4-r1.ebuild}          | 4 +++-
 games-strategy/7k-ambition/7k-ambition-9999.ebuild                    | 4 +++-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/games-strategy/7k-ambition/7k-ambition-9999.ebuild 
b/games-strategy/7k-ambition/7k-ambition-3.2.4-r1.ebuild
similarity index 94%
copy from games-strategy/7k-ambition/7k-ambition-9999.ebuild
copy to games-strategy/7k-ambition/7k-ambition-3.2.4-r1.ebuild
index dd3b6c6a98..c23bfa7e4c 100644
--- a/games-strategy/7k-ambition/7k-ambition-9999.ebuild
+++ b/games-strategy/7k-ambition/7k-ambition-3.2.4-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools desktop toolchain-funcs xdg
+inherit autotools desktop flag-o-matic toolchain-funcs xdg
 
 if [[ ${PV} == *9999* ]]; then
        inherit git-r3
@@ -56,6 +56,8 @@ src_configure() {
                $(use_enable nls)
                $(use_enable multiplayer)
        )
+
+       append-cxxflags -fexcess-precision=fast
        econf "${myeconfargs[@]}"
 }
 

diff --git a/games-strategy/7k-ambition/7k-ambition-9999.ebuild 
b/games-strategy/7k-ambition/7k-ambition-9999.ebuild
index dd3b6c6a98..c23bfa7e4c 100644
--- a/games-strategy/7k-ambition/7k-ambition-9999.ebuild
+++ b/games-strategy/7k-ambition/7k-ambition-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools desktop toolchain-funcs xdg
+inherit autotools desktop flag-o-matic toolchain-funcs xdg
 
 if [[ ${PV} == *9999* ]]; then
        inherit git-r3
@@ -56,6 +56,8 @@ src_configure() {
                $(use_enable nls)
                $(use_enable multiplayer)
        )
+
+       append-cxxflags -fexcess-precision=fast
        econf "${myeconfargs[@]}"
 }
 

Reply via email to