https://bugs.winehq.org/show_bug.cgi?id=55958
Patrick Hibbs hibbsncc1701@gmail.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |hibbsncc1701@gmail.com
--- Comment #8 from Patrick Hibbs hibbsncc1701@gmail.com --- Actually, it is possible to build wine on Debian without a chroot / container. The biggest problems you'll encounter are:
1) You'll need to do a triple build of wine to get 32bit and 64bit support. (I.e. 64bit native build -> 32bit build tools -> 32bit build. See also: https://wiki.winehq.org/Building_Wine#Shared_WoW64)
2) GStreamer's plugins are *still* not multi arch compatible in the upstream Debian builds. This means installing the GStreamer plugins and their development components from deb-multimedia (https://www.deb-multimedia.org).
2a) Then manually call pkgconfig, with PKG_CONFIG_PATH set to the correct 32bit pkgconfig path to get the GSTREAMER_LIBS and GSTREAMER_CFLAGS variables for wine's configure when building the 32bit components. You'll also need to explicitly specify the gstreamer-tag-1.0 library when calling pkgconfig. (Or you'll get a linker error during wine's build.)
This is required as wine's configure script will only detect the 64bit GStreamer libs by default. (pkgconfig seems not to do it's job here, even if linux32 is prepended to the configure command.)
3) You'll need to manually specify the cross compiler to use when calling wine's configure for the 32bit builds. I.e. (Define CROSSCC32, CC, AR, NM, RANLIB, READELF, OBJDUMP, OBJCOPY, and STRIP binary paths.) Also you'll need to define "-m32" in CPPFLAGS and LDFLAGS.
That being said there are a few components that are not available in Debian: Samba's libnetapi , and OSS.
In the case of OSS, Wine's configure script does detect it but it's considered to be too old. (Not really a problem if you ask me, but it could be a deal breaker for some.)
For Samba's libnetapi, it's simply not shipped in Debian's upstream Samba builds. (Although it used to be? There are Debian bug reports mentioning it in older Debian releases, but the library itself is not in Debian 12.) You'll need to build Samba from source if you want that library to use with wine.
I have a bash script that I use to build wine on Debian, if anyone is interested in it. It only handles the actual build process though. Not installing prereqs.