From aeef3fc84bf0285ea881d2603840423a4ee4d1c0 Mon Sep 17 00:00:00 2001 From: Biswapriyo Nath Date: Tue, 31 Oct 2023 05:59:59 +0000 Subject: [PATCH] vapoursynth: Check if registry key or value exists --- .../0004-vapoursynth-check-empty-registry.patch | 11 +++++++++++ mingw-w64-vapoursynth/PKGBUILD | 9 ++++++--- 2 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 mingw-w64-vapoursynth/0004-vapoursynth-check-empty-registry.patch diff --git a/mingw-w64-vapoursynth/0004-vapoursynth-check-empty-registry.patch b/mingw-w64-vapoursynth/0004-vapoursynth-check-empty-registry.patch new file mode 100644 index 0000000000..e56c1a5e81 --- /dev/null +++ b/mingw-w64-vapoursynth/0004-vapoursynth-check-empty-registry.patch @@ -0,0 +1,11 @@ +--- a/src/core/vscore.cpp ++++ b/src/core/vscore.cpp +@@ -1862,7 +1862,7 @@ + + // Autoload bundled plugins + std::wstring corePluginPath = readRegistryValue(VS_INSTALL_REGKEY, L"CorePlugins"); +- if (!loadAllPluginsInPath(corePluginPath, filter)) ++ if (!corePluginPath.empty() && !loadAllPluginsInPath(corePluginPath, filter)) + logMessage(mtCritical, "Core plugin autoloading failed. Installation is broken!"); + + if (!disableAutoLoading) { diff --git a/mingw-w64-vapoursynth/PKGBUILD b/mingw-w64-vapoursynth/PKGBUILD index 19be025763..1a44ce7323 100644 --- a/mingw-w64-vapoursynth/PKGBUILD +++ b/mingw-w64-vapoursynth/PKGBUILD @@ -24,11 +24,13 @@ makedepends=("${MINGW_PACKAGE_PREFIX}-cc" source=("vapoursynth-${pkgver}.tar.gz::https://github.com/vapoursynth/vapoursynth/archive/R${pkgver}.tar.gz" "0001-wrong-arguments-to-Mem32-constructor.patch" "0002-prevent-portable-python.patch" - "0003-no-registry-setup-py.patch") + "0003-no-registry-setup-py.patch" + "0004-vapoursynth-check-empty-registry.patch") sha256sums=('2bde5233b82d914b5e985119ed9cc344e3c27c3c068b5c4ab909176cd1751dce' '085331d7c81da760b66864ec34647094384514689e7ea9895e7bd34ed9ce9831' 'bc75208eb672446a23535455040d0f5a7e49e19e8276773dd9bc30ee87da2e27' - 'a406e46147de0bccbd7353c26a9620a21524376e408131a346ce47df9985b946') + 'a406e46147de0bccbd7353c26a9620a21524376e408131a346ce47df9985b946' + 'b2fac3089dfb73dfb8baf5bf398831e54da498314dae1f399129c41a6b41bda1') _apply_patch_with_msg() { for _patch in "$@" @@ -47,7 +49,8 @@ prepare() { _apply_patch_with_msg \ 0001-wrong-arguments-to-Mem32-constructor.patch \ 0002-prevent-portable-python.patch \ - 0003-no-registry-setup-py.patch + 0003-no-registry-setup-py.patch \ + 0004-vapoursynth-check-empty-registry.patch autoreconf -vfi }