I have tested your patch now and it seems it just reduced the number of failures by one.
There's already a workaround for the "Missing JIT" error, but it seems to be broken on sparc... https://salsa.debian.org/gnome-team/gtk4/-/blob/debian/latest/debian/rules?ref_type=heads#L279-294