summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2024-05-28 02:11:20 +0100
committerSam James <sam@gentoo.org>2024-05-28 02:11:20 +0100
commit9c65c36c3c18a3cbab86b009ff17daccf023c6d6 (patch)
tree773f7489032da7fc59689c2fcad826016448f160 /games-strategy
parentapp-backup/backuppc: add patch for erroneous config write (diff)
downloadgentoo-9c65c36c3c18a3cbab86b009ff17daccf023c6d6.tar.gz
gentoo-9c65c36c3c18a3cbab86b009ff17daccf023c6d6.tar.bz2
gentoo-9c65c36c3c18a3cbab86b009ff17daccf023c6d6.zip
games-strategy/0ad: fix build w/ boost-1.85
Closes: https://bugs.gentoo.org/932254 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-strategy')
-rw-r--r--games-strategy/0ad/0ad-0.0.26_alpha-r1.ebuild2
-rw-r--r--games-strategy/0ad/files/0ad-0.0.26_alpha-boost-1.85.patch32
2 files changed, 34 insertions, 0 deletions
diff --git a/games-strategy/0ad/0ad-0.0.26_alpha-r1.ebuild b/games-strategy/0ad/0ad-0.0.26_alpha-r1.ebuild
index 14311b6b04fe..7c7373e81a78 100644
--- a/games-strategy/0ad/0ad-0.0.26_alpha-r1.ebuild
+++ b/games-strategy/0ad/0ad-0.0.26_alpha-r1.ebuild
@@ -101,6 +101,8 @@ PATCHES=(
"${FILESDIR}"/${P}-add-missing-cstdint-include.patch
# https://code.wildfiregames.com/D5219
"${FILESDIR}"/${P}-libxml2-2.12.patch
+ # https://code.wildfiregames.com/D5267
+ "${FILESDIR}"/${P}-boost-1.85.patch
)
pkg_setup() {
diff --git a/games-strategy/0ad/files/0ad-0.0.26_alpha-boost-1.85.patch b/games-strategy/0ad/files/0ad-0.0.26_alpha-boost-1.85.patch
new file mode 100644
index 000000000000..cddec5e2a86c
--- /dev/null
+++ b/games-strategy/0ad/files/0ad-0.0.26_alpha-boost-1.85.patch
@@ -0,0 +1,32 @@
+https://bugs.gentoo.org/932254
+https://code.wildfiregames.com/file/data/ubpvat3mgrfn6gnaquuq/PHID-FILE-d7xwslolc5hv2vwv66tb/D5267.diff
+
+Index: source/graphics/TextureManager.cpp
+===================================================================
+--- a/source/graphics/TextureManager.cpp
++++ b/source/graphics/TextureManager.cpp
+@@ -806,7 +806,7 @@
+ files.push_back(f);
+ p = p / GetWstringFromWpath(*it);
+ }
+- return m_TextureConverter.ComputeSettings(GetWstringFromWpath(srcPath.leaf()), files);
++ return m_TextureConverter.ComputeSettings(GetWstringFromWpath(srcPath.filename()), files);
+ }
+
+ /**
+Index: source/lib/file/file_system.cpp
+===================================================================
+--- a/source/lib/file/file_system.cpp
++++ b/source/lib/file/file_system.cpp
+@@ -229,7 +229,11 @@
+ try
+ {
+ if(override_if_exists)
++#if BOOST_VERSION >=107400
++ fs::copy_file(fs::path(path.string()), fs::path(newPath.string()), boost::filesystem::copy_options::overwrite_existing);
++#else
+ fs::copy_file(fs::path(path.string()), fs::path(newPath.string()), boost::filesystem::copy_option::overwrite_if_exists);
++#endif
+ else
+ fs::copy_file(fs::path(path.string()), fs::path(newPath.string()));
+ }