public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] proj/virtualbox-patches:branch-7.0 commit in: patches/
@ 2024-04-17 17:29 Viorel Munteanu
  0 siblings, 0 replies; 3+ messages in thread
From: Viorel Munteanu @ 2024-04-17 17:29 UTC (permalink / raw
  To: gentoo-commits

commit:     7e52af8fb2961fe9f6a74af359254b3cf17bace0
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Wed Apr 17 17:26:52 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Wed Apr 17 17:26:52 2024 +0000
URL:        https://gitweb.gentoo.org/proj/virtualbox-patches.git/commit/?id=7e52af8f

Update patches for virtualbox 7.0.16

Update Python patch 020
Update libxml2 patch 021

Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 ...on.patch => 020_virtualbox-7.0.16-python.patch} | 14 ++++---
 patches/021_virtualbox-7.0.14-libxml2-2.12.patch   | 43 ----------------------
 patches/021_virtualbox-7.0.16-libxml2-2.12.5.patch | 33 +++++++++++++++++
 3 files changed, 41 insertions(+), 49 deletions(-)

diff --git a/patches/020_virtualbox-7.0.10-python.patch b/patches/020_virtualbox-7.0.16-python.patch
similarity index 55%
rename from patches/020_virtualbox-7.0.10-python.patch
rename to patches/020_virtualbox-7.0.16-python.patch
index f972580..d96788e 100644
--- a/patches/020_virtualbox-7.0.10-python.patch
+++ b/patches/020_virtualbox-7.0.16-python.patch
@@ -4,15 +4,17 @@ use it.
 
 --- a/src/libs/xpcom18a4/python/Makefile.kmk
 +++ b/src/libs/xpcom18a4/python/Makefile.kmk
-@@ -693,11 +693,6 @@
-    VBoxPython3_EXTENDS   = VBoxPythonBase
+@@ -711,13 +711,6 @@
     VBoxPython3_DEFS      = $(filter-out VBOX_PYXPCOM_VERSIONED,$(VBoxPythonBase_DEFS)) Py_LIMITED_API=0x03030000
     VBoxPython3_INCS      = $(VBoxPythonBase_INCS) $(VBOX_PYTHON$(VBOX_PYTHON_LIMITED_API_VER)_INC)
+    VBoxPython3_LDFLAGS.darwin = -undefined dynamic_lookup
 -
--   DLLS += VBoxPython3m
--   VBoxPython3m_EXTENDS  = VBoxPythonBase_m
--   VBoxPython3m_DEFS     = $(filter-out VBOX_PYXPCOM_VERSIONED,$(VBoxPythonBase_m_DEFS)) Py_LIMITED_API=0x03030000
--   VBoxPython3m_INCS     = $(VBoxPythonBase_m_INCS) $(VBOX_PYTHON$(VBOX_PYTHON_LIMITED_API_VER)_INC)
+-   ifneq ($(KBUILD_TARGET),darwin)
+-    DLLS += VBoxPython3m
+-    VBoxPython3m_EXTENDS  = VBoxPythonBase_m
+-    VBoxPython3m_DEFS     = $(filter-out VBOX_PYXPCOM_VERSIONED,$(VBoxPythonBase_m_DEFS)) Py_LIMITED_API=0x03030000
+-    VBoxPython3m_INCS     = $(VBoxPythonBase_m_INCS) $(VBOX_PYTHON$(VBOX_PYTHON_LIMITED_API_VER)_INC)
+-   endif
    endif
   endif # VBOX_WITH_PYTHON_LIMITED_API
  

