On Saturday August 31 2024 04:06:09 Sergey Fedorov wrote: >2. Does anyone know if xorg-server is modular, specifically, is hw/xquartz >more or less independent of the rest? I am asking since aside of xquartz >everything seems to build easily even on older macOS. However xquartz from >the upstream master will not build with gcc, since it uses blocks (and >there are other issues with the code). Is it sensible to try using an older >xquartz module with the otherwise modern codebase? (It does not need to be >literally a drop-in, of course, moderate adjustments can be made.)
No idea TBH, but you may want to ask on x11-us...@lists.apple.com too. As to blocks: did you look if they're used in situations other than libdispatch functions that do not have the _f version taking regular function pointers and C++ closures? Most of the Apple blocks used in the Mac codepaths of webkit2-gtk can be rewritten that way, for instance, just with some #ifdef __clang__ conditionals in the code.