I get a failure running make check because the directory name (setup.scm) passed to mkdir is already in usedas the name of a file. The patch below fixes this.
- gnupg-2.4.0/tests/gpgme/Makefile.am.orig 2022-12-20 10:40:10.016145475 +0000
+++ gnupg-2.4.0/tests/gpgme/Makefile.am 2022-12-20 10:40:44.012146903 +0000
@@ -47,7 +47,7 @@ check: xcheck
.PHONY: xcheck
xcheck:
- @$(MKDIR_P) setup.scm/tests \
+ @$(MKDIR_P) tests \
tests/gpg lang/qt/tests lang/python/tests $(TESTS_ENVIRONMENT) $(abs_top_builddir)/tests/gpgscm/gpgscm$(EXEEXT) \ $(abs_srcdir)/run-tests.scm $(TESTFLAGS) $(TESTS)