···11+From 0002273e4df7c9448b52ce54ef38a93cf753fbfd Mon Sep 17 00:00:00 2001
22+From: Robbert van der Helm <mail@robbertvanderhelm.nl>
33+Date: Sun, 1 Jun 2025 22:22:20 +0200
44+Subject: [PATCH] Drop the 32-bit libyabridge support for EnergyXT
55+66+I don't think anyone is using this, and it's triggering a bug in recent
77+Meson versions so just removing it for now should be fine.
88+---
99+ CHANGELOG.md | 9 +++++++++
1010+ README.md | 20 --------------------
1111+ meson.build | 12 +-----------
1212+ 3 files changed, 10 insertions(+), 31 deletions(-)
1313+1414+diff --git a/CHANGELOG.md b/CHANGELOG.md
1515+index 687e73b3..262ee298 100644
1616+--- a/CHANGELOG.md
1717++++ b/CHANGELOG.md
1818+@@ -15,6 +15,15 @@ Versioning](https://semver.org/spec/v2.0.0.html).
1919+ consuming too much memory. This only affected the prebuilt binaries from the
2020+ releases page.
2121+2222++### Removed
2323++
2424++- Out of the box support for building a 32-bit version of yabridge for use in
2525++ 64-bit machines has been dropped as part of solving a compatibility issue with
2626++ newer Meson versions
2727++ ([#431](https://github.com/robbert-vdh/yabridge/issues/431)). This was only
2828++ relevant for using 64-bit Windows plugins in the old 32-bit Linux version of
2929++ **EnergyXT**, and should not affect most users.
3030++
3131+ ### yabridgectl
3232+3333+ - Fixed a regression that caused `yabridgectl set --path-auto` to no longer
3434+diff --git a/README.md b/README.md
3535+index 55155705..6019b67a 100644
3636+--- a/README.md
3737++++ b/README.md
3838+@@ -886,26 +886,6 @@ Yabridge will detect whether the plugin you're trying to load is 32-bit or
3939+ 64-bit, and will run either the regular version or the `*-32.exe` variant
4040+ accordingly.
4141+4242+-### 32-bit libraries
4343+-
4444+-It also possible to build 32-bit versions of yabridge's libraries, which would
4545+-let you use both 32-bit and 64-bit Windows VST2, VST3, and CLAP plugins from a
4646+-32-bit Linux plugin host. This is mostly untested since 32-bit only Linux
4747+-applications don't really exist anymore, but it should work! The build system
4848+-will still assume you're compiling from a 64-bit system, so if you're compiling
4949+-on an actual 32-bit system you would need to comment out the 64-bit
5050+-`yabridge-host` and `yabridge-group` binaries in `meson.build`:
5151+-
5252+-```shell
5353+-meson setup build --buildtype=release --cross-file=cross-wine.conf --unity=on --unity-size=1000 -Dbitbridge=true -Dbuild.cpp_args='-m32' -Dbuild.cpp_link_args='-m32'
5454+-ninja -C build
5555+-```
5656+-
5757+-Like the above commands, you might need to tweak the unity size based on the
5858+-amount of system memory available. See the CI build definitions for some
5959+-examples on how to add static linking in the mix if you're going to run this
6060+-version of yabridge on some other machine.
6161+-
6262+ ## Debugging
6363+6464+ Wine's error messages and warning are usually very helpful whenever a plugin
6565+diff --git a/meson.build b/meson.build
6666+index 9e69128d..98bf607e 100644
6767+--- a/meson.build
6868++++ b/meson.build
6969+@@ -20,19 +17,12 @@ project(
7070+ # need to pass `-Dbitbridge=true`. We just make sure that we won't build
7171+ # any 64-bit binaries in that situation.
7272+ is_64bit_system = build_machine.cpu_family() not in ['x86', 'arm']
7373+-with_32bit_libraries = (not is_64bit_system) or get_option('build.cpp_args').contains('-m32')
7474+ with_bitbridge = get_option('bitbridge')
7575+ with_clap = get_option('clap')
7676+ with_system_asio = get_option('system-asio')
7777+ with_winedbg = get_option('winedbg')
7878+ with_vst3 = get_option('vst3')
7979+8080+-# Cookies can't be stored correctly when the native host is 32-bit and the
8181+-# bridged plugin is 64-bit
8282+-if with_clap and with_32bit_libraries and is_64bit_system
8383+- error('CLAP support will not work correctly when using 32-bit yabridge libraries together with 64-bit host binaries.')
8484+-endif
8585+-
8686+ #
8787+ # Compiler flags
8888+ #
8989+@@ -225,7 +215,7 @@ winegcc = meson.get_compiler('cpp', native : false)
9090+ if is_64bit_system
9191+ xcb_64bit_dep = dependency('xcb')
9292+ endif
9393+-if with_32bit_libraries or with_bitbridge
9494++if with_bitbridge
9595+ xcb_32bit_dep = winegcc.find_library('xcb')
9696+ endif
9797+