diff --git a/patches/021_virtualbox-7.0.14-libxml2-2.12.patch b/patches/021_virtualbox-7.0.14-libxml2-2.12.patch
deleted file mode 100644
index a523bad..0000000
--- a/patches/021_virtualbox-7.0.14-libxml2-2.12.patch
+++ /dev/null
@@ -1,43 +0,0 @@
-Bug: https://bugs.gentoo.org/922445
-
-The change in libxml2 is not backwards compatibe.
-A patch like the one in arch does not work with 2.11, so just cast the argument to maintain compatibility with both.
-
-The upstream change is in include/libxml/xmlerror.h:
-
- typedef xmlError *xmlErrorPtr;
-
--typedef void (*xmlStructuredErrorFunc) (void *userData, xmlErrorPtr error);
-+typedef void (*xmlStructuredErrorFunc) (void *userData, const xmlError *error);
-
-See also: https://gitlab.archlinux.org/archlinux/packaging/packages/virtualbox/-/blob/main/019-libxml-2-12.patch?ref_type=heads
-
---- a/src/VBox/Runtime/r3/xml.cpp
-+++ b/src/VBox/Runtime/r3/xml.cpp
-@@ -1870,7 +1870,7 @@
-         throw std::bad_alloc();
-     /* per-thread so it must be here */
-     xmlSetGenericErrorFunc(NULL, xmlParserBaseGenericError);
--    xmlSetStructuredErrorFunc(NULL, xmlParserBaseStructuredError);
-+    xmlSetStructuredErrorFunc(NULL, (xmlStructuredErrorFunc)xmlParserBaseStructuredError);
- }
- 
- XmlParserBase::~XmlParserBase()
-@@ -1931,7 +1931,7 @@
-                                                   pcszFilename,
-                                                   NULL,       // encoding = auto
-                                                   options)))
--        throw XmlError(xmlCtxtGetLastError(m_ctxt));
-+        throw XmlError((xmlErrorPtr)xmlCtxtGetLastError(m_ctxt));
- 
-     doc.refreshInternals();
- }
-@@ -2191,7 +2191,7 @@
-                                               pcszFilename,
-                                               NULL,       // encoding = auto
-                                               options)))
--        throw XmlError(xmlCtxtGetLastError(m_ctxt));
-+        throw XmlError((xmlErrorPtr)xmlCtxtGetLastError(m_ctxt));
- 
-     doc.refreshInternals();
- }

