Installed node-editor binary hard-codes source directory
In recent GTK4 (since 4.7.0), the source directory for the node editor gets hard-coded into the binary, so that it can save new test-cases into ${srcdir}/testsuite/gsk/compare/
.
This is useful if you're a developer compiling and installing your own GTK4, but not really useful for a distro build, which will try (and fail) to save a test-case hello
to somewhere like /build/gtk4-7IWbU7/gtk4-4.8.2+ds/testsuite/gsk/compare/hello.png.XXXXXX
in Debian or some analogous path in other distributions. This also makes the binaries non-reproducible.
Would maintainers consider a MR to make the node editor write into testsuite/gsk/compare/
relative to its current working directory, so that an installed node-editor binary will save into the right place if (and only if) you run it from the root of your GTK source tree?
Or if not, would maintainers accept a MR adding a build option with that effect, -Dreproducible=true
or similar?
Either of those could have an environment variable override that can be automated by a Meson devenv, if that would help.