diff --git a/srcpkgs/Aegisub/patches/boost181.patch b/srcpkgs/Aegisub/patches/boost181.patch new file mode 100644 index 00000000000..a62c965fe97 --- /dev/null +++ b/srcpkgs/Aegisub/patches/boost181.patch @@ -0,0 +1,65 @@ +Index: Aegisub-3.3.2/src/command/video.cpp +=================================================================== +--- Aegisub-3.3.2.orig/src/command/video.cpp ++++ Aegisub-3.3.2/src/command/video.cpp +@@ -475,7 +475,7 @@ static void save_snapshot(agi::Context * + // If where ever that is isn't defined, we can't save there + if ((basepath == "\\") || (basepath == "/")) { + // So save to the current user's home dir instead +- basepath = wxGetHomeDir().c_str(); ++ basepath = static_cast(wxGetHomeDir().c_str()); + } + } + // Actual fixed (possibly relative) path, decode it +Index: Aegisub-3.3.2/src/dialog_attachments.cpp +=================================================================== +--- Aegisub-3.3.2.orig/src/dialog_attachments.cpp ++++ Aegisub-3.3.2/src/dialog_attachments.cpp +@@ -161,7 +161,7 @@ void DialogAttachments::OnExtract(wxComm + + // Multiple or single? + if (listView->GetNextSelected(i) != -1) +- path = wxDirSelector(_("Select the path to save the files to:"), to_wx(OPT_GET("Path/Fonts Collector Destination")->GetString())).c_str(); ++ path = static_cast(wxDirSelector(_("Select the path to save the files to:"), to_wx(OPT_GET("Path/Fonts Collector Destination")->GetString())).c_str()); + else { + path = SaveFileSelector( + _("Select the path to save the file to:"), +Index: Aegisub-3.3.2/libaegisub/include/libaegisub/lua/utils.h +=================================================================== +--- Aegisub-3.3.2.orig/libaegisub/include/libaegisub/lua/utils.h ++++ Aegisub-3.3.2/libaegisub/include/libaegisub/lua/utils.h +@@ -27,6 +27,7 @@ + #include + #define BOOST_NORETURN BOOST_ATTRIBUTE_NORETURN + #endif ++#include + + namespace agi { namespace lua { + // Exception type for errors where the error details are on the lua stack +@@ -91,6 +92,13 @@ void set_field(lua_State *L, const char + lua_setfield(L, -2, name); + } + ++template<> ++inline void set_field(lua_State *L, const char *name, ++ boost::flyweights::flyweight value) { ++ push_value(L, value.get()); ++ lua_setfield(L, -2, name); ++} ++ + template + void set_field(lua_State *L, const char *name) { + push_value(L, exception_wrapper); +Index: Aegisub-3.3.2/src/auto4_lua.cpp +=================================================================== +--- Aegisub-3.3.2.orig/src/auto4_lua.cpp ++++ Aegisub-3.3.2/src/auto4_lua.cpp +@@ -119,7 +119,7 @@ namespace { + int get_translation(lua_State *L) + { + wxString str(check_wxstring(L, 1)); +- push_value(L, _(str).utf8_str()); ++ push_value(L, static_cast(_(str).utf8_str())); + return 1; + } +