This issue is related to https://bugs.debian.org/1009097
Bug 1009097 has been marked as fixed in meson 0.62.1-1, but according to "reproducible builds" libgit2-glib still FTBFS with the same error. https://tests.reproducible-builds.org/debian/rb-pkg/bookworm/amd64/libgit2-glib.html