[Bug report] [gpgme]: build may fail if gnupg is not installed

Pierre Labastie pierre.labastie at neuf.fr
Mon Jul 28 11:23:59 CEST 2025


Dear developers,

I'm one of the editors of the "linux from scratch" project.

I'm sorry if this is duplicate, but a search for "gpgme build fail"
didn't lead to anything similar to the following:

When building gpgme, the presence of gnupg on the system is not tested,
but the build fails if it is not installed, when trying to execute:
        $(TESTS_ENVIRONMENT) $(GPG) --batch --no-permission-warning \
               --import $(top_srcdir)/tests/gpg/pubdemo.asc
in tests/gpg/Makefile.am.

There is an obvious workaround, which is to pass "--disable-gpg-test"
to configure, but this is nowhere documented.

Some similar instructions using gpg ($(GPG)) have a "-" at the
beginning, which prevents the build from failing (the error is
"ignored"), but not all such instructions. Shouldn't all the
instructions using gpg be protected similarly?

It seems the "-" was removed at commit a5b040cc57c, without anything in
the commit message explaining why (this may have been discussed
elsewhere then, I have not checked). So it may just be an accidental
removal...

If you need me to send a patch, I can do that.

Regards
Pierre



More information about the Gnupg-devel mailing list