From 684ee747a51fc63ecc01ea22b2ab1bb36ed2b09e Mon Sep 17 00:00:00 2001 From: Rmys Date: Tue, 16 Jan 2024 22:06:12 +0300 Subject: [PATCH] Virtualbox-7.0.144 --- .../virtualbox/files/libxml2.12.patch | 43 +++++++++++++++++++ hardware/virtualization/virtualbox/pspec.xml | 1 + 2 files changed, 44 insertions(+) create mode 100644 hardware/virtualization/virtualbox/files/libxml2.12.patch diff --git a/hardware/virtualization/virtualbox/files/libxml2.12.patch b/hardware/virtualization/virtualbox/files/libxml2.12.patch new file mode 100644 index 0000000000..60df8c8b04 --- /dev/null +++ b/hardware/virtualization/virtualbox/files/libxml2.12.patch @@ -0,0 +1,43 @@ +--- VirtualBox-7.0.12/include/iprt/cpp/xml.h.orig 2023-12-24 15:42:18.092685383 +0100 ++++ VirtualBox-7.0.12/include/iprt/cpp/xml.h 2023-12-24 15:46:14.872125732 +0100 +@@ -113,9 +113,9 @@ + class RT_DECL_CLASS XmlError : public RuntimeError + { + public: +- XmlError(xmlErrorPtr aErr); ++ XmlError(const xmlError* aErr); + +- static char* Format(xmlErrorPtr aErr); ++ static char* Format(const xmlError* aErr); + }; + + // Logical errors +--- VirtualBox-7.0.12/src/VBox/Runtime/r3/xml.cpp.orig 2023-12-24 15:31:18.385556729 +0100 ++++ VirtualBox-7.0.12/src/VBox/Runtime/r3/xml.cpp 2023-12-24 15:46:31.679225463 +0100 +@@ -131,7 +131,7 @@ + RTStrFree(msg); + } + +-XmlError::XmlError(xmlErrorPtr aErr) ++XmlError::XmlError(const xmlError* aErr) + { + if (!aErr) + throw EInvalidArg(RT_SRC_POS); +@@ -145,7 +145,7 @@ + * Composes a single message for the given error. The caller must free the + * returned string using RTStrFree() when no more necessary. + */ +-/* static */ char *XmlError::Format(xmlErrorPtr aErr) ++/* static */ char *XmlError::Format(const xmlError *aErr) + { + const char *msg = aErr->message ? aErr->message : ""; + size_t msgLen = strlen(msg); +@@ -1856,7 +1856,7 @@ + va_end(args); + } + +-static void xmlParserBaseStructuredError(void *pCtx, xmlErrorPtr error) RT_NOTHROW_DEF ++static void xmlParserBaseStructuredError(void *pCtx, const xmlError* error) RT_NOTHROW_DEF + { + NOREF(pCtx); + /* we expect that there is always a trailing NL */ diff --git a/hardware/virtualization/virtualbox/pspec.xml b/hardware/virtualization/virtualbox/pspec.xml index 5a7f275146..bd02fc0c79 100644 --- a/hardware/virtualization/virtualbox/pspec.xml +++ b/hardware/virtualization/virtualbox/pspec.xml @@ -79,6 +79,7 @@ archlinux/018-upate-xclient-script.patch python.patch + libxml2.12.patch