diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-05-29 00:07:15 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-05-29 00:07:15 +0100 |
commit | 5c4786a868bad6e3f46aecf32ad6c6dc5de98408 (patch) | |
tree | 1a1792815761a5b6f645c8d55b6b698e102dca48 /games-strategy/0ad/files/0ad-0.0.26_alpha-boost-1.85.patch | |
parent | 3c1648a0749c1d66b300d857e6b417c1162890da (diff) |
gentoo auto-resync : 29:05:2024 - 00:07:15
Diffstat (limited to 'games-strategy/0ad/files/0ad-0.0.26_alpha-boost-1.85.patch')
-rw-r--r-- | games-strategy/0ad/files/0ad-0.0.26_alpha-boost-1.85.patch | 32 |
1 files changed, 32 insertions, 0 deletions
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())); + } |