[vlc-commits] [Git][videolan/vlc][master] 3 commits: contrib: vpx: fix Windows build with nasm
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Oct 26 13:58:12 UTC 2026
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
743439e3 by Steve Lhomme at 2026-10-26T13:19:33+00:00
contrib: vpx: fix Windows build with nasm
- - - - -
ab8c14e4 by Steve Lhomme at 2026-10-26T13:19:33+00:00
contrib: breakpad: fix memset on C++ object
Newer compilers complain if there is no cast.
- - - - -
1d752308 by Steve Lhomme at 2026-10-26T13:19:33+00:00
package/win32: fix build when wix tools are not available
If the tools are required the detection will fail. Otherwise
we just disable that target.
This is already the case for the NSIS installer.
- - - - -
5 changed files:
- + contrib/src/breakpad/0001-Fix-memset-on-C-object.patch
- contrib/src/breakpad/rules.mak
- + contrib/src/vpx/0001-fix-debug-format-passed-to-nasm.patch
- contrib/src/vpx/rules.mak
- extras/package/win32/msi/meson.build
Changes:
=====================================
contrib/src/breakpad/0001-Fix-memset-on-C-object.patch
=====================================
@@ -0,0 +1,27 @@
+From 8013851cf5eaaa44cc752bdc5aeccfc572f0d76e Mon Sep 17 00:00:00 2001
+From: Steve Lhomme <robux4 at ycbcr.xyz>
+Date: Thu, 17 Sep 2026 11:48:59 +0200
+Subject: [PATCH] Fix memset() on C++ object
+
+When then read data into the object of the same size...
+Let's assume this code worked.
+---
+ src/client/windows/crash_generation/crash_generation_server.cc | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/client/windows/crash_generation/crash_generation_server.cc b/src/client/windows/crash_generation/crash_generation_server.cc
+index 790e8cc0..16b859d2 100644
+--- a/src/client/windows/crash_generation/crash_generation_server.cc
++++ b/src/client/windows/crash_generation/crash_generation_server.cc
+@@ -361,7 +361,7 @@ void CrashGenerationServer::HandleConnectedState() {
+ assert(server_state_ == IPC_SERVER_STATE_CONNECTED);
+
+ DWORD bytes_count = 0;
+- memset(&msg_, 0, sizeof(msg_));
++ memset((void*)&msg_, 0, sizeof(msg_));
+ bool success = ReadFile(pipe_,
+ &msg_,
+ sizeof(msg_),
+--
+2.55.0.windows.3
+
=====================================
contrib/src/breakpad/rules.mak
=====================================
@@ -18,6 +18,7 @@ breakpad: breakpad-$(BREAKPAD_VERSION).tar.gz .sum-breakpad
# $(call update_autoconfig,autotools)
$(APPLY) $(SRC)/breakpad/0001-mac-client-Upgrade-Breakpad.xib-to-new-format.patch
$(APPLY) $(SRC)/breakpad/windows-arm64.patch
+ $(APPLY) $(SRC)/breakpad/0001-Fix-memset-on-C-object.patch
sed -i.orig -e "s/GCC_TREAT_WARNINGS_AS_ERRORS = YES/GCC_TREAT_WARNINGS_AS_ERRORS = NO/" "$(UNPACK_DIR)/src/common/mac/Breakpad.xcconfig"
$(MOVE)
=====================================
contrib/src/vpx/0001-fix-debug-format-passed-to-nasm.patch
=====================================
@@ -0,0 +1,33 @@
+From 1c114478a95ba87bc1039f9593141bc599aba2a3 Mon Sep 17 00:00:00 2001
+From: Steve Lhomme <robux4 at ycbcr.xyz>
+Date: Fri, 23 Oct 2026 14:15:32 +0200
+Subject: [PATCH] fix debug format passed to nasm
+
+nasm doesn't support the debug format passed with -g
+---
+ build/make/configure.sh | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/build/make/configure.sh b/build/make/configure.sh
+index 5aebd03ed..1f97939f0 100644
+--- a/build/make/configure.sh
++++ b/build/make/configure.sh
+@@ -1479,12 +1479,14 @@ EOF
+ case ${tgt_os} in
+ win32)
+ add_asflags -f win32
+- enabled debug && add_asflags -g cv8
++ enabled debug && [ "${AS}" = yasm ] && add_asflags -g cv8
++ enabled debug && [ "${AS}" = nasm ] && add_asflags -g -F cv8
+ EXE_SFX=.exe
+ ;;
+ win64)
+ add_asflags -f win64
+- enabled debug && add_asflags -g cv8
++ enabled debug && [ "${AS}" = yasm ] && add_asflags -g cv8
++ enabled debug && [ "${AS}" = nasm ] && add_asflags -g -F cv8
+ EXE_SFX=.exe
+ ;;
+ linux*|solaris*|android*)
+--
+2.55.0.windows.3
=====================================
contrib/src/vpx/rules.mak
=====================================
@@ -35,6 +35,7 @@ endif
# as it is enabled through --extra-cflags if necessary.
$(APPLY) $(SRC)/vpx/libvpx-remove-bitcode.patch
$(APPLY) $(SRC)/vpx/0001-fix-compilation-with-Apple-Clang-13.patch
+ $(APPLY) $(SRC)/vpx/0001-fix-debug-format-passed-to-nasm.patch
$(MOVE)
DEPS_vpx =
=====================================
extras/package/win32/msi/meson.build
=====================================
@@ -81,6 +81,7 @@ endforeach
compiled_wxs = []
compiled_winpath = []
+if x86_runner.found() and candlex86.found() and lightx86.found()
foreach wxsobj : wxs_files
outfile = fs.replace_suffix(wxsobj[0], '.wixobj')
outname = fs.name(outfile)
@@ -116,3 +117,4 @@ msi_output = custom_target(
)
alias_target('package-msi', msi_output)
+endif
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8fb41c3ea2016ecb92b52412bd8460b1cfe75bb5...1d7523080da260763bc35e89913b1835cef7e6e3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/8fb41c3ea2016ecb92b52412bd8460b1cfe75bb5...1d7523080da260763bc35e89913b1835cef7e6e3
You're receiving this email because of your account on code.videolan.org. Manage all notifications: https://code.videolan.org/-/profile/notifications | Help: https://code.videolan.org/help
More information about the vlc-commits
mailing list