graaff 14/12/26 09:04:28 Added: mysql-workbench-6.2.3-ctemplate.patch Log: Fix compilation with ctemplate 2.3. Thanks to Marcel Pennewiß and others in bug 533086. (Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
Revision Changes Path 1.1 dev-db/mysql-workbench/files/mysql-workbench-6.2.3-ctemplate.patch file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-workbench/files/mysql-workbench-6.2.3-ctemplate.patch?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/dev-db/mysql-workbench/files/mysql-workbench-6.2.3-ctemplate.patch?rev=1.1&content-type=text/plain Index: mysql-workbench-6.2.3-ctemplate.patch =================================================================== Fix compilation with ctemplate 2.3 by avoiding long-deprecated method. Patch by Marcel Pennewiß in https://bugs.gentoo.org/show_bug.cgi?id=533086 Unresolved upstream bug http://bugs.mysql.com/bug.php?id=72585 --- mysql-workbench-community-6.0.9-src/backend/wbpublic/sqlide/recordset_text_storage.cpp +++ mysql-workbench-community-6.0.9-src/backend/wbpublic/sqlide/recordset_text_storage.cpp @@ -204,7 +204,7 @@ if (!pre_tpl) g_warning("Failed to open template file: `%s`", pre_tpl_path.c_str()); else - pre_tpl->ReloadIfChanged(); + pre_tpl->ReloadAllIfChanged(); } if (g_file_test((name+".post.tpl").c_str(), G_FILE_TEST_EXISTS)) { @@ -213,7 +213,7 @@ if (!post_tpl) g_warning("Failed to open template file: `%s`", post_tpl_path.c_str()); else - post_tpl->ReloadIfChanged(); + post_tpl->ReloadAllIfChanged(); } } @@ -222,7 +222,7 @@ throw std::runtime_error(strfmt("Failed to open output file: `%s`", _file_path.c_str())); } - tpl->ReloadIfChanged(); + tpl->ReloadAllIfChanged(); std::auto_ptr<TemplateDictionary> dict(new TemplateDictionary("/")); BOOST_FOREACH (const Parameters::value_type ¶m, _parameters)
