# --- T2-COPYRIGHT-BEGIN --- # t2/package/*/mir/hotfix-xml.patch # Copyright (C) 2026 The T2 SDE Project # SPDX-License-Identifier: GPL-2.0 or patched project license # --- T2-COPYRIGHT-END --- --- mir-2.26.0/src/wayland/generator/CMakeLists.txt.vanilla 2026-05-14 23:33:43.724870292 +0300 +++ mir-2.26.0/src/wayland/generator/CMakeLists.txt 2026-05-14 23:34:24.555496065 +0300 @@ -1,4 +1,4 @@ -pkg_check_modules(XMLPP libxml++-2.6 REQUIRED IMPORTED_TARGET) +pkg_check_modules(XMLPP libxml++-5.0 REQUIRED IMPORTED_TARGET) add_executable(mir_wayland_generator wrapper_generator.cpp --- mir-2.26.0/src/wayland/generator/interface.cpp.vanilla 2026-05-14 23:39:52.331309287 +0300 +++ mir-2.26.0/src/wayland/generator/interface.cpp 2026-05-14 23:45:20.497778887 +0300 @@ -480,7 +480,7 @@ std::vector requests; for (auto method_node : node.get_children("request")) { - auto elem = dynamic_cast(method_node); + auto elem = dynamic_cast((xmlpp::Element *)method_node); requests.emplace_back(Request{std::ref(*elem), generated_name}); } return requests; @@ -492,7 +492,7 @@ int opcode = 0; for (auto method_node : node.get_children("event")) { - auto elem = dynamic_cast(method_node); + auto elem = dynamic_cast((xmlpp::Element *)method_node); events.emplace_back(Event{std::ref(*elem), generated_name, opcode}); opcode++; } @@ -504,7 +504,7 @@ std::vector enums; for (auto method_node : node.get_children("enum")) { - auto elem = dynamic_cast(method_node); + auto elem = dynamic_cast((xmlpp::Element *)method_node); enums.emplace_back(Enum{std::ref(*elem), generated_name}); } return enums;