diff --git a/patches/021_virtualbox-7.0.16-libxml2-2.12.5.patch b/patches/021_virtualbox-7.0.16-libxml2-2.12.5.patch
new file mode 100644
index 0000000..2ef7557
--- /dev/null
+++ b/patches/021_virtualbox-7.0.16-libxml2-2.12.5.patch
@@ -0,0 +1,33 @@
+Bug: https://bugs.gentoo.org/922445
+
+The change in libxml2 is not backwards compatibe.
+
+The upstream change is in include/libxml/xmlerror.h:
+
+ typedef xmlError *xmlErrorPtr;
+
+-typedef void (*xmlStructuredErrorFunc) (void *userData, xmlErrorPtr error);
++typedef void (*xmlStructuredErrorFunc) (void *userData, const xmlError *error);
+
+Upstream fixed it for dev-libs/libxml2-2.12.6, but we need the fix for 2.12.5 as well.
+
+--- a/src/VBox/Runtime/r3/xml.cpp
++++ b/src/VBox/Runtime/r3/xml.cpp
+@@ -1856,7 +1856,7 @@
+     va_end(args);
+ }
+ 
+-#if LIBXML_VERSION >= 21206
++#if LIBXML_VERSION >= 21205
+ static void xmlStructuredErrorFunc(void *userData, const xmlError *error)  RT_NOTHROW_DEF
+ {
+     NOREF(userData);
+@@ -1878,7 +1878,7 @@
+         throw std::bad_alloc();
+     /* per-thread so it must be here */
+     xmlSetGenericErrorFunc(NULL, xmlParserBaseGenericError);
+-#if LIBXML_VERSION >= 21206
++#if LIBXML_VERSION >= 21205
+     xmlSetStructuredErrorFunc(NULL, xmlStructuredErrorFunc);
+ #else
+     xmlSetStructuredErrorFunc(NULL, xmlParserBaseStructuredError);


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/virtualbox-patches:branch-7.0 commit in: patches/
@ 2024-12-28 16:58 Viorel Munteanu
  0 siblings, 0 replies; 3+ messages in thread
From: Viorel Munteanu @ 2024-12-28 16:58 UTC (permalink / raw
  To: gentoo-commits

commit:     21d32e0fb70d51312fe16a74c6c6efa5fe3b1e3c
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Sat Dec 28 15:44:34 2024 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Sat Dec 28 16:30:10 2024 +0000
URL:        https://gitweb.gentoo.org/proj/virtualbox-patches.git/commit/?id=21d32e0f

Add C23 patch

Bug: https://bugs.gentoo.org/946955
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 patches/029_virtualbox-7.1.4_C23.patch | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/patches/029_virtualbox-7.1.4_C23.patch b/patches/029_virtualbox-7.1.4_C23.patch
new file mode 100644
index 0000000..2ff466e
--- /dev/null
+++ b/patches/029_virtualbox-7.1.4_C23.patch
@@ -0,0 +1,14 @@
+https://bugs.gentoo.org/946955
+
+--- a/include/iprt/types.h
++++ b/include/iprt/types.h
+@@ -281,8 +281,7 @@
+      typedef _Bool bool;
+ #   endif
+ #  else
+-#   undef bool /* see above netbsd explanation */
+-typedef _Bool bool;
++#   include <stdbool.h>
+ #  endif
+ # else
+ #  if RT_MSC_PREREQ(RT_MSC_VER_VC120)


^ permalink raw reply related	[flat|nested] 3+ messages in thread

* [gentoo-commits] proj/virtualbox-patches:branch-7.0 commit in: patches/
@ 2025-01-06 16:42 Viorel Munteanu
  0 siblings, 0 replies; 3+ messages in thread
From: Viorel Munteanu @ 2025-01-06 16:42 UTC (permalink / raw
  To: gentoo-commits

commit:     5b6756b57b45d5d7d9553e0475038625def026e5
Author:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
AuthorDate: Mon Jan  6 16:26:27 2025 +0000
Commit:     Viorel Munteanu <ceamac <AT> gentoo <DOT> org>
CommitDate: Mon Jan  6 16:27:49 2025 +0000
URL:        https://gitweb.gentoo.org/proj/virtualbox-patches.git/commit/?id=5b6756b5

Fix too big PXE NetBiosBinary

Bug: https://bugs.gentoo.org/947372
Signed-off-by: Viorel Munteanu <ceamac <AT> gentoo.org>

 ...e-keep-size.patch => 024_virtualbox-7.0.22-ipxe-small-size.patch} | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/patches/024_virtualbox-7.0.8-mtune-keep-size.patch b/patches/024_virtualbox-7.0.22-ipxe-small-size.patch
similarity index 77%
rename from patches/024_virtualbox-7.0.8-mtune-keep-size.patch
rename to patches/024_virtualbox-7.0.22-ipxe-small-size.patch
index e37d9d6..1b5f11f 100644
--- a/patches/024_virtualbox-7.0.8-mtune-keep-size.patch
+++ b/patches/024_virtualbox-7.0.22-ipxe-small-size.patch
@@ -1,13 +1,16 @@
 Force -mtune=i386.  Random -mtune can lead to iPxeBiosBin.rom getting too
 large (larger than 56k).  This can happen because we support custom CFLAGS.
 
+Also disable -funroll-loops, see bug https://bugs.gentoo.org/947372
+
 --- a/src/VBox/Devices/PC/ipxe/Makefile.kmk
 +++ b/src/VBox/Devices/PC/ipxe/Makefile.kmk
-@@ -125,6 +125,7 @@
+@@ -125,6 +125,8 @@
  	-ffreestanding \
  	-ffunction-sections \
  	-march=i386 \
 +	-mtune=i386 \
++	-fno-unroll-loops \
  	-fomit-frame-pointer \
  	-fstrength-reduce \
  	-falign-jumps=1 \


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-01-06 16:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-28 16:58 [gentoo-commits] proj/virtualbox-patches:branch-7.0 commit in: patches/ Viorel Munteanu
  -- strict thread matches above, loose matches on Subject: below --
2025-01-06 16:42 Viorel Munteanu
2024-04-17 17:29 Viorel Munteanu